LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /sbin/fdisk not fully functional (https://www.linuxquestions.org/questions/linux-newbie-8/sbin-fdisk-not-fully-functional-4175668720/)

ddann 01-30-2020 01:57 PM

/sbin/fdisk not fully functional
 
I'm using Debian LXDE and having trouble with fdisk command.

The only option that seems to work is -v. fdisk -l returns blank. (note: I am using "l", pronounced "el", not 1 - "one") BTW, the version is 2.17.2

option -b returns the same as -h. "-b -l" also returns help.

If I can't find the sectors this way, can I glean them from the file manager description?: /media/70A0E115A0E0E298

berndbausch 01-30-2020 03:44 PM

You mean partitions, not sectors, right? You can see partitions with the command lsblk, or ls /sys/class/block.

I don't know Debian too well; perhaps that is the normal behaviour of Debian fdisk. Or try reinstalling fdisk.

syg00 01-30-2020 03:50 PM

I don't do Debian, but on Fedora you need sudo to use fdisk.

hazel 01-30-2020 04:00 PM

Quote:

Originally Posted by syg00 (Post 6084633)
I don't do Debian, but on Fedora you need sudo to use fdisk.

I think that's a general rule.

syg00 01-30-2020 05:07 PM

Never used to be - I got quite pissed off when Fedora changed. Was a while ago tho'.

hazel 01-31-2020 04:16 AM

I just tried it in Slackware. Permission refused. /dev/sda belongs to root:disk and I'm not a member of the disk group.

fatmac 01-31-2020 06:56 AM

Use sudo, it is stored in /sbin, therefore a root user command.

(man fdisk)


All times are GMT -5. The time now is 04:00 AM.