Can't mount back OS disk partition (no /dev/sda)











up vote
0
down vote

favorite












I was trying to expand my Azure VM's OS disk and I've unmounted /dev/sda1 which is OS partition in order to do the steps mentioned here: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/expand-disks



But sudo unmount /dev/sda1 didn't do the job as it said "umount: /: target is busy". So I've unmounted the disk with the sudo umount -l /dev/sda1 command. Since then I can't even do sudo in terminal and df -H is not working anymore. It throws "df: cannot read table of mounted file systems: No such file or directory".



When I type sudo, it says "sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?"



How can I fix this issue please help. Thanks in advance.










share|improve this question






















  • please run the command mount and tell us what it says!
    – George Udosen
    Nov 14 at 15:13















up vote
0
down vote

favorite












I was trying to expand my Azure VM's OS disk and I've unmounted /dev/sda1 which is OS partition in order to do the steps mentioned here: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/expand-disks



But sudo unmount /dev/sda1 didn't do the job as it said "umount: /: target is busy". So I've unmounted the disk with the sudo umount -l /dev/sda1 command. Since then I can't even do sudo in terminal and df -H is not working anymore. It throws "df: cannot read table of mounted file systems: No such file or directory".



When I type sudo, it says "sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?"



How can I fix this issue please help. Thanks in advance.










share|improve this question






















  • please run the command mount and tell us what it says!
    – George Udosen
    Nov 14 at 15:13













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I was trying to expand my Azure VM's OS disk and I've unmounted /dev/sda1 which is OS partition in order to do the steps mentioned here: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/expand-disks



But sudo unmount /dev/sda1 didn't do the job as it said "umount: /: target is busy". So I've unmounted the disk with the sudo umount -l /dev/sda1 command. Since then I can't even do sudo in terminal and df -H is not working anymore. It throws "df: cannot read table of mounted file systems: No such file or directory".



When I type sudo, it says "sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?"



How can I fix this issue please help. Thanks in advance.










share|improve this question













I was trying to expand my Azure VM's OS disk and I've unmounted /dev/sda1 which is OS partition in order to do the steps mentioned here: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/expand-disks



But sudo unmount /dev/sda1 didn't do the job as it said "umount: /: target is busy". So I've unmounted the disk with the sudo umount -l /dev/sda1 command. Since then I can't even do sudo in terminal and df -H is not working anymore. It throws "df: cannot read table of mounted file systems: No such file or directory".



When I type sudo, it says "sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?"



How can I fix this issue please help. Thanks in advance.







16.04 partitioning mount gparted disk






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 14 at 14:40









dorukoski

285




285












  • please run the command mount and tell us what it says!
    – George Udosen
    Nov 14 at 15:13


















  • please run the command mount and tell us what it says!
    – George Udosen
    Nov 14 at 15:13
















please run the command mount and tell us what it says!
– George Udosen
Nov 14 at 15:13




please run the command mount and tell us what it says!
– George Udosen
Nov 14 at 15:13










1 Answer
1






active

oldest

votes

















up vote
1
down vote













K - this is an incomplete answer because I'm a little lazy:



Ubuntu is a disk-based OS - there is some device in your system, which contains the OS, and the commands that the OS is able to run. In your system, the OS is part of the directory space know as / or root. It's generally a good guess that root is part of the partition /dev/sda1, although it can be in other places.



When you ran sudo umount -l /dev/sda1 you disconnected the root directories. Linux now does not know how to run commands like df, and it does not have any place to look up these instructions. In windows terms, you disconnected the 'C' drive while your computer was running.



There is probably no damage but I think at the least you will need to reboot the virtual machine.



Following getting control of your machine, please review questions like How do I resize root partition






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1092891%2fcant-mount-back-os-disk-partition-no-dev-sda%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    K - this is an incomplete answer because I'm a little lazy:



    Ubuntu is a disk-based OS - there is some device in your system, which contains the OS, and the commands that the OS is able to run. In your system, the OS is part of the directory space know as / or root. It's generally a good guess that root is part of the partition /dev/sda1, although it can be in other places.



    When you ran sudo umount -l /dev/sda1 you disconnected the root directories. Linux now does not know how to run commands like df, and it does not have any place to look up these instructions. In windows terms, you disconnected the 'C' drive while your computer was running.



    There is probably no damage but I think at the least you will need to reboot the virtual machine.



    Following getting control of your machine, please review questions like How do I resize root partition






    share|improve this answer



























      up vote
      1
      down vote













      K - this is an incomplete answer because I'm a little lazy:



      Ubuntu is a disk-based OS - there is some device in your system, which contains the OS, and the commands that the OS is able to run. In your system, the OS is part of the directory space know as / or root. It's generally a good guess that root is part of the partition /dev/sda1, although it can be in other places.



      When you ran sudo umount -l /dev/sda1 you disconnected the root directories. Linux now does not know how to run commands like df, and it does not have any place to look up these instructions. In windows terms, you disconnected the 'C' drive while your computer was running.



      There is probably no damage but I think at the least you will need to reboot the virtual machine.



      Following getting control of your machine, please review questions like How do I resize root partition






      share|improve this answer

























        up vote
        1
        down vote










        up vote
        1
        down vote









        K - this is an incomplete answer because I'm a little lazy:



        Ubuntu is a disk-based OS - there is some device in your system, which contains the OS, and the commands that the OS is able to run. In your system, the OS is part of the directory space know as / or root. It's generally a good guess that root is part of the partition /dev/sda1, although it can be in other places.



        When you ran sudo umount -l /dev/sda1 you disconnected the root directories. Linux now does not know how to run commands like df, and it does not have any place to look up these instructions. In windows terms, you disconnected the 'C' drive while your computer was running.



        There is probably no damage but I think at the least you will need to reboot the virtual machine.



        Following getting control of your machine, please review questions like How do I resize root partition






        share|improve this answer














        K - this is an incomplete answer because I'm a little lazy:



        Ubuntu is a disk-based OS - there is some device in your system, which contains the OS, and the commands that the OS is able to run. In your system, the OS is part of the directory space know as / or root. It's generally a good guess that root is part of the partition /dev/sda1, although it can be in other places.



        When you ran sudo umount -l /dev/sda1 you disconnected the root directories. Linux now does not know how to run commands like df, and it does not have any place to look up these instructions. In windows terms, you disconnected the 'C' drive while your computer was running.



        There is probably no damage but I think at the least you will need to reboot the virtual machine.



        Following getting control of your machine, please review questions like How do I resize root partition







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 14 at 18:18









        mook765

        3,27221022




        3,27221022










        answered Nov 14 at 15:45









        Charles Green

        12.9k73556




        12.9k73556






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1092891%2fcant-mount-back-os-disk-partition-no-dev-sda%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents