Subject: NetBSD/alpha/i386 disklabel
To: None <port-i386@netbsd.org>
From: Ray Phillips <r.phillips@jkmrc.uq.edu.au>
List: port-i386
Date: 05/21/2002 14:43:21
Dear NetBSD/i386:
It seems the disklabels created by NetBSD/alpha and NetBSD/i386
aren't compatible? I tried two experiments:
1) installed NetBSD/alpha 1.5.2 on a SCSI disk in a PWS 500a, then connected
the disk to an Adaptec 2940UW SCSI controller in a PC running NetBSD/i386
1.5.2. I thought I'd be able to mount the SCSI disks two 4.2BSD partitions
under the IDE system disk's file system but I couldn't access a, only d.
2) installed NetBSD/i386 1.5.2 on a SCSI disk in a PC, then connected the disk
to an AlphaStation 200 4/166 running NetBSD/alpha 1.5.2. I couldn't access
a or d.
I've appended the output of disklabel(8) and mount(8) to the end of
this message.
I thought the different ports of NetBSD would all(?) use ffs file
systems and it would be possible for them to mount each others
partitions.
Ray
Alpha disk on alpha
-------------------
# disklabel sd2
# /dev/rsd2c:
type: unknown
disk: mydisk
label:
flags:
bytes/sector: 512
sectors/track: 113
tracks/cylinder: 20
sectors/cylinder: 2260
cylinders: 3708
total sectors: 8380080
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]
a: 262160 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 115)
b: 2092760 262160 swap # (Cyl. 116 - 1041)
c: 8380080 0 unused 0 0 # (Cyl. 0 - 3707)
d: 6025160 2354920 4.2BSD 1024 8192 16 # (Cyl. 1042 - 3707)
Alpha disk on PC
----------------
# disklabel sd0
# /dev/rsd0d:
type: SCSI
disk: RZ1CF-AF (C) DE
label: fictitious
flags:
bytes/sector: 512
sectors/track: 113
tracks/cylinder: 20
sectors/cylinder: 2260
cylinders: 3708
total sectors: 8380080
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
d: 8380080 0 unused 0 0 # (Cyl. 0 - 3707)
disklabel: boot block size 0
disklabel: super block size 0
# mount /dev/sd0a /mnt
mount: cannot open `/dev/sd0a': Device not configured
PC disk on PC
-------------
# disklabel sd0
# /dev/rsd0d:
type: unknown
disk: mydisk
label:
flags:
bytes/sector: 512
sectors/track: 108
tracks/cylinder: 11
sectors/cylinder: 1188
cylinders: 3511
total sectors: 4194995
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]
a: 1091664 108 4.2BSD 1024 8192 16 # (Cyl. 0*- 918)
b: 2099196 1091772 swap # (Cyl. 919 - 2685)
c: 4194887 108 unused 0 0 # (Cyl. 0*- 3531*)
d: 4194995 0 unused 0 0 # (Cyl. 0 - 3531*)
e: 1004027 3190968 4.2BSD 1024 8192 16 # (Cyl. 2686 - 3531*)
PC disk on alpha
----------------
# disklabel sd2
# /dev/rsd2c:
type: SCSI
disk: ST32550W SUN2.1
label: fictitious
flags:
bytes/sector: 512
sectors/track: 108
tracks/cylinder: 11
sectors/cylinder: 1188
cylinders: 3511
total sectors: 4194995
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
3 partitions:
# size offset fstype [fsize bsize cpg/sgs]
c: 4194995 0 unused 0 0 # (Cyl. 0 - 3531*)
disklabel: boot block size 0
disklabel: super block size 0
as200# mount /dev/sd2a /mnt
mount: cannot open `/dev/sd2a': Device not configured
as200# mount /dev/sd2d /mnt
mount: cannot open `/dev/sd2d': Device not configured