Subject: Re: making a runtime-attached USB umass device mount as sd0
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: George Michaelson <ggm@apnic.net>
List: netbsd-help
Date: 09/10/2002 13:03:07
This is a multipart MIME message.

--==_Exmh_-14382477940
Content-Type: text/plain; charset=us-ascii


> What is the output of fdisk, and disklabel for this device ?
> I suspect the partition you have to use is between sd0e and sd0h
>

This was exactly right. I borrowed a PCMCIA multi card reader, re-did the
test and this time I ->READ<- the disklabel. And indeed, it told me the
partition required was wd1e.

Many apologies. Out of interest, where did disklabel get e from? I have
appended the dmesg, fdisk and disklabel returns in case there is useful
debug of another user blunder here :-)

cheers

-George



--==_Exmh_-14382477940
Content-Type: text/plain ; name="insert.0"; charset=us-ascii
Content-Description: insert.0
Content-Disposition: attachment; filename="insert.0"

wdc2 at pcmcia0 function 0
wd1 at wdc2 channel 0 drive 0: <Memory Card Adapter>
wd1: drive supports 1-sector PIO transfers, LBA addressing
wd1: 62080 KB, 485 cyl, 8 head, 32 sec, 512 bytes/sect x 124160 sectors

--==_Exmh_-14382477940
Content-Type: text/plain ; name="fdisk.0"; charset=us-ascii
Content-Description: fdisk.0
Content-Disposition: attachment; filename="fdisk.0"

$ sudo fdisk wd1
Disk: /dev/rwd1d
NetBSD disklabel disk geometry:
cylinders: 485 heads: 8 sectors/track: 32 (256 sectors/cylinder)

BIOS disk geometry:
cylinders: 485 heads: 8 sectors/track: 32 (256 sectors/cylinder)

Partition table:
0: sysid 6 (Primary 'big' DOS, 16-bit FAT (> 32MB))
    start 39, size 124121 (60 MB), flag 0x0
        beg: cylinder    0, head   1, sector  8
        end: cylinder  484, head   7, sector 32
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>

--==_Exmh_-14382477940
Content-Type: text/plain ; name="disklabel.0"; charset=us-ascii
Content-Description: disklabel.0
Content-Disposition: attachment; filename="disklabel.0"

# disklabel wd1
# /dev/rwd1d:
type: ESDI
disk: Memory Card Adap
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 8
sectors/cylinder: 256
cylinders: 485
total sectors: 124160
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]
 d:    124160         0     unused      0     0         # (Cyl.    0 - 484)
 e:    124121        39      MSDOS                      # (Cyl.    0*- 484)
disklabel: boot block size 0
disklabel: super block size 0
# 

--==_Exmh_-14382477940--