* Disklabel Command
@ 2000-12-16 10:55 Howard Arnold
2000-12-16 14:40 ` Rich Payne
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Howard Arnold @ 2000-12-16 10:55 UTC (permalink / raw)
To: axp-list
Is there a command in Linux like the Tru64 disklabel command? 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.
This was nice if you had to partition alot of disks with the same partition
sizes or if you were building systems using scripts.
Howard
arnoldh@celerent.com
____________NetZero Free Internet Access and Email_________
Download Now http://www.netzero.net/download/index.html
Request a CDROM 1-800-333-3633
___________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Disklabel Command
2000-12-16 10:55 Disklabel Command Howard Arnold
@ 2000-12-16 14:40 ` Rich Payne
2000-12-16 16:43 ` Michal Jaegermann
2000-12-17 17:46 ` Brian Pomerantz
2000-12-18 13:00 ` Alvin Starr
2 siblings, 1 reply; 6+ messages in thread
From: Rich Payne @ 2000-12-16 14:40 UTC (permalink / raw)
To: axp-list
On Sat, 16 Dec 2000, Howard Arnold wrote:
> Is there a command in Linux like the Tru64 disklabel command? 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.
>
> This was nice if you had to partition alot of disks with the same partition
> sizes or if you were building systems using scripts.
look at sfdisk, it can read from a file and output to a file.
--rdp
--
Rich Payne
rpayne@alphalinux.org www.alphalinux.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Disklabel Command
2000-12-16 14:40 ` Rich Payne
@ 2000-12-16 16:43 ` Michal Jaegermann
2000-12-16 19:56 ` Matt Wilson
0 siblings, 1 reply; 6+ messages in thread
From: Michal Jaegermann @ 2000-12-16 16:43 UTC (permalink / raw)
To: axp-list
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Disklabel Command
2000-12-16 16:43 ` Michal Jaegermann
@ 2000-12-16 19:56 ` Matt Wilson
0 siblings, 0 replies; 6+ messages in thread
From: Matt Wilson @ 2000-12-16 19:56 UTC (permalink / raw)
To: axp-list
On Sat, Dec 16, 2000 at 09:43:14AM -0700, Michal Jaegermann wrote:
>
> 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.
It'd be nice to integrate any changes into the standard util-linux
fdisk program - the code isn't nearly as bad as it used to be.
Matt
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Disklabel Command
2000-12-16 10:55 Disklabel Command Howard Arnold
2000-12-16 14:40 ` Rich Payne
@ 2000-12-17 17:46 ` Brian Pomerantz
2000-12-18 13:00 ` Alvin Starr
2 siblings, 0 replies; 6+ messages in thread
From: Brian Pomerantz @ 2000-12-17 17:46 UTC (permalink / raw)
To: axp-list
On Sat, Dec 16, 2000 at 05:55:10AM -0500, Howard Arnold wrote:
> Is there a command in Linux like the Tru64 disklabel command? 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.
>
> This was nice if you had to partition alot of disks with the same partition
> sizes or if you were building systems using scripts.
>
I think there is a command line tool for editing disklabels in the
aboot source tree. I have tried it yet (I wrote a perl wrapper to
fdisk before I realized tere was this utility). You may want to go
check that out.
BAPper
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Disklabel Command
2000-12-16 10:55 Disklabel Command Howard Arnold
2000-12-16 14:40 ` Rich Payne
2000-12-17 17:46 ` Brian Pomerantz
@ 2000-12-18 13:00 ` Alvin Starr
2 siblings, 0 replies; 6+ messages in thread
From: Alvin Starr @ 2000-12-18 13:00 UTC (permalink / raw)
To: axp-list
On Sat, 16 Dec 2000, Howard Arnold wrote:
> Is there a command in Linux like the Tru64 disklabel command? 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.
>
> This was nice if you had to partition alot of disks with the same partition
> sizes or if you were building systems using scripts.
To clone disk partitions I usualy just copy the first few blocks from my
prototype disk. The other possibilty is to use kickstart. It will let you
set up your partitions from the kick start script file.
Alvin Starr || voice: (416)585-9971
Interlink Connectivity || fax: (416)585-9974
alvin@iplink.net ||
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2000-12-18 13:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-16 10:55 Disklabel Command Howard Arnold
2000-12-16 14:40 ` Rich Payne
2000-12-16 16:43 ` Michal Jaegermann
2000-12-16 19:56 ` Matt Wilson
2000-12-17 17:46 ` Brian Pomerantz
2000-12-18 13:00 ` Alvin Starr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox