diskparts: list disk partitions, including any ext2 labels

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Tue Mar 2 17:59:23 UTC 2004


On Tue, Mar 02, 2004 at 02:15:50AM -0500, D. Hugh Redelmeier wrote:
> On my RHL 7.0 system, "fdisk -l" without a drive pathname does not do
> anything.

>From 'man fdisk',
       -l     List  the  partition  tables for the specified devices and
	      then exit.  If no devices are given, those mentioned in
	      /proc/partitions (if that exists)  are used.

> 
> Your ??? isn't sufficiently quoted -- it matches all three-letter file
> names in the current directory.

Okey.  Move " to the end.

> Thanks for your comments.  Would you every use this script?w

No.  I usually do
    grep -w ext2 /etc/fstab
to get all ext2 partitions.

-- 
William Park, Open Geometry Consulting, <opengeometry-FFYn/CNdgSA at public.gmane.org>
Linux solution for data management and processing. 
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list