diskparts: list disk partitions, including any ext2 labels

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


On Mon, Mar 01, 2004 at 09:21:01PM -0500, D. Hugh Redelmeier wrote:
> 
> I often upgrade the OS on a machine by installing a new version of the OS.  
> When planning to do this, I often want a hard-copy of the partition layout 
> as a worksheet.
> 
> fdisk -l doesn't tell me quite enough: I'd like to know what is on the 
> partitions.  I label all my ext[23] partitions, but the labels don't show 
> up in the fdisk output.
> 
> Generally, I do an fdisk -l and then scrible on the results.  As a 
> labour-saving device, I've just written a script to do the annotation 
> automatically.
> 
> I'm posting it here to get some feedback:
> - do you find this useful?
> - what would you add to this?
> - is there a simpler way?

After checking 'e2fsprogs' package,
    blkid -s TYPE
is simpler than 'e2label'.

-- 
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