Subject: Re: digital cameras again
To: Simon J. Gerraty <sjg@quick.com.au>
From: enami tsugutomo <enami@sm.sony.co.jp>
List: current-users
Date: 08/24/1999 19:00:41
"Simon J. Gerraty" <sjg@quick.com.au> writes:

> # mount -r -t msdos /dev/wd1a /mnt 
> mount_msdos: mount: Device not configured
> root:81# Aug 24 19:25:18 not /netbsd: pcmcia1: card irq 7

If you are using NetBSD/i386, try to use /dev/wd1e (but after checking
how disklabel commmand says by yourself).

In my case, the card is recognized like this (this card is actually
not a compact flash, but it's same):

wd1 at wdc0 channel 0 drive 0: <MEMORYSTICK 8M 8K>
wd1: drive supports 1-sector pio transfers, lba addressing
wd1: 7MB, 495 cyl, 2 head, 16 sec, 512 bytes/sect x 15840 sectors

and disklabel wd1 gives following output:

# /dev/rwd1d:
type: unknown
disk: MEMORYSTICK   8M
label: fictitious
flags:
bytes/sector: 512
sectors/track: 16
tracks/cylinder: 2
sectors/cylinder: 32
cylinders: 495
total sectors: 15840
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# milliseconds
track-to-track seek: 0	# milliseconds
drivedata: 0 

8 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  d:    15840        0     unused        0     0         # (Cyl.    0 - 494)
  e:    15799       25      MSDOS                        # (Cyl.    0*- 494*)
disklabel: boot block size 0
disklabel: super block size 0

Note that e partition is faked.  Then, I can successfully mount by
mount -r -t msdos /dev/wd1e /mnt.

If not NetBSD/i386, mbrlabel may help but I myself doesn't have
experience of it.

enami.