Last Update: "2005/09/25 12:39:57 makoto"
boot-device
To set boot-device and boot-file on Open Firmware,
> setenv boot-device cd:,ofwboot.elf
> setenv boot-file hd:3/netbsd
hfsutils
By using hfsutils, you may copy ofwboot.elf to HFS partition. To use hfsutils,
you need to install the package:
setenv PKG_PATH ftp://ftp.ki.nu/packages/3.99.3/All
sudo pkg_add hfsutils
use disklabel to get HFS partition name
ttyp6:makoto@mini 9:11:52/050701(~)> sudo disklabel /dev/wd0c
disklabel: Invalid signature in mbr record 0
# /dev/wd0c:
type: unknown
disk: ST9808210A
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 8256 4.2BSD 1024 8192 0 # (Cyl. 8*- 2088*)
b: 2097152 2105408 swap # (Cyl. 2088*- 4169*)
c: 156301488 0 unused 0 0 # (Cyl. 0 - 155060)
d: 8192 64 HFS # (Cyl. 0*- 8*)
e: 135321712 20979776 4.2BSD 1024 8192 0 # (Cyl. 20813*- 155060)
g: 16777216 4202560 4.2BSD 2048 8192 0 # (Cyl. 4169*- 20813*)
use hmount to mount HFS file system
ttyp6:makoto@mini 9:11:55/050701(~)> sudo hmount /dev/wd0d
Volume name is "Untitled"
Volume was created on Tue Feb 1 19:22:04 2005
Volume was last modified on Sun May 1 09:59:18 2005
Volume has 3760640 bytes free
use hdir to get the list of files ( The following is the older one written in February.)
ttyp6:makoto@mini 9:12:04/050701(~)> sudo hdir
f ????/UNIX 0 53944 Feb 1 19:22 ofwboot.elf
use hcopy to copy files
ttyp6:makoto@mini 9:43:41/050701(...macppc/installation)> ls -l
total 208
drwxr-xr-x 2 root wheel 512 Apr 18 14:34 floppy/
-r--r--r-- 1 root wheel 53944 Apr 18 14:34 ofwboot.elf
-r--r--r-- 1 root wheel 50924 Apr 18 14:34 ofwboot.xcf
ttyp6:makoto@mini 9:43:49/050701(...macppc/installation)> sudo hcopy ofwboot.elf :
Password:
ttyp6:makoto@mini 9:44:07/050701(...macppc/installation)> sudo hdir
f ????/UNIX 0 53944 Jul 1 09:44 ofwboot.elf
ttyp6:makoto@mini 9:44:09/050701(...macppc/installation)>
: is the character to designate volume top directory.
|