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



In article <Pine.NEB.4.64.1501230828300.10039%david.technoskunk.fur@localhost>,
John D. Baker <jdbaker%mylinuxisp.com@localhost> wrote:
>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".

Fixed in current:

dk9 at vnd0: Zathras
dk9: 204800 blocks at 64, type: hfs
dk10 at vnd0: netbsd
dk10: 1638400 blocks at 204864, type: sysv
dk11 at vnd0: swap
dk11: 8642497 blocks at 1843264, type: swap


christos



Home | Main Index | Thread Index | Old Index