Subject: Disklabel problem? Or act of god?
To: Port-Cobalt <port-cobalt@netbsd.org>
From: Paul Nevin <paul@evilspider.com>
List: port-cobalt
Date: 08/15/2001 17:16:36
-----BEGIN PGP SIGNED MESSAGE-----
Hi,
I was wondering if anyone can help me with a Qube2 and disklabel/ext2
problem. I have configured the drive as below. This gives me a 63Mb
/altroot wd0e ext2 partition, a 128Mb swap wd0b and a 56Gb / wd0a.
Strangely enough the kernel loads, but not without intervention. I
have to manually specify the root disk via the serial console. Could
you please look at my config and tell me if I have simply stuffed up
the partitions or is there something I have missed.
Thanks.
qube# disklabel -r wd0
# /dev/rwd0d:
type: ESDI
disk: QUANTUM FIREBALL
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 120478088
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: 120083960 394128 4.2BSD 1024 8192 16 # (Cyl.
391 - 119521*)
b: 263088 131040 swap # (Cyl.
130 - 390)
c: 120083960 394128 unused 0 0 # (Cyl.
391 - 119521*)
d: 120478088 0 unused 0 0 # (Cyl.
0 - 119521*)
e: 131039 1 Linux Ext2 0 0 # (Cyl.
0*- 129)
And the fdisk output:
qube# fdisk wd0
NetBSD disklabel disk geometry:
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)
BIOS disk geometry:
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)
Partition table:
0: sysid 131 (Linux native)
start 1, size 131039 (63 MB), flag 0x0
beg: cylinder 0, head 0, sector 2
end: cylinder 8, head 39, sector 63
1: sysid 130 (Linux swap or Prime or Solaris)
start 131040, size 263088 (128 MB), flag 0x0
beg: cylinder 8, head 40, sector 1
end: cylinder 24, head 135, sector 63
2: sysid 169 (NetBSD)
start 394128, size 120083960 (58634 MB), flag 0x0
beg: cylinder 24, head 136, sector 1
end: cylinder 1023, head 254, sector 63
3: <UNUSED>
The ext2 partition was created with:
#Mke2fs -r 0 -O none /dev/wd1e
from another NetBSD box.
The fstab is:
qube# more /etc/fstab
/dev/wd0a / ffs rw,softdep 0 1
/dev/wd0b none swap sw 0 0
/dev/wd0e /altroot ext2fs rw 0 2
kern /kern kernfs rw 0 0
proc /proc procfs rw 0 0
The serial console output on boot is:
Cobalt Microserver Diagnostics - 'We serve it, you surf it'
Built Tue Dec 15 04:11:42 PST 1998
1.LCD Test................................PASS
2.Controller Test.........................PASS
5.Bank 0:.................................16M
6.Bank 1:.................................16M
7.Bank 2:.................................16M
8.Bank 3:.................................16M
9.Serial Test.............................PASS
10.PCI Expansion Slot....................**EMPTY**
12.IDE Test................................PASS
13.Ethernet Test...........................PASS
16.RTC Test................................PASS
Decompressing done
Jump_to_Real_Kernel: disk error, trying BFD again <--- this is what
worries me!
Decompressing done
Decompressing done.
Blah blah blah....
Blah ..
boot device: <unknown>
root device: wd0a <-- I have to type this in!
dump device (default wd0b):
file system (default generic):
root on wd0a dumps on wd0b
root file system type: ffs
Blah blah blah...
Blah ...
Login:
I have followed this procedure to the letter with a 40Gb disk and it
works perfectly. The 60Gb disk has the same specifications only two
more platters.. So eveything "should" work.
-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4
iQCVAwUBO3o99FR2WkdCOgHZAQGk+wP+P8Q/cglGUEEJFCzgbUo4ls/XtH5Nd3me
i583wj9RezRRvWWPBqPstaKsE6nTQ+m3yLgiv+a3XMCM+fe0eZ6Jc7vKqytBDTuE
sX+ON3WSqxP8A/Gxf6QaHIgvPNdljDlw7keFnmVokgGEgrBhYKszjhpe5SfrEZbP
K9DNkVDTlAE=
=wY3p
-----END PGP SIGNATURE-----