parted -l and fdisk -l commands not working in terminal
Hello guys :)
When I run the parted -l command I just get my command prompt back as an output. When I run the fdisk -l command, I get the foll. output: youri@desktop-van-yourimiessen:~$ fdisk -l fdisk: cannot open /dev/loop0: Permission denied fdisk: cannot open /dev/loop1: Permission denied fdisk: cannot open /dev/loop2: Permission denied fdisk: cannot open /dev/loop3: Permission denied fdisk: cannot open /dev/loop4: Permission denied fdisk: cannot open /dev/loop5: Permission denied fdisk: cannot open /dev/loop6: Permission denied fdisk: cannot open /dev/loop7: Permission denied fdisk: cannot open /dev/sda: Permission denied fdisk: cannot open /dev/loop9: Permission denied fdisk: cannot open /dev/loop10: Permission denied fdisk: cannot open /dev/loop8: Permission denied fdisk: cannot open /dev/loop11: Permission denied fdisk: cannot open /dev/loop12: Permission denied fdisk: cannot open /dev/loop13: Permission denied fdisk: cannot open /dev/loop14: Permission denied fdisk: cannot open /dev/loop15: Permission denied fdisk: cannot open /dev/loop16: Permission denied fdisk: cannot open /dev/loop17: Permission denied fdisk: cannot open /dev/loop18: Permission denied fdisk: cannot open /dev/loop20: Permission denied fdisk: cannot open /dev/loop19: Permission denied fdisk: cannot open /dev/loop21: Permission denied fdisk: cannot open /dev/loop22: Permission denied fdisk: cannot open /dev/loop23: Permission denied youri@desktop-van-yourimiessen:~$ I'm running both commands as the superuser. So my main questions are: -Why is the parted -l command not outputting my disk information? -Why am I denied acces when running fdisk -l? |
What distribution are you running? If you are running Ubuntu or Mint or similar the first user is the administrator but not the superuser i.e root. The administrator is allowed to run commands as root using the sudo command.
sudo parted -l sudo fdisk -l You will be prompted for your user's password. Otherwise more information is required. |
Quote:
|
My guess is the OP is running Ubuntu and the loop devices are snap devices. Since fdisk was not run as sudo you see the permission denied error.
|
Hello guys
I was indeed running as admin and not root! putting sudo infront of the command solved the issue :) Thx a lot!! |
All times are GMT -5. The time now is 08:23 PM. |