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



I saw the following:

  http://mail-index.netbsd.org/port-macppc/2015/01/01/msg002141.html

and after changing my "/etc/fstab" to use the wedge devices, my
machine comes up fine on local disk.

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 )
 1: Apple_partition_map Apple         63 @ 1        
 2:           Apple_HFS Boot       21105 @ 64        ( 10.3M)
 3:     Apple_UNIX_SVR2 Root    20972448 @ 21169     ( 10.0G) S0 RUFS k0  /
 4:     Apple_UNIX_SVR2 Swap     4195296 @ 20993617  (  2.0G) S1  SFS k0  (swap)
 5:     Apple_UNIX_SVR2 tmp      2097648 @ 25188913  (  1.0G) S2  UFS k0  /usr
 6:     Apple_UNIX_SVR2 var      8389584 @ 27286561  (  4.0G) S2  UFS k0  /usr
 7:     Apple_UNIX_SVR2 d0     120625343 @ 35676145  ( 57.5G) S2  UFS k0  /usr

Device block size=512, Number of Blocks=156301488 (74.5G)
DeviceType=0x0, DeviceId=0x0

[...]
wd0 at atabus0 drive 0
wd0: <Hitachi HDS721680PLAT80>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
dk0 at wd0: Boot
dk0: 21105 blocks at 64, type: hfs
dk1 at wd0: Root
dk1: 20972448 blocks at 21169, type: sysv
dk2 at wd0: Swap
dk2: 4195296 blocks at 20993617, type: sysv
[...]

If I use:

  /dev/dk2       none    swap    sw,dp    0 0

the 'swap1' script fails and 'swapctl' issues messages claiming:

  swapctl: /dev/dk2: Device not configured
  swapctl: setting dump device to /dev/dk2

If instead, I use:

  /dev/wd0b       none    swap    sw,dp    0 0

'swap1' fails with the following message from 'swapctl':

  swapctl: no match for `wd0b': No such process

Please advise.

-- 
|/"\ 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