Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Problem accessing HFS



Hello,

I was going to upgrade my mini from 4.99.72 to netbsd-5.
What I planned to do was just copy the new GENERIC kernel to the HFS
partition and reboot, but when I tried to access/copy the HFS partition, I
just ended scratching it :(

The system is still up but I guess I won't ever boot at next reboot.
Here's what my installation look like:
guarana# pdisk /dev/wd0c
Edit /dev/wd0c -
Command (? for help): p

Partition map (with 512 byte blocks) on '/dev/wd0c'
 #:                type name      length   base      ( size )
 1: Apple_partition_map Apple         63 @ 1
 2:           Apple_HFS boot      204800 @ 64        (100.0M)
 3:     Apple_UNIX_SVR2 root     2097152 @ 204864    (  1.0G) S0 RUFS k0  /
 4:     Apple_UNIX_SVR2 swap      524288 @ 2302016   (256.0M) S1  SFS k0 
(swap)
 5:     Apple_UNIX_SVR2 usr      8388608 @ 2826304   (  4.0G) S2  UFS k0
 6:     Apple_UNIX_SVR2 home   145086576 @ 11214912  ( 69.2G) S2  UFS k0

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

guarana# disklabel wd0
# /dev/rwd0c:
type: unknown
disk: Hitachi HTS5410
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 155061
total sectors: 156301488
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   2097152    204864     4.2BSD      0     0     0  # (Cyl.    203*-  
2283*)
 b:    524288   2302016       swap                     # (Cyl.   2283*-  
2803*)
 c: 156301488         0     unused      0     0        # (Cyl.      0 -
155060)
 d:    204800        64        HFS                     # (Cyl.      0*-   
203*)
 e: 145086576  11214912     4.2BSD      0     0     0  # (Cyl.  11125*-
155060)
 g:   8388608   2826304     4.2BSD      0     0     0  # (Cyl.   2803*- 
11125*)

If I look at my notes, what I did last time (from the install CD) is:
* prepare the HFS (boot) partition
 # hformat -l boot /dev/wd0d
 # hmount /dev/wd0d
 # hcopy /usr/mdec/ofwboot.xcf :
 # hcopy /netbsd :
 # humount /dev/wd0d

This is was I tried to do again but I keep getting only "netbsd" when I
issue the hls command...

guarana# hmount /dev/wd0d
Volume name is "boot"
Volume was created on Sat Dec  6 12:02:56 2008
Volume was last modified on Sat Dec  6 12:03:30 2008
Volume has 103088128 bytes free
guarana# hpwd
boot:
guarana# hls
netbsd
guarana# hcopy /tmp/HFS/ofwboot.xcf :
guarana# hcopy /tmp/HFS/netbsd :
guarana# hls
netbsd
guarana# hcopy :netbsd .
hcopy: ":netbsd": read unallocated block (Input/output error)
guarana# humount /dev/wd0d

I'm using hfsutils-3.2.6nb1.

Any idea how to reinstall the kernel & bootloader on the HFS partition ?

TIA,
     Jo



Home | Main Index | Thread Index | Old Index