Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
memory stick
#1

Hello, I am running Ubuntu Hoary 5.04 with a custom kernel 2.6.11-12 and I am having a problem getting the memory stick to mount.

 

When I compiled the kernel I selected SCSI disk support as a module, MMC/SD support compiled in, MMC block device driver compiled in as a module, USB Mass Storage Support compiled in,

 

Here is the output from /var/log/messages when i put the stick in the drive:

 

Jul 1 11:25:42 localhost kernel: usb 3-1: new full speed USB device using uhci_hcd and address 9

Jul 1 11:25:42 localhost kernel: scsi7 : SCSI emulation for USB Mass Storage devices

Jul 1 11:25:47 localhost kernel: Vendor: Generic Model: CF Reader Rev: 1.01

Jul 1 11:25:47 localhost kernel: Type: Direct-Access ANSI SCSI revision: 00

Jul 1 11:25:47 localhost kernel: Attached scsi removable disk sda at scsi7, channel 0, id 0, lun 0

Jul 1 11:25:47 localhost scsi.agent[7508]: sd_mod: loaded sucessfully

 

/etc/udev/udev.conf says :

# udev_root - where in the filesystem to place the device nodes

udev_root="/dev/"

 

the only new devices in /dev when I put the stick in are :

 

brw-r----- 1 root plugdev 8, 0 Jul 1 11:42 sda

 

if i attemped to mount that:

root@jerlaptop:/usr/src/linux # mount -t vfat /dev/sda /mnt/mstick/

mount: No medium found

 

here is udevinfo :

root@jerlaptop:/usr/src/linux # udevinfo -a -p /sys/block/sda

looking at the device chain at '/sys/devices/pci0000:00/0000:00:1d.2/usb3/3-1/3-1:1.0/host8/target8:0:0/8:0:0:0':

BUS="scsi"

ID="8:0:0:0"

SYSFS{detach_state}="0"

SYSFS{device_blocked}="0"

SYSFS{max_sectors}="240"

SYSFS{model}="CF Reader "

SYSFS{queue_depth}="1"

SYSFS{queue_type}="none"

SYSFS{rev}="1.01"

SYSFS{scsi_level}="3"

SYSFS{state}="running"

SYSFS{timeout}="30"

SYSFS{type}="0"

SYSFS{vendor}="Generic "

 

 

Everything seems to check out fine! But /dev/sda1 isn't being created and I get the no medium found. Even if I do

 

#mknod /dev/sda1 b 8 1

 

I get a no medium found error. If anyone can help, please do! Thanks!

Reply
#2

Quote:Hello, I am running Ubuntu Hoary 5.04 with a custom kernel 2.6.11-12 and I am having a problem getting the memory stick to mount.
 

... Breezy Badger!! :P

 

Quote:When I compiled the kernel I selected SCSI disk support as a module, MMC/SD support compiled in, MMC block device driver compiled in as a module, USB Mass Storage Support compiled in,
 

Ok all the kernel modules needed for USB support...

UHCI support OR UHCI Alternate Driver (JE) support OR OHCI-HCD support

 

Select which devices you want:

USB Human Interface Device (HID) support (keyboards, mouse, joystick)

USB Scanner support (scanners :))

USB Audio support (speakers)

USB Modem support (ISDN modem)

USB Printer support (printer!)

USB Serial Converter support (serial port type devices)

USB CPiA Camera support (CPiA chipset cameras)

USB Mass Storage support (mass storage devices) [the one you want]

USS720 parport driver (parallel port adapter)

 

If you are installing modules make sure these are loaded:

usbcore.o

usb-uhci.o OR uhci.o OR usb-ohci.o

 

Quote:Here is the output from /var/log/messages when i put the stick in the drive: 

Jul 1 11:25:42 localhost kernel: usb 3-1: new full speed USB device using uhci_hcd and address 9

Jul 1 11:25:42 localhost kernel: scsi7 : SCSI emulation for USB Mass Storage devices

Jul 1 11:25:47 localhost kernel: Vendor: Generic Model: CF Reader Rev: 1.01

Jul 1 11:25:47 localhost kernel: Type: Direct-Access ANSI SCSI revision: 00

Jul 1 11:25:47 localhost kernel: Attached scsi removable disk sda at scsi7, channel 0, id 0, lun 0

Jul 1 11:25:47 localhost scsi.agent[7508]: sd_mod: loaded sucessfully
 

Says that you did all the USB kernel stuff good .. ;)

 

Quote:/etc/udev/udev.conf says :# udev_root - where in the filesystem to place the device nodes

udev_root="/dev/"

 

the only new devices in /dev when I put the stick in are :

 

brw-r----- 1 root plugdev 8, 0 Jul 1 11:42 sda
 

More proof that the kernel side/udev side is good...

 

Quote:if i attemped to mount that:root@jerlaptop:/usr/src/linux # mount -t vfat /dev/sda /mnt/mstick/

mount: No medium found
 

:/ bah .. that sucks try:

 



Code:
mount -t auto /dev/sda /mnt/mstick




 

See if the type isn't getting picked up, but I don't really think its that.

 

Quote:Everything seems to check out fine! But /dev/sda1 isn't being created and I get the no medium found. Even if I do 

#mknod /dev/sda1 b 8 1

 

I get a no medium found error. If anyone can help, please do! Thanks!
 

You don't have to have a 'sda1', my usb stick mounts as sda.

 

In short this is a really weird error. I have had experience of certain usb devices not detecting in the kernel (which were then fixed by kernel upgrades). I have also had camera that wouldn't mount no matter what I did, however I managed to find (again) that kernel upgrades fixed these problems.

 

It is possible that you have managed to find a usb device unsupported by the kernel. Try compiling the kernel with every usb module possible and see if you can find one that picks it up.

 

Maybe try out some stock kernels and see how those turn out. Keep us posted, this error is something I'd like to know the solution to.

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)