-   Linux - Software (
-   -   fdisk -l only lists one disk? (

hilltownboy 10-02-2011 03:51 PM

fdisk -l only lists one disk?
I have an external hard disk connected to my laptop through usb.
When it is turned off, fdisk with the "l" option lists only the partitions on the laptop hard disk (sda). When it is turn on, it lists only the partitions on the external disk (sdb).
Is there a command to make it list both?

Tinkster 10-02-2011 04:25 PM

That falls into the "should just work" category. Which distro is this
happening with, as which user are you running fdisk?

Larry Webb 10-02-2011 04:41 PM

When it lists sdb have you tried fdisk -l /dev/sda?

Tinkster is right, it should just work

hilltownboy 10-02-2011 06:20 PM

fdisk -l
Apologies and thanks! Running as root provides both the internal and the external disk partitions. I should have thought of that.

All times are GMT -5. The time now is 09:07 PM.