[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch to add new '--unit' option to parted
From: |
Mike Cooper |
Subject: |
Patch to add new '--unit' option to parted |
Date: |
Sat, 18 Feb 2012 14:15:57 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux i686 on x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 |
Hi Folks,
The "parted -m <dev> print" output is quite useful but it lacks the ability to
specify an option to control the units which are displayed. The attached
source diff for parted 3.0 adds a new command line option '--unit
compact|sector|byte|cylinder|chs' which provides the desired behavior.
A typical usage might be:
parted -m --unit sector /dev/sda print
to get output like:
/dev/sda:1465149168s:scsi:512:512:msdos:ATA ST3750640AS;
1:2048s:29296639s:29294592s:fat32::boot;
2:29298686s:1465147391s:1435848706s:::;
5:29298688s:87889919s:58591232s:ext4::;
6:87891968s:146483199s:58591232s:ext4::;
7:146485248s:179685375s:33200128s:linux-swap(v1)::;
8:179687424s:1465147391s:1285459968s:ext4::;
I hope the development team will adopt this for future releases.
Best regards,
mike
diff
Description: Text document