Subject: Re: rawrite vs. compact flash vs. vnd
To: Derek God3 <derek0godfrey@netscape.net>
From: Greywolf <greywolf@starwolf.com>
List: current-users
Date: 12/30/2003 12:17:43
Thus spake Derek God3 ("DG> ") sometime Today...

DG> could you list your MBR and disklabel. and I assume you are
DG> using an intel host (raw part is 'd')? And no you're not unique
DG> I regularly produce CF's on intel/netbsd for windows updates and
DG> powerpc netbsd installations. And 14MB is twice as big and it
DG> can be. :-) ok 14Mb is very usually less isn't - unless your embedded.

Hate to say it, Mr. Godfrey, but I'm having a hard time understanding
what you've just said.  Let me see if I get it:

Yes, I am using an inhel host (raw part is 'd').  I'm aware of the
differences between intel+2others and the rest of the sane world (which
use 'c' since they don't have to deal with MBR issues).

]14MB is twice as big as it should be?
]14MB is not usually big unless you're doing embedded stuff...

Which, by the way, I am, at the moment.

Below are the disklabels from sd0; originally sd0 was imaged from a vnd,
but it did not seem to want to boot from it.

Conversely, the image I dd'd from the CF won't mount when I try to
use it as backing for a vnd, either!  It complains "Input/Output Error"
when I try to do:
	vnconfig vnd0 image161.fs
	mount /dev/vnd0a /mnt

Following the CF MBR and Disklabel are those for the VND.
[Again, I will note, that fdisk params do not transfer at all]

==== Compact Flash MBR and Disklabel ====
MBR (sd0 [umass0:0:2]):
Disk: /dev/rsd0d
NetBSD disklabel disk geometry:
cylinders: 30 heads: 64 sectors/track: 32 (2048 sectors/cylinder)

BIOS disk geometry:
cylinders: 30 heads: 64 sectors/track: 32 (2048 sectors/cylinder)

Partition table:
0: sysid 169 (NetBSD)
    start 32, size 62432 (30 MB), flag 0x80
        beg: cylinder    0, head   1, sector  1
        end: cylinder   29, head  63, sector 32
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>

Disklabel (sd0 [umass0:0:2]):
# /dev/rsd0d:
type: vnd
disk: vnd
label: default label
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 30
total sectors: 62720
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

8 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
 a:     62688        32     4.2BSD   1024  8192    46   # (Cyl.    0*- 30*)
 c:     62688        32     unused      0     0         # (Cyl.    0*- 30*)
 d:     62720         0     unused      0     0         # (Cyl.    0 - 30*)
 e:     62688        32      MSDOS                      # (Cyl.    0*- 30*)
==== end CF Geometry ====
**** vnd0 MBR and disklabel ****
[MBR]
Disk: /dev/rvnd0d
NetBSD disklabel disk geometry:
cylinders: 30 heads: 64 sectors/track: 32 (2048 sectors/cylinder)

BIOS disk geometry:
cylinders: 30 heads: 64 sectors/track: 32 (2048 sectors/cylinder)

Partition table:
0: sysid 169 (NetBSD)
    start 32, size 62688 (30 MB), flag 0x80
        beg: cylinder    0, head   1, sector  1
        end: cylinder  489, head   3, sector 32
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>

[Disklabel]
# /dev/rvnd0d:
type: vnd
disk: vnd
label: default label
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 30
total sectors: 62720
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

8 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
 a:     62688        32     4.2BSD   1024  8192    46   # (Cyl.    0*- 30*)
 c:     62688        32     unused      0     0         # (Cyl.    0*- 30*)
 d:     62720         0     unused      0     0         # (Cyl.    0 - 30*)
 e:     62688        32      MSDOS                      # (Cyl.    0*- 30*)
**** end VND geometry ****

				--*greywolf;
--
NetBSD: Resistance is NOT futile!