Subject: Re: disk with Windows and FreeBSD parts - weird disklabel
To: Charlie Root <joel.carnat@noos.fr>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 03/26/2002 23:16:20
On Wed, Mar 27, 2002 at 12:13:36AM +0100, Charlie Root wrote:
> Hi,
> 	first, I hope to be in the right list !
> 	then, here's my problem:
> 	I have a 40G hard drive with 4G of Windows (NTFS), 2G of Windows (FAT32) and the rest of FreeBSD (UFS).
> 	I wanted to mount the three slices on my NetBSD... but when I disklabled it gave me:
> ----------
> > disklabel wd0
> disklabel: old BSD partition ID!
> # /dev/rwd0d:
> type: ESDI
> disk: ad0s3
> label: 
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 255
> sectors/cylinder: 16065
> cylinders: 4367
> total sectors: 70155855
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0           # microseconds
> track-to-track seek: 0  # microseconds
> drivedata: 0 
> 
> 8 partitions:
> #        size   offset     fstype   [fsize bsize cpg/sgs]
>   c: 70155855 10249470     unused        0     0         # (Cyl.  638 - 5004)
>   e: 70155855 10249470     4.2BSD     2048 16384    89   # (Cyl.  638 - 5004)
> disklabel: partition c: partition extends past end of unit
> disklabel: partition e: partition extends past end of unit
> 
> ----------
> 	
> 	I thought I would only have to add the 'a' and 'b' definitions by hand (as written in the doc) BUT ... the definition for c is the same then the e one...
> 	I'm afraid of modifying the c part to something like
>   c: 80405295       63     unused        0     0
> 	Then add the 'a' and 'b' part for the windows part...
> 
> 	Would the c slice modification be safe ???
> 	If not, how do I do ? :)

Try the mbrlabel program. Read the man page carefully or you may
trash your FreeBSD partition.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--