Subject: disk with Windows and FreeBSD parts - weird disklabel
To: None <netbsd-help@netbsd.org>
From: Charlie Root <joel.carnat@noos.fr>
List: netbsd-help
Date: 03/27/2002 00:13:36
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 ? :)
Thanks for answers,
Jo