Red Hat Bugzilla – Bug 6148
fdisk -l syntax broken
Last modified: 2008-05-01 11:37:52 EDT
"fdisk -l" by itself no longer works. The man page is now
incorrect. Now required is a device: "fdisk -l /dev/xyz".
While this isn't the end of the world, this breaks many
scripts all over the place (including mkkickstart). Can you
please change this? It is very convenient to get a listing
of all partitions on all drives.
Tha man page is actually correct because the line
fdisk -l [-u] device
means the device specification is no longer optional when using the -l
switch where as the -u is. In the older fdisk manpage it was formatted
fdisk -l [-u] [device]
but anyway, i agree that the old way fdisk worked was better and I am
assigning this report to the proper developer since fdisk -l does in
fact now require a device name list.
I need to use "fdisk -l" so, i have change it whit older version.
Can you in future reinsert this function?
fdisk -l used to cause probing for all types of storage devices (not only fixed
hard disks), with results that were not always obvious (ie an invalid jaz drive,
or trying to autoload some module to access a certain medium, etc)
for fdisk -l you are better off using /proc/paritions (and going after fdisk -l
<device> if you need more info)