Port-xen archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Second Disk
On Fri, Dec 02, 2005 at 04:01:55PM -0700, John R. Shannon wrote:
> After creating several domainU's on sd0, I'm trying to create domains on
> sd1 and encountering surprises.
>
> sd1 is partitioned:
>
> domain0# disklabel sd1
> # /dev/rsd1d:
> type: SCSI
> disk: mydisk
> label: fictitious
> flags:
> bytes/sector: 512
> sectors/track: 705
> tracks/cylinder: 4
> sectors/cylinder: 2820
> cylinders: 50824
> total sectors: 143374744
> rpm: 15015
> 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: 143374681 63 unused 0 0 # (Cyl. 0*-
> 50842*)
> d: 143374744 0 unused 0 0 # (Cyl. 0 -
> 50842*)
> e: 35830920 63 4.2BSD 2048 16384 28760 # (Cyl. 0*-
This is your problem. The disk's disklabel will be stored in the first
sectors of the c: partition.
As your e: partition starts at the same offset, you'll get the disklabel
of the whole disk when reading the first sectors.
change e: to leave some sectors for the disklabel. For example, make it
start at sector 80
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index