Subject: Re: Disk Problems(sysinst)
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: David Guynn <dguynn@geocities.com>
List: port-i386
Date: 02/16/1999 07:28:28
Okay a few problems: First, I fixed a script and instructions error. Then when it
all came together, i got back:
disklabel: sectors/track 0

Thanks,
-dg

Patrick Welche wrote:

> > Maxtor 91360D8 | Automatically generated label:\
> >     :dt=unknown:se#512:ns#63:nt#16:sc#1008:nc#16383:\
> >     :pc#6313544:oc#20209770:\
> >     :pd#26563824:od#0:\
> >     :pe#20209707:oe#63:te=MSDOS:\
> >     :pf#6313544:of#20209770:
>
> This says you have a 10347369984 byte (9.6Gb) DOS partition, and a
> 3232534528 byte (3Gb) Correct?
>
> My offering:
>
> Maxtor91360D8 | Maxtor 91360D8:\
>     :dt=unknown:se#512:ns#63:nt#16:sc#1008:nc#16383:\
>     :pa#204624:oa#20209770:ta=4.2BSD:ba#8192:fa#1024:\
>     :pb#204624:ob#20414394:tb=swap:\
>     :pc#6313544:oc#20209770:\
>     :pd#26563824:od#0:\
>     :pe#204624:oe#20619018:te=4.2BSD:be#8192:fe#1024:\
>     :pf#5699672:of#20823642:tf=4.2BSD:bf#8192:ff#1024:\
>     :pg#20209707:og#63:tg=MSDOS:
>
> > By the way: The disk is partitioned, just not labeled
>
> Misunderstanding due to the multiple meanings of "partioned". I have randomly
> decided to partition it as
>
> a: 100Mb /
> b: 100Mb swap
> e: 100Mb /var
> f: 2.7Gb /usr
>
> or:
>
> /dev/wd0a / ffs rw 1 1
> /dev/wd0b none swap sw 0 0
> /dev/wd0e /var ffs rw 1 2
> /dev/wd0f /usr ffs rw 1 2
> /dev/wd0g /dos msdos rw,noauto 0 0
>
> which is what you might like to put into /etc/fstab. (So that if you create
> a /dos directory, typing "mount /dos" would allow you access to your dos
> "partition")
>
> One way of labeling your disk with the above offering might be to save it
> on a dos floppy as say "mydisk", then
>
> mount -t msdos /dev/fd0a /mnt2
> cat /mnt2/mydisk >> /etc/disktab
> disklabel -w -r wd0 Maxtor91260D8
> umount /mnt2
> newfs /dev/rwd0a
> newfs /dev/rwd0e
> newfs /dev/rwd0f
> fsck /dev/rwd0a
> fsck /dev/rwd0e
> fsck /dev/rwd0f
> mount /dev/wd0a /mnt
> mkdir /mnt/var
> mkdir /mnt/usr
> mount /dev/wd0e /var
> mount /dev/wd0f /usr
> Then it is "just" a matter of untarring the snapshot à la
> tar -xzf kern.tgz -C /mnt
> tar -xzf base.tgz -C /mnt
> whereever you may have these sets... Are you on a network etc.
> cd /mnt/dev; sh MAKEDEV all
> get the above fstab into /mnt/etc...
>
> Good luck,
>
> Patrick