Last Update: "2005/07/01 09:50:01 makoto"
sysinst 後
check the partition #
# 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 ofwboot 8192 @ 64 ( 4.0M)
3: Apple_UNIX_SVR2 root 2097152 @ 8256 ( 1.0G) S0 RUFS k0 /
4: Apple_UNIX_SVR2 swap 2097152 @ 2105408 ( 1.0G) S1 SFS k0 (swap)
5: Apple_UNIX_SVR2 usr 16777216 @ 4202560 ( 8.0G) S2 UFS k0 /usr
6: Apple_UNIX_SVR2 export 135321712 @ 20979776 ( 64.5G) S2 UFS k0 /usr
Device block size=512, Number of Blocks=156301488 (74.5G)
DeviceType=0x0, DeviceId=0x0
Command (? for help):
In this case, the partition # for root(/) is '3'.
first boot
regular boot with CDROM
> boot cd:,ofwboot.elf hd:3/netbsd
The fisrt argument is boot-device, the second one is for boot-file,
see ofwboot(8). Then you will see
....
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
/etc/rc.conf is not configured. Multiuser boot aborted.
Enter pathname of shell or RETURN for /bin/sh:
We recommend creating a non-root account and using su(1) for root access.
No entry for terminal type "dumb";
using dumb terminal settings.
#
/etc/rc.conf
# mount -a
# ed /etc/rc.conf
515
/NO/
# Use program=YES to enable program, NO to disable it. program_flags are
/
rc_configured=NO
s/NO/YES/
w
516
q
# reboot
|