Bug 6148

Summary: fdisk -l syntax broken
Product: [Retired] Red Hat Linux Reporter: Joshua Jensen <joshua>
Component: util-linuxAssignee: Cristian Gafton <gafton>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-17 23:40:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Joshua Jensen 1999-10-20 17:00:56 UTC
"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.

Comment 1 David Lawrence 1999-10-20 17:26:59 UTC
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.

Comment 2 onigif 2000-01-15 20:13:59 UTC
I need to use "fdisk -l" so, i have change it whit older version.
Can you in future reinsert this function?

Comment 3 Cristian Gafton 2000-02-17 23:40:59 UTC
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)