Port-macppc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: disk devices vs. wedges and wrong FS type
On Thu, 22 Jan 2015 19:25:54 +0000 (UTC), christos%astron.com@localhost
(Christos Zoulas) wrote:
> Perhaps there is a check that the type of the device is swap...
On Thu, 22 Jan 2015, John D. Baker wrote:
> The only problem that remains is that I cannot seem to configure the
> swap partition:
>
> $ pdisk -l /dev/rwd0c
>
> Partition map (with 512 byte blocks) on '/dev/rwd0c'
> #: type name length base ( size )
[...]
> 4: Apple_UNIX_SVR2 Swap 4195296 @ 20993617 ( 2.0G) S1 SFS k0 (swap)
[...]
The "bzb flags" (as they are called in the partitioning HOWTO referenced
in the macppc INSTALL document) says this partition is the swap partition.
'disklabel' agrees with this:
$ disklabel wd0
[...]
7 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 20972448 21169 4.2BSD 0 0 0 # (Cyl. 21*- 20827*)
b: 4195296 20993617 swap # (Cyl. 20827*- 24989*)
c: 156301488 0 unused 0 0 # (Cyl. 0 - 155060)
d: 21105 64 HFS # (Cyl. 0*- 21*)
e: 8389584 27286561 4.2BSD 0 0 0 # (Cyl. 27070*- 35393*)
f: 120625343 35676145 4.2BSD 0 0 0 # (Cyl. 35393*- 155060)
g: 2097648 25188913 4.2BSD 0 0 0 # (Cyl. 24989*- 27070*)
disklabel: boot block size 0
disklabel: super block size 0
It seems the DKWEDGE_AUTODISCOVER code for parsing Apple Partition Map
doesn't look at the flags, but only the type:
> dk2 at wd0: Swap
> dk2: 4195296 blocks at 20993617, type: sysv
> [...]
I can fill "/dev/rdk2" with data ('dd' from /dev/zero) and read it back,
so obviously the device IS configured. I just can't tell the machine to
use it as swap--'swapctl' claims "/dev/dk2: Device not configured".
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Home |
Main Index |
Thread Index |
Old Index