Subject: Re: disklabel/fdisk confusion
To: FUKAUMI Naoki <naoki@fukaumi.org>
From: Rasputin <rasputin@shikima.mine.nu>
List: port-hpcmips
Date: 04/18/2002 11:51:33
* FUKAUMI Naoki <naoki@fukaumi.org> [020417 17:29]:
> At Wed, 17 Apr 2002 14:16:52 +0100,
> Rasputin wrote:
> > =FDISK==========================================
> > Partition table:
> > 0: sysid 6 (Primary 'big' DOS, 16-bit FAT (> 32MB))
> > start 32, size 12000 (5 MB), flag 0x80
> > beg: cylinder 0, head 1, sector 1
> > end: cylinder 46, head 7, sector 32
>
> sysid 4 is better. (not important)
Can we update the install.txt then?
If you like, I can send-pr() once I get it working ?
> > 1: sysid 169 (NetBSD)
> > start 12033, size 250000 (122 MB), flag 0x0
> > beg: cylinder 47, head 0, sector 2
> > end: cylinder 977, head 7, sector 32
>
> you can use 'start 12032'.
>
> size 250000 is wrong.
>
> 978 * 8 * 32 (chs) = total sector is 250368
> start 12033 + size 250000 = last sector is 262032 (wrong)
>
> if you set start 12032, right size is 238336.
Brilliant, thanks a lot. This was giving me most trouble.
> > =DISKLABEL==========================================
> > 8 partitions:
> > # size offset fstype [fsize bsize cpg/sgs]
> > a: 235520 47 4.2BSD 1024 8192 16 # (Cyl. 0*- 920*)
> > b: 14592 235776 swap # (Cyl. 921 - 977)
> > c: 235520 12033 unused 0 0 # (Cyl. 47*- 967*)
> > d: 250368 0 unused 0 0 # (Cyl. 0 - 977)
> > e: 12000 32 MSDOS # (Cyl. 0*- 46)
> partition a and e are overwrapped. a: offset 47 is wrong.
> (size and offset (start) is sector #, not cylinder #)
Aaaaah, right. That explains a hell of a lot.
> if you can erase all data, try to clear current fdisk/disklabel completely
> $ dd if=/dev/zero of=/dev/rwd1d count=100
> ^^^^^ <- CF device name
> then create new disklabel.
Will do, I think I tried to force write a diskalbel based on install.txt
which I didn't really understand at the time. Possibly some bad data was
lying around in the label and causing the errors you mentioned?
> FYI
>
> If you want to add MSDOS partition infomation to NetBSD disklabel,
> mbrlabel command is very useful.
Thanks very much for all replies - I'll retry this.
(Good luck with raising the dead, Chris)
--
Rasputin :: Jack of All Trades - Master of Nuns ::