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.
16.04 partitioning mount gparted disk
add a comment |
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.
16.04 partitioning mount gparted disk
please run the commandmount
and tell us what it says!
– George Udosen
Nov 14 at 15:13
add a comment |
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.
16.04 partitioning mount gparted disk
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
16.04 partitioning mount gparted disk
asked Nov 14 at 14:40
dorukoski
285
285
please run the commandmount
and tell us what it says!
– George Udosen
Nov 14 at 15:13
add a comment |
please run the commandmount
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
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
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
edited Nov 14 at 18:18
mook765
3,27221022
3,27221022
answered Nov 14 at 15:45
Charles Green
12.9k73556
12.9k73556
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
please run the command
mount
and tell us what it says!– George Udosen
Nov 14 at 15:13