Unrelated(?) to the above, I got a weird error when I was trying to copy the file system to the usb stick. I didn't use the plain usb image including MBR, since I didn't want to burn a whole stick on this. Instead I prepared a stick with a NetBSD MBR partition already set up, and copied the filesystem of the usb image into it:
.../amd64/liveimage/usbimage$ sudo dd of=/dev/rsd1f if=imgroot.fs bs=64k
dd: /dev/rsd1f: Read-only file system
1+0 records in
0+0 records out
0 bytes transferred in 0.001 secs (0 bytes/sec)
.../amd64/liveimage/usbimage$
which failed with this strange "Read-only file system"?
I have written to other parts of the usb stick using mtools so it isn't
hardware write-protected. The partition is not mounted.
I had to resort to using a Lunix system to write to the stick...
umass1 at uhub3 port 1 configuration 1 interface 0
umass1: Toshiba USB Flash Memory, rev 2.00/1.00, addr 4
scsibus1 at umass1: 2 targets, 1 lun per target
sd1 at scsibus1 target 0 lun 0: <, USB Flash Memory, 1.00> disk
removable
sd1: fabricating a geometry
sd1: 14793 MB, 14793 cyl, 64 head, 32 sec, 512 bytes/sect x 30297216
sectors
sd1: fabricating a geometry
$ fdisk sd1
Disk: /dev/rsd1d
NetBSD disklabel disk geometry:
cylinders: 14793, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 30297216
BIOS disk geometry:
cylinders: 1024, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 30297216
Partitions aligned to 16065 sector boundaries, offset 63
Partition table:
0: <UNUSED>
1: Primary DOS with 32 bit FAT (sysid 11)
start 6291936, size 24004512 (11721 MB, Cyls 391/167/1-1885/220/63)
2: NetBSD (sysid 169)
bootmenu: netbsd
start 63, size 6291873 (3072 MB, Cyls 0-391/166/63), Active
3: <UNUSED>
Bootselector enabled, timeout 10 seconds.
First active partition: 2
Drive serial number: xxxxxxxxx (xxxxxxxxxx)
$ disklabel sd1
# /dev/rsd1d:
type: SCSI
disk: USB Flash Memory
label: fictitious
flags: removable
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 14793
total sectors: 30297216
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
6 partitions:
# size offset fstype [fsize bsize cpg/sgs]
c: 6291873 63 unused 0 0 # (Cyl. 0*- 3072*)
d: 30297216 0 unused 0 0 # (Cyl. 0 - 14793*)
e: 24004512 6291936 MSDOS # (Cyl. 3072*- 14793*)
f: 6291873 63 4.2BSD 0 0 0 # (Cyl. 0*- 3072*)
disklabel: boot block size 0
disklabel: super block size 0
-Olaf.
--
___ Olaf 'Rhialto' Seibert -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl -- 'this bath is too hot.'
pgpKvTLJOPHyf.pgp
Description: PGP signature
