fsdisk (and others?) not working even as superuser

Total noob:

I’m trying to read a drive with my files I’m migrating from mac, but before I can even address that, there seems a more serious problem in that fsdisk (which has worked only intermittently) is off again. I log in as superuser / root, I get the cursor thing to switch to #, but I still get ‘command not found.’ Some internet research suggests it’s not just this one command, and others may not work either.

So, obviously, I need this to work. Would so like for it to work. Thank you.

try “fdisk” … As an aside, if your system’s disk(s) use gpt (which will be the case if it’s uefi based), then you’ll want to use gdisk instead … unless fdisk has been updated to handle gpt (man fdisk likely would convey such, but I’m on not near a computer to check)

How?

Read also this:
https://en.opensuse.org/SDB%3ALogin_as_root

Never log into a GUI as root. You can accidentally break stuff. Become root as needed using su - sudo or other methods

The command is fdisk not fsdisk

Open a terminal, issue:


su -
<root password>

Then try this:


fdisk -l /dev/sda

or whatever your disk of interest is instead of /dev/sda.
And yes, current version also reads GPT disks.

If you don’t find that command on your system, maybe you have to install package “util-linux”.

Okay, when I first installed Leap someone gave me the command fsdisk but it was a typo. It’s what I remembered, however.
fdisk does read GPT, thanks.
Could a mod delete this thread? thank you.

Why? Someone else may learn from this, as well.:wink: