Subject: Re: Booting a 5000/240 from CD
To: Louis Wevers <freubel@xs4all.nl>
From: Anders Hogrelius <ahs@hogrelius.nu>
List: port-pmax
Date: 11/07/2007 21:40:58
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---1871705151-2103311659-1194468058=:96539
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
I believe the problem is that you have a valid disklabel when you try to=20
write the image to the disk. I've come across this problem before, though=
=20
on other platforms running *BSD. Try to wipe the disklabel by writing=20
zeros to /dev/rsdXc, reboot and then try to write the image to /dev/rsdXc
It is important that you write the image to the raw device, thus rsd=20
rather than sd. Also, slice c is the whole disk on most platforms with=20
i386 being one exception. The c (or d on i386) slice is automatically=20
assumed to be the whole disk by the kernel even if there isn't a valid=20
disklabel present.
Cheers,
Anders
****************************************************
Anders Hogrelius, MSc
Senior Exploration Geologist
TM Resources AB (Tumi Resources ltd)
Dr Christinas v=E4g 13
SE-733 36 Sala
SWEDEN
Phone: +46 (0)224 77820
Cell phone: +46 (0)70 677-0210
On Wed, 7 Nov 2007, Louis Wevers wrote:
> Hi,
>
> Ok, I've gotten to the part of trying to write the image to a spare drive=
=2E=20
> First I emptied the whole disk and created a partion on it using disklabe=
l=20
> and formatted it using newfs. The output of "dislabel -r sd5" looks like=
=20
> this:
>
> # disklabel -r sd5
>
> # /dev/rsd5c:
> type: SCSI
> disk: RZ58 (C) DE
> label: NetBSD
> flags:
> bytes/sector: 512
> sectors/track: 85
> tracks/cylinder: 15
> sectors/cylinder: 1275
> cylinders: 2112
> total sectors: 2698061
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0 # microseconds
> track-to-track seek: 0 # microseconds
> drivedata: 0
>
> 5 partitions:
> # size offset fstype [fsize bsize cpg/sgs]
> a: 2698061 0 boot # (Cyl. 0 - 211=
6*)
> c: 2698061 0 unused 0 0 # (Cyl. 0 - 211=
6*)
>
> So, then I tried to write the image to it using dd:
>
> # dd if=3D/dev/cd0a of=3D/dev/sd5a
> dd: /dev/sd5a: Read-only file system
> 4+0 records in
> 3+0 records out
> 1536 bytes transferred in 0.131 secs (11725 bytes/sec)
>
> I also tried using /dev/rsd5a as device and using a chmod 777 on /dev/sd5=
a;=20
> all with the same result. So, poking around a bit I tried using installbo=
ot=20
> to write anything to the disk:
>
> # installboot -v /dev/rsd5a /usr/mdec/bootxx_ffs
> File system: /dev/rsd5a
> File system type: raw (blocksize 8192, needswap 0)
> Primary bootstrap: /usr/mdec/bootxx_ffs
> Bootstrap start sector: 1
> Bootstrap sector count: 15
> Bootstrap load address: 0x80700000
> Bootstrap exec address: 0x80700000
> Writing bootstrap
> Writing boot block
> installboot: Writing `/dev/rsd5a': Read-only file system
> installboot: Set bootstrap operation failed
>
> So, the big question that remains for me is, how do I get my filesystem n=
ot=20
> to be read-only?
>
> Many thanks in advance.
>
> Louis
>
> Henry Bent wrote:
>> On Mon, 5 Nov 2007, Louis Wevers wrote:
>>=20
>>> Hi,
>>>=20
>>> Perhaps a bit stupid question, but I can't seem to figure it out. I try
>>> to boot my 5000/240 from a freshly created CD (created from the ISO
>>> image available from the NetBSD site).
>>>=20
>>> I tried something like: "boot 3/rz0" and "boot 3/rz0/netbsd"
>>>=20
>>> Unfortunately it only comes back to me with something like: "?IO: 3/rz0
>>> (cmd: rd)"
>>>=20
>>> When I boot the installed 1.6 on the machine, I can read the CD
>>> properly. file structure looks normal etc.
>>>=20
>>> Any ideas on how to boot the machine from CD?
>>>=20
>>> Many thanks in advance,
>>> Louis
>>>=20
>>=20
>> Hi Louis,
>>=20
>> You need a CD-ROM drive that can do 512 byte hardware sectors if you wan=
t
>> to boot from it. There's a list of them at
>> http://home.comcast.net/~safeharborbay/c128/scsi/suncds.html but I have
>> no affiliation with that site and can't guarantee anything. I personall=
y
>> have used RRD42s and various Toshiba models in the past.
>>=20
>> If that fails and you have an extra SCSI hard drive, you can just dd a C=
D
>> image to the hard drive and boot off of that. I've done it a few times
>> and neither Ultrix nor NetBSD seem to mind that you're not using a real
>> CD-ROM.
>>=20
>> --
>> Henry Bent
>> hbent@cs.oberlin.edu
>>=20
>>=20
>
>
---1871705151-2103311659-1194468058=:96539--