Re: [Cooker] creating partitions at command line

2000-02-02 Thread Francis GALIEGUE

"Hugo Rabson" <[EMAIL PROTECTED]> writes:

> 
> In theory, I suppose I could make a carbon copy of the device ('cat /dev/hda
> | tar -cz > /dev/hdd/hda.tgz') but what if the destination hard drive has a
> different cylinder/sector configuration?
> 

No, that won't work at all.

1. /dev/hdd is a block device, not a directory.
2. if you cat /dev/hda, you cat the whole drive, from sector 0 to last sector.

Now what if you were a little more clear on what you want to do
exactly?
-- 
fg

# rm *;o
o: command not found



[Cooker] creating partitions at command line

2000-02-01 Thread Hugo Rabson

Problem: How to create a floppy which will boot into its own little Linux,
create and format partitions on the hard drive, and untar files (.tar.gz's
held on a CDROM) onto said hard drive.

Solution: TOMSRTBT, 'stb' (save the hard disk's boot sector), 'stf' (save
each partition's MBR), 'afio' and 'sfdisk'... but I can't get the parameters
for sfdisk right. I can create primary partitions, no problem, but I can't
seem to make extended partitions (/dev/hda[5-9]).

In theory, I suppose I could make a carbon copy of the device ('cat /dev/hda
| tar -cz > /dev/hdd/hda.tgz') but what if the destination hard drive has a
different cylinder/sector configuration?

TIA,

Hugo ... in over his head :^)