Subject: Re: disklabel for a large disk
To: Frederick Bruckman <fb@enteract.com>
From: Mike Cheponis <mac@Wireless.Com>
List: netbsd-help
Date: 04/18/2001 01:45:43
Thanks very much for the suggestions. I certainly learned a lot during this
escapade.

The End of the Saga is that I was only able to tar up my /etc directory
onto a floppy; the disks were too confused to even get the old wd0e to mount.

I did: dd if=/dev/zero of=/dev/rwd0a bs=8k and similar for wd1 and re-installed.

Morals: (1) Be -real careful- when using fdisk and disklabel and (2) always
back up the system -before- doing fdisk and disklabel.

(I love unix!  It makes me feel like I could juggle super-sharp Ginzu knives
while ice skating during a blizzard - and not suffer enough blood loss to
go unconscious!)

-Mike


On Tue, 17 Apr 2001, Frederick Bruckman wrote:

> On Tue, 17 Apr 2001, Mike Cheponis wrote:
> 
> I re-read your original message...
> 
> >   e: 64436400  1618848     4.2BSD     1024  8192     0   # (Cyl. 1606 - 65530)
> >
> > Notice that the size is wrong.  So edited this to be:
> [snip]
> >   e: 86312016  1618848     4.2BSD     1024  8192     0   # (Cyl. 1606 - 65530)
> 
> Ack! You can't change the size of the "e:" partition without newfs'ing
> that partition. If you haven't written anything to the disk (lately),
> the data should still be there, though. You may be able to restore the
> old disklabel and fsck (unmount /dev/wd0e first, then):
> 
>   disklabel -W wd1
>   disklabel -r -R wd1 /var/backups/disklabel.wd1.backup
>   disklabel -N wd1
>   fsck -f /dev/rwd1e
> 
> and so on.
> 
> 
> Frederick
>