[Novalug] partition table as text??
DonJr
djr1952@hotpop.com
Wed Jan 30 11:14:37 EST 2008
On Wed, 2008-01-30 at 07:14 -0800, Beartooth wrote:
> Is there a command that will give something like the same
> information as in the displays of gparted and qtparted, but in a
> straight text terminal, where I can copy and paste it into email
> or a newsreader?
>
> The only way I have now, afaik, is to take a screenshot
> and attach it; but many lists don't accept attachments.
The three that I can think of real fast are:
sfdisk - Partition table manipulator for Linux
# sfdisk -l /dev/hda
or
fdisk - Partition table manipulator for Linux
# fdisk -l /dev/hda
or
disktype - disk format detector see <http://disktype.sourceforge.net/>
# disktype /dev/hda
Adjust the "hda" to whatever drive you are interested in.
{ must be ran as 'root' }
Note the output of fdisk or sdisk is in either cylinders or sectors.
"disktype" is a little more verbose and tries to give a more HUMAN
readable format of output.
--
DonJr
More information about the Novalug
mailing list