Re: The first reboot to hard drive after the CD-rom install failed

Mark Grieveson <[email protected]>
Newsgroups gmane.os.netbsd.ports.macppc
Message-ID <[email protected]>
Hello,

On 2020-03-31 3:21 p.m., Martin Husemann wrote:
> On Tue, Mar 31, 2020 at 03:14:15PM -0400, Mark Grieveson wrote:
>> # pdisk -l /dev/rwd0c
>>
>> Partition map (with 512 byte blocks) on '/dev/rwd0c'
>>   #:        type             name         length    base    (size)
>>   1: Apple_partition_map      Apple              2  @  1
>>   2: NetBSD/macppc          NetBSD  2147483647 @   4    (1024.0G)
>>
>>
>> Device_block size=512, Number of Blocks=156301488 (74.5G)
>> DeviceType=0x0, DeviceId=0x0
>>
>> It appears the Apple partition map is quite small.
> Yeah, it is a dummy, enough to hold the bootloader.
>  From the above I would expect something like
>
> 	boot hd:1
>
> to work - but maybe the bootloader did not get installed?
>
> (I tried to create a new bootable disk earlier when working on the installer,
> but never managed to get it working, neither with the old netbsd-8 sysinst
> nor my hacked new version - will revisit it sometime)
>
> Can you also show the output of
>
> 	disklabel wd0
>
> ? You should be able to mount the NetBSD root partition from the install
> CD and verify it has /ofwboot. Also something like:
>
> 	installboot /dev/rwd0c /usr/mdec/bootxx /ofwboot
>
> should install the bootloader. You do not need ofwboot.xcf if you are booting
> w/o HFS partition.
>
> Martin

Hi Martin,

Here is the command result:

# disklabel wd0
# /dev/rwd0:
type: unknown
disk: ESDI/IDE disk
label: ST980815A
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

3 partitions:
#    size      offset     fstype   [fsize bsize cpg/sgs]
  a: 156037280     0        4.2BSD  0    0     0   # (Cyl.     0 - 154798*)
  b: 262144     156037312    swap                # (Cyl. 154798*- 155058*)
  c: 156301488      0        unused  0    0        # (Cyl.     0 - 155060)


I find the "unused" partition curious (letter "c").  I took the default
partition option when I ran the install disk.

Here's the result of the other command you suggested:

# installboot /dev/rwd0c /usr/mdec/bootxx /ofwboot
installboot: Could not find secondary bootstrap 'ofwboot' in '/dev/rwd0c'
installboot: (Path must be relative to the file system in '/dev/rwd0c')
installboot: Set bootstrap operation failed.

"boot hd:1" didn't work:

0> boot hd:1  MAC-PARTS: LOAD (noninterposed) not supportedload-size=0
adler32=1

LOAD-SIZE is too small


Anyway, I certainly appreciate your feedback.  Hopefully soon I can
figure this out.

Mark
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.