Mount USB Mass Storage Device on EP9301

People,

Anyone know how mount a usb mass storage device on Linux in EP9301.

I have tried this such this but doesn’t work:

mount -t vfat /dev/sdb1 /mnt/pendrive

I have tried sdb, sdb1, sdb2, sdb3 and sda, sda1,sda2,sda3 and pendrive DIR exist, because I created it.

Any suggestion?

leomecma

Do your Linux kernel come with all required modules?

I think you need (among others) SCSI support and usb-storage modules.

In order for these modules to get loaded automatically, you also need some kind of hotplug system running.

Does anything get added to the system or kernel log? (do you see a message in /var/log/messages or when doing ‘dmesg’?)

During starting all drivers are loaded, it has support to usb mass storage device and scsi … and if I put the pendrive on USb port the system see the device, and say the type and some informations about it. But I need just see the files inside of device, but I don’t know how, because when I try mount it, I received the answer : NO SUCH DEVICE

leomecma

I think somewhere in the system or kernel log you should see under what name exactly the device is created. What kind of /dev filesystem do you use? udev? or just a static /dev?

In the latter case, you may need to create the device nodes for sda, sdb, (etc.) yourself.

Hi,

I’m having the same problem, I have tried to mount the memory with command like this:

mount -t vfat /dev/sdXX /mnt/usb

o

mount -t usbfs /dev/sdXX /mnt/usb

and I have tried with every possible sda and sdb.

And the system is recognizing the memory, because it shows the next message when I plug in the memory:

usb 1-3: new full speed USB device using address 2

scsi0 : SCSI emulation for USB Mass Storage devices

Using anticipatory io scheduler

Vendor: Model: Rev:

Type: Direct-Access ANSI SCSI revision: 02

SCSI device sda: 2000609 512-byte hdwr sectors (1024 MB)

sda: assuming Write Enabled

sda: assuming drive cache: write through

sda: unknown partition table

Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0

Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0

Can anybody help us?

Thanks.

Regrets,

Ing. Dairo Ortiz.

Bogotá, Colombia.

So, the kernel recognises the device and names it sda, good.

Do you have a /dev/sda file in your file system?

What kind of /dev system do you use, static or dynamic (like udev)?

Generally, a good idea is to first get it to work as root, then make it work for a low-privileged user.

Hi,

yeah, I can see the sda in /dev/sda, and there I can find the next files:

  • /devices

  • /001/004

but when I try to open that files there are just some symbols.

I’m working as the root.

I really don’t know how I can know what kind of system I have.

I would appreciate your help.

Regrets,

Ing. Dairo Ortiz

Bogotá, Colombia.

It’s weird that /dev/sda has a directory structure under it. It almost looks like usbfs has somehow been mounted under /dev/sda. Can you post the output of ‘mount’?

As far as I know, /dev/sda should be a ‘device node’ instead.

Can you try the following (as root):

mknod /dev/test b 8 0

mount /dev/test /mnt/pendrive

?

You can find out if you are running udev by doing ‘ps ax |grep udev’ and see if there’s an udev (or udevd) process running.

Hi,

the output of mount is:

~ # mount

/dev/root on / type ext2 (rw)

proc on /proc type proc (rw,nodiratime)

usbdevfs on /proc/bus/usb type usbdevfs (rw)

devpts on /dev/pts type devpts (rw)

Now, the other test you told me give me the next output:

~ # mount /dev/test /mnt/pendrive

mount: Mounting /dev/test on /mnt/pendrive failed: Invalid argument

Thanks,

Ing. Dairo Ortiz