From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: Disklabel Command
Date: Sat, 16 Dec 2000 09:43:14 -0700 [thread overview]
Message-ID: <20001216094314.A24115@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <Pine.LNX.4.21.0012160939420.9709-100000@talisman.mv.com>; from Rich Payne on Sat, Dec 16, 2000 at 09:40:12AM -0500
On Sat, Dec 16, 2000 at 09:40:12AM -0500, Rich Payne wrote:
> On Sat, 16 Dec 2000, Howard Arnold wrote:
>
> > The disklabel
> > command allowed you to copy the partition table of a disk to a file and
> > modify it. It could than be copied back to the disk.
>
> look at sfdisk, it can read from a file and output to a file.
'sfdisk', which is a short for "scriptable fdisk", works very well, and
for years, for FAT type partition tables. If you will try to use for a
disk with "disklabel" you will see something of that sort:
# sfdisk -l /dev/sda
Disk /dev/sda: 8715 cylinders, 64 heads, 32 sectors/track
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sda: unrecognized partition
No partitions found
I wrote somewhat similar, but simpler and not implemententing full
functionality of 'sfdisk' (main stuff is there), utility which reads
and writes disklabels, only, as they are used by Linux on Alpha. If
there is an interest I may put it up for ftp.
I read once a account of somebody very proud of himself who was driving
in scripts 'fdisk' from stdout. Not very hard to do, if a bit funny and
scary at the same time, but the guy had 'sfdisk' and only was not aware
of that. :-)
Older distros of Linux for Alpha included 'minlabel' utility. I am not
sure how usable it was in scripts, probably it was, but apparently it
had some problems.
Michal
p.s. BTW, the current version of 'bdsfdisk' is improved a bit over the
stuff I send a while ago to folks in Red Hat.
next prev parent reply other threads:[~2000-12-16 16:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-16 10:55 Disklabel Command Howard Arnold
2000-12-16 14:40 ` Rich Payne
2000-12-16 16:43 ` Michal Jaegermann [this message]
2000-12-16 19:56 ` Matt Wilson
2000-12-17 17:46 ` Brian Pomerantz
2000-12-18 13:00 ` Alvin Starr
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox