Re: usb cf reader

From: Riccardo Torrini <riccardo_at_torrini.org>
Date: Tue, 22 Apr 2003 21:19:02 +0200
On Sat, Apr 19, 2003 at 04:41:50PM +0200, Riccardo Torrini wrote:

>> Do you get any kernel message with fdisk da0?

> I attacched _ALL_ my /var/log/messages, the same messages I got on
> console, no any other message, neither on shell nor on log file.
> Only those I already attached.
[...]
> Nothing happens in the middle.  After connecting device I tryed many
> times with fdisk with all /dev/da0* I can imagine ([a-z], s[1-4],
> and so on) and dd with the same device.  Nothing happens.  Now I try
> to rebuild all modules with extra debug.  Stay tuned...

Sorry for delay.  I got a new world.  Same results  :\

# uname -v
FreeBSD 5.0-CURRENT #59: Sat Apr 19 19:47:40 CEST 2003 ...

# camcontrol devlist -v 
scbus0 on ahc0 bus 0:
<  >                               at scbus0 target -1 lun -1 ()
scbus1 on umass-sim0 bus 0:
<OEI-Link Media Reader 3.06>       at scbus1 target 0 lun 0 (pass0,da0)
scbus-1 on xpt0 bus 0:
<  >                               at scbus-1 target -1 lun -1 (xpt0)

# camcontrol periphlist 1:0:0
pass0:  generation: 4 index: 1 status: MORE
da0:  generation: 4 index: 2 status: LAST

# ls -ln /dev/da0 /dev/da0s1 /dev/da0s2 /dev/da0s3 /dev/da0s4
ls: /dev/da0s1: No such file or directory
ls: /dev/da0s2: No such file or directory
ls: /dev/da0s3: No such file or directory
ls: /dev/da0s4: No such file or directory
crw-r-----  1 0  5    4,  20 Apr 20 10:01 /dev/da0

-----8<-----
Apr 22 21:00:41 trudy kernel: \
	umass0: DataFab Systems Inc. USB CF, rev 1.10/3.06, addr 2
	da0 at umass-sim0 bus 0 target 0 lun 0
	da0: <OEI-Link Media Reader 3.06> \
		Removable Direct Access SCSI-0 device 
	da0: 1.000MB/s transfers
	da0: 15MB (31488 512 byte sectors: 64H 32S/T 15C)
-----8<-----

# fdisk da0
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=15 heads=64 sectors/track=32 (2048 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=15 heads=64 sectors/track=32 (2048 blks/cyl)

fdisk: invalid fdisk partition table found
fdisk: /boot/mbr: length must be a multiple of sector size

C/H/S are the same from fdisk and from messages.  Anyway, dd should
work, I'm right?

# dd if=/dev/da0 | hd
0+0 records in
0+0 records out
0 bytes transferred in 0.010953 secs (0 bytes/sec)

No, there are no messages, neither on console nor on /var/log/*  :\

# fdisk /dev/da0
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=15 heads=64 sectors/track=32 (2048 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=15 heads=64 sectors/track=32 (2048 blks/cyl)

fdisk: invalid fdisk partition table found
fdisk: /boot/mbr: length must be a multiple of sector size

# fdisk /dev/da0s1
fdisk: cannot open disk /dev//dev/da0s1: No such file or directory

Uh?

# fdisk /foo/bar/da0s1
fdisk: cannot open disk /dev//foo/bar/da0s1: No such file or directory

I think it should use user provided device, not last tryed with /dev/
attached in front of (imvho :-)


-- 
Riccardo.
Received on Tue Apr 22 2003 - 10:19:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:04 UTC