Unable to mount a usb "stick" in ubuntu 8.04

Karl Larsen k5di at zianet.com
Thu Jun 19 14:03:36 UTC 2008


David Fox wrote:
> Guys etc.
>
> I have a usb multicard reader known to work with Debian and other
> Linux machines as well as a 1gb camera card that I've been able to use
> before to upload camera pictures (rather than use the camera usb
> cable). When I plug the card into the reader, no notification comes up
> that it detects a new device (and it used to be able to do this) but
> apparently that functionality no longer works. Along the way, I see
> that various deamons running the system have stopped or are no longer
> working, so I restarted cupsd, syslogd, hal, and a few others.
>
> I've tried various names for the usb "drive", such as sdf,sdg,sdd,
> etc., none seem to work, all say there is no such device, or mount
> says that the fs is not valid (should be fat32 or msdos, or some
> variation on that.
>
> If I 'strings /dev/sdg' I can get to the filesystem which looks like
> there are JPG files on it - which is what is expected, but any attempt
> to mount the disk fails.
>
> Snippet from log:
>
> [249691.632978] audit(1213326337.405:3): type=1503
> operation="inode_permission" requested_mask="::rw" denied_mask="::rw"
> name="/dev/tty" pid=2650 profile="/usr/sbin/cupsd" namespace="default"
> [572007.498096] sd 7:0:0:0: [sdd] Attached SCSI removable disk
> [572007.498136] sd 7:0:0:0: Attached scsi generic sg4 type 0
> [572007.499224] sd 7:0:0:1: [sde] Attached SCSI removable disk
> [572007.499263] sd 7:0:0:1: Attached scsi generic sg5 type 0
> [572007.500350] sd 7:0:0:2: [sdf] Attached SCSI removable disk
> [572007.500386] sd 7:0:0:2: Attached scsi generic sg6 type 0
> [572007.501396] sd 7:0:0:3: [sdg] 1984000 512-byte hardware sectors (1016 MB)
> [572007.502030] sd 7:0:0:3: [sdg] Write Protect is off
> [572007.502037] sd 7:0:0:3: [sdg] Mode Sense: 0b 00 00 08
> [572007.502039] sd 7:0:0:3: [sdg] Assuming drive cache: write through
> [572007.504523] sd 7:0:0:3: [sdg] 1984000 512-byte hardware sectors (1016 MB)
> [572007.505135] sd 7:0:0:3: [sdg] Write Protect is off
> [572007.505137] sd 7:0:0:3: [sdg] Mode Sense: 0b 00 00 08
> [572007.505139] sd 7:0:0:3: [sdg] Assuming drive cache: write through
> [572007.505146]  sdg:<6>usb 2-1: reset high speed USB device using
> ehci_hcd and address 4
> [572186.482520] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.482528] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.482533] end_request: I/O error, dev sdg, sector 0
> [572186.482537] Buffer I/O error on device sdg, logical block 0
> [572186.483518] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.483525] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.483531] end_request: I/O error, dev sdg, sector 0
> [572186.483535] Buffer I/O error on device sdg, logical block 0
> [572186.484521] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.484528] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.484533] end_request: I/O error, dev sdg, sector 0
> [572186.484537] Buffer I/O error on device sdg, logical block 0
> [572186.485514] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.485519] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.485525] end_request: I/O error, dev sdg, sector 0
> [572186.485527] Buffer I/O error on device sdg, logical block 0
> [572186.486505] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.486509] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.486514] end_request: I/O error, dev sdg, sector 0
> [572186.486516] Buffer I/O error on device sdg, logical block 0
> [572186.487499] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.487501] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.487504] end_request: I/O error, dev sdg, sector 0
> [572186.487506] Buffer I/O error on device sdg, logical block 0
> [572186.488501] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.488505] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.488509] end_request: I/O error, dev sdg, sector 0
> [572186.488510] Buffer I/O error on device sdg, logical block 0
> [572186.489500] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.489504] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.489508] end_request: I/O error, dev sdg, sector 0
> [572186.489510] Buffer I/O error on device sdg, logical block 0
> [572186.490498] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.490502] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.490506] end_request: I/O error, dev sdg, sector 0
> [572186.490508] Buffer I/O error on device sdg, logical block 0
> [572186.490517] Dev sdg: unable to read RDB block 0
> [572186.491496] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.491501] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.491505] end_request: I/O error, dev sdg, sector 0
> [572186.491507] Buffer I/O error on device sdg, logical block 0
> [572186.492495] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.492498] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.492502] end_request: I/O error, dev sdg, sector 0
> [572186.493506] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.493510] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.493514] end_request: I/O error, dev sdg, sector 24
> [572186.494491] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.494494] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.494497] end_request: I/O error, dev sdg, sector 24
> [572186.495491] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.495494] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.495498] end_request: I/O error, dev sdg, sector 0
> [572186.496491] sd 7:0:0:3: [sdg] Device not ready: Sense Key : Not
> Ready [current]
> [572186.496494] sd 7:0:0:3: [sdg] Device not ready: Add. Sense: Medium
> not present
> [572186.496498] end_request: I/O error, dev sdg, sector 0
> [572186.496574] sd 7:0:0:3: [sdg] Attached SCSI removable disk
> [572186.496615] sd 7:0:0:3: Attached scsi generic sg7 type 0
> [572327.111058] sd 7:0:0:3: [sdg] 1984000 512-byte hardware sectors (1016 MB)
> [572327.111761] sd 7:0:0:3: [sdg] Write Protect is off
> [572327.111768] sd 7:0:0:3: [sdg] Mode Sense: 0b 00 00 08
> [572327.111770] sd 7:0:0:3: [sdg] Assuming drive cache: write through
> [572327.112748] sd 7:0:0:3: [sdg] 1984000 512-byte hardware sectors (1016 MB)
> [572327.113357] sd 7:0:0:3: [sdg] Write Protect is off
> [572327.113359] sd 7:0:0:3: [sdg] Mode Sense: 0b 00 00 08
> [572327.113361] sd 7:0:0:3: [sdg] Assuming drive cache: write through
> [572327.113368]  sdg: sdg1
> [572343.264994] sd 7:0:0:3: [sdg] 1984000 512-byte hardware sectors (1016 MB)
> [572343.266453] sd 7:0:0:3: [sdg] Write Protect is off
> [572343.266458] sd 7:0:0:3: [sdg] Mode Sense: 0b 00 00 08
> [572343.266460] sd 7:0:0:3: [sdg] Assuming drive cache: write through
> [572343.271804] sd 7:0:0:3: [sdg] 1984000 512-byte hardware sectors (1016 MB)
> [572343.274795] sd 7:0:0:3: [sdg] Write Protect is off
> [572343.274797] sd 7:0:0:3: [sdg] Mode Sense: 0b 00 00 08
> [572343.274799] sd 7:0:0:3: [sdg] Assuming drive cache: write through
> [572343.274803]  sdg: sdg1
> [572401.143527] audit(1213849987.649:4): type=1503
> operation="inode_permission" requested_mask="a::" denied_mask="a::"
> name="/dev/tty" pid=16263 profile="/usr/sbin/cupsd"
> namespace="default"
> [572498.688934] VFS: Can't find a valid FAT filesystem on dev sdg.
> [572541.279774] VFS: Can't find a valid FAT filesystem on dev sdg.
> [572664.979563] sd 7:0:0:3: [sdg] 1984000 512-byte hardware sectors (1016 MB)
> [572664.979805] sd 7:0:0:3: [sdg] Write Protect is off
> [572664.979807] sd 7:0:0:3: [sdg] Mode Sense: 0b 00 00 08
> [572664.979809] sd 7:0:0:3: [sdg] Assuming drive cache: write through
> [572664.980221] sd 7:0:0:3: [sdg] 1984000 512-byte hardware sectors (1016 MB)
> [572664.980452] sd 7:0:0:3: [sdg] Write Protect is off
> [572664.980454] sd 7:0:0:3: [sdg] Mode Sense: 0b 00 00 08
> [572664.980455] sd 7:0:0:3: [sdg] Assuming drive cache: write through
> [572664.980458]  sdg: sdg1
>
> So shouldn't sdg1 be the right device? But:
>
>
> dfox at newbox:/var/log$ sudo mount /dev/sdg1 /media/cdrom0
> mount: special device /dev/sdg1 does not exist
>
> udev or whatever doesn't seem to want to create the special device node.
>
> These are hard drives, I can see that:
>
> dfox at newbox:/var/log$ ls -l /dev/sd[a-f][0-9]
> brw-rw---- 1 root disk 8,  1 2008-06-08 13:57 /dev/sda1
> brw-rw---- 1 root disk 8,  2 2008-06-08 13:57 /dev/sda2
> brw-rw---- 1 root disk 8, 17 2008-06-08 13:57 /dev/sdb1
> brw-rw---- 1 root disk 8, 18 2008-06-08 13:57 /dev/sdb2
> brw-rw---- 1 root disk 8, 19 2008-06-08 13:57 /dev/sdb3
> brw-rw---- 1 root disk 8, 20 2008-06-08 13:57 /dev/sdb4
> brw-rw---- 1 root disk 8, 21 2008-06-08 13:57 /dev/sdb5
> brw-rw---- 1 root disk 8, 22 2008-06-08 13:57 /dev/sdb6
> brw-rw---- 1 root disk 8, 23 2008-06-08 13:57 /dev/sdb7
> brw-rw---- 1 root disk 8, 33 2008-06-08 13:57 /dev/sdc1
> brw-rw---- 1 root disk 8, 34 2008-06-08 13:57 /dev/sdc2
> brw-rw---- 1 root disk 8, 35 2008-06-08 13:57 /dev/sdc3
> brw-rw---- 1 root disk 8, 36 2008-06-08 13:57 /dev/sdc4
> brw-rw---- 1 root disk 8, 37 2008-06-08 13:57 /dev/sdc5
> brw-rw---- 1 root disk 8, 38 2008-06-08 13:57 /dev/sdc6
> brw-rw---- 1 root disk 8, 39 2008-06-08 13:57 /dev/sdc7
>
>
> I don't see any lines come up when I tail the syslog file (or
> messages) if I unplug and plug back in the usb stick. So obviously
> that part of the system is broken.
>
> Any other ideas?
>
>   
Try another known good USB device and see if it mounts. The data you 
sent makes me think your USB device is bad.

Karl


-- 

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.
   PGP 4208 4D6E 595F 22B9 FF1C  ECB6 4A3C 2C54 FE23 53A7





More information about the ubuntu-users mailing list