Subject: Swap on IDE-drives
To: None <amiga-dev@sun-lamp.cs.berkeley.edu>
From: Jan Roger Wilkens <jawil@aid.no>
List: amiga-dev
Date: 07/11/1994 01:35:22
I'm having problems getting NetBSD to recognise my swap-partition. I'm
booting from a partition on a SCSI-disk, but the swap-partition is on
one of the IDE-disks.
NetBSD recognizes the IDE-drive with the swap-partition on when booting
up, but it reports "No swap partition found" even though the partition
has the right idenntifier.
If I mount the swap-partition with mount_mfs, the right size is
displayed by 'mount', but the IDE drive-light never blinks.
If I mount it on /tmp, everything written to /tmp really
goes to RAM, so the system hangs if I copy in 3-5MB.
This fstab entry together with 'mount -av' yields the same result:
/dev/sd0b /tmp mfs rw
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/sd2a 9823 9054 277 97% /
adosfs 1 1 0 100% /ados/dh1
mfs:30 14894 2 14147 0% /tmp
etc..
If I change the identifier to NBU\1 and use it as a normal NetBSD-
partition (with swap on a SCSI-drive), everything works fine.
Could somebody fix this so that swap-partitions on IDE drives is
reconized even though the system is booted from a partition on a
SCSI-drive? (Search the SCSI-drives for boot-partitions first, then
the IDE-drives or something.)
Here is what disklabel reports for the IDE-disk that the swap-partition
is on:
# /dev/sd0c:
type: unknown
disk:
label: SWAP
flags:
bytes/sector: 512
sectors/track: 35
tracks/cylinder: 15
sectors/cylinder: 525
cylinders: 937
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
7 partitions:
# size offset fstype [fsize bsize cpg]
b: 30975 460950 swap # (Cyl. 878 - 936)
c: 491925 0 unused 0 0 # (Cyl. 0 - 936)
d: 165375 1050 ADOS # (Cyl. 2 - 316)
e: 241500 166425 ADOS # (Cyl. 317 - 776)
f: 21525 407925 ADOS # (Cyl. 777 - 817)
g: 31500 429450 ADOS # (Cyl. 818 - 877)
------------------------------------------------------------------------------