Subject: Re: Reading DOS formatted ZIP drive
To: Bill Studenmund <wrstuden@loki.stanford.edu>
From: Franz Urbanski <fou@ON-Luebeck.DE>
List: port-mac68k
Date: 08/03/1998 23:22:53
On Sun, Aug 03, 1997 at 01:20:16PM -0700, Bill Studenmund wrote:
> > Get 2 PM entries of a NetBSD formatted disk
>
> If the disk only had one partition on it, that should work.
It was IBM compatible preformatted, and I did't change that.
A MacOS formatted disk has 4 PM entries: Partition Map, Iomega Info,
MacOS Disk Driver and the HFS/NetBSD partition.
>
> > Copy them to sector #1 and #2 of the MSDOS disk
>
> You need to keep the upper few bytes of sector #1 of the MS DOS disk
> as that's where the MBR partitions live...
IIRC Sectors #1 and #2 were filled with 0xEA.
>
> > Modify the block numbers of the PM
> > Copy the beginning of sector #0 of the NetBSD disk ("ER" 0x02000003 )
> > to sector #0 of the DOS disk.
> >
> > Result: disklabel and mount_msdos did no longer complain about "missing
> > disklabel", but the mount told me, "wrong parameter".
>
> What did disklabel say about the drive?
Here it is:
------------------------------------------------------------------------
# disklabel sd1
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 96
total sectors: 196608
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
1 partitions:
# size offset fstype [fsize bsize cpg]
a: 196605 3 4.2BSD 0 0 0 # (Cyl. 0*- 95*)
disklabel: boot block size 0
disklabel: super block size 0
disklabel: warning, unused partition c: size 196608 offset 0
# mount -t msdos /dev/sd1a /user
mount_msdos: mount: Invalid argument
------------------------------------------------------------------------
What does this mean "Invalid argument"? Does it mean, that "/dev/sd1a"
is not the correct device?
A ZIP drive that I prepared for NetBSD (and which I can mount)
looks like this:
------------------------------------------------------------------------
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 96
total sectors: 196608
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
2 partitions:
# size offset fstype [fsize bsize cpg]
a: 196187 421 4.2BSD 0 0 0 # (Cyl. 0*- 95*)
b: 10 11 unknown # (Cyl. 0*- 0*)
disklabel: boot block size 0
disklabel: super block size 0
disklabel: warning, unused partition c: size 196608 offset 0
------------------------------------------------------------------------
cu
Franz