LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   mounting usb device (muvo2) (https://www.linuxquestions.org/questions/slackware-14/mounting-usb-device-muvo2-267824/)

YBA^[x] 12-18-2004 04:36 PM

mounting usb device (muvo2)
 
Hey.

I need a little help with mounting a usb device (a creative muvo2). My fstab looks like this:

Code:

/dev/hda3    /                      reiserfs    defaults                    1  1
/dev/hda4    /home              reiserfs    defaults                    1  2
/dev/hda5    /wind                vfat          defaults,umask=0    1  0
/dev/fd0      /mnt/floppy      auto          noauto,user              0  0
/dev/hdc      /mnt/dvd          iso9660    noauto,user,ro          0  0
/dev/sr0      /mnt/cdrw        iso9660    noauto,user,ro          0  0
/dev/sr1      /mnt/muvo        auto          defaults,user,noauto  0  0
devpts          /dev/pts          devpts      gid=5,mode=620    0  0
proc              /proc                proc          defaults                    0  0

The outpu from mount is:

Code:

/dev/hda3  on    /                        type reiserfs (rw)
proc          on    /proc                type proc (rw)
/dev/hda4  on    /home                type reiserfs (rw)
/dev/hda5  on    /wind                  type vfat (rw,umask=000)
devpts      on    /dev/pts            type devpts (rw,gid=5,mode=620)
usbfs        on    /proc/bus/usb    type usbfs (rw)

When doing mount /mnt/muvo I get an "mount: /dev/sr1: unknown device" error. Apprently the device is not located at where I thought. How do I figure out where it is?

Thanks.

Regards.

nirvanix 12-18-2004 04:49 PM

try /dev/sda1 in your fstab and in the mount command.

YBA^[x] 12-18-2004 04:58 PM

Then I get this:

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems

soylentgreen 12-18-2004 06:36 PM

how many usb devices do you have?

you may have to specify filesystem type as:
mount -t vfat /dev/sda0 /{mount point}
where sda0=first usb device

YBA^[x] 12-18-2004 06:49 PM

I have only one usb device. Sda0 doesn't exist. Otherwise same result.

Ipolit 12-20-2004 07:35 AM

you can change the numbers
it's possible to find the right one if you connect your device and power it on.
after type dmesg and you could receive something like:

hub.c: new USB device 00:14.2-2, assigned address 2
usb.c: USB device 2 (vend/prod 0x3579/0x6901) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: DM 334 Model: USB Reader Rev: 3.36
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 29440 512-byte hdwr sectors (15 MB)
sda: Write Protect is off
sda: sda1

also try with auto for the file system


mount this way
mkdir /mnt/usbdevice
mount -t auto /dev/sda1 /mnt/usbdevice
do it as root firstly
if you achieve a success, put in fstab
/dev/sda1 /mnt/usbdevice auto defaults,noauto,user 0 0
and later you'll be able to mount just typing mount /mnt/usbdevice or if you're using gnome with right mouse click on the desktop, disks, usbdevice
there is a possibility that there is no filesystem - you should create it

YBA^[x] 12-20-2004 11:31 AM

Hey.

From dmesg when pugging the muvo in (not sure how much of it is relevant, so pasted all that appeared to concern usb):

usb-ohci.c: USB OHCI at membase 0xe0f57000, IRQ 11
usb-ohci.c: usb-00:02.3, Silicon Integrated Systems [SiS] USB 1.0 Controller (#2)
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 3 ports detected
PCI: Found IRQ 11 for device 00:02.2
usb-ohci.c: USB OHCI at membase 0xe0f59000, IRQ 11
usb-ohci.c: usb-00:02.2, Silicon Integrated Systems [SiS] USB 1.0 Controller
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
uhci.c: USB Universal Host Controller Interface driver v1.1
usb-uhci.c: $Revision: 1.275 $ time 17:55:05 Jun 13 2004
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
eth0: Media Link On 100mbps full-duplex
spurious 8259A interrupt: IRQ7.
hub.c: new USB device 00:02.3-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x41e/0x4116) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: CREATIVE Model: MuVo^2 (uHDD) Rev: 0001
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 7958527 512-byte hdwr sectors (4075 MB)
sda: Write Protect is off
sda: sda1 sda2 sda4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.

When mounting it as you suggested (as root, well I su'ed, does it make any difference?) I get this error.

/dev/sda1: Input/output error
mount: you must specify the filesystem type

Quote:

there is a possibility that there is no filesystem - you should create it
There ought to be as I already have transfered files to it from windows. Btw., I'm using the default kernel from the Slackware 10 install, could this be part of the issue?

SlackerLX 12-20-2004 12:33 PM

I have my USB stick mounted this way

Code:

mount -t vfat /dev/sda1 /mnt/"your directory"

YBA^[x] 12-20-2004 01:07 PM

Hey.

Mounting it as this:
Code:

mount -t vfat /dev/sdax /mnt/muvo
where x={1,2,4} gives me this:
Code:

mount: wrong fs type, bad option, bad superblock on /dev/sdax,
      or too many mounted file systems

where x=3 I get this (same if filsystem is set to auto instead of vfat):
Code:

mount: /dev/sda3 is not a valid block device
If filssystem is set to auto and x={1,2,4} I get:
Code:

/dev/sdax: Input/output error
mount: you must specify the filesystem type

I have 4 usb ports and only one is in use (by the muvo2) which leads me to think that it might be located at sda3. Or am I assumeing wrongly? What's with this warning I get in the dmesg when plugging it in?:
Code:

WARNING: USB Mass Storage data integrity not assured
I'd really appreciate it if someone could figure this out, I'm almost getting desperate here and I'm obviously in over my head....

Thanks.

Ipolit 12-20-2004 06:25 PM

what kind of windows?
Im not relevant with ntfs, but it is possible if you're using XP or 2000 the filesystem to be ntfs
let us try
mount -t ntfs /dev/sda1 /mnt/muvo

YBA^[x] 12-20-2004 09:26 PM

I'm useing win2k as well. I suppose it has to be some kind af fat as it's supposed to work under win98 (posts here and there suggests it is fat16). Anyway, results were the same. I've done a little googling and others have reported it to work under linux with the vfat option. Somewhere I read that in order for this to work then:

# Linux users will need the libusb package, which provides user-level USB. Note that libusb also requiress that users mount the usbdevfs filesystem.

and:

must have usb storage enabled as a module or in the kernel

I do have libusb. I do not know if usbdevfs is mounted, what to I need to do in order to find out? I do not know if I have usb storage enabled as a module or in the kernel, either (could it be the usbcore module listed below?). Again, what do I need to do? Here is the output from lsmod:
Code:

Module                  Size  Used by    Tainted: P 
usb-storage            66176  0
snd-pcm-oss            37736  1
snd-mixer-oss          12504  0 [snd-pcm-oss]
usb-ohci              19240  0 (unused)
usbcore                59308  1 [usb-storage usb-ohci]
sis900                12396  1
crc32                  2880  0 [sis900]
snd-emu10k1            62920  1
snd-pcm                56072  0 [snd-pcm-oss snd-emu10k1]
snd-timer              13604  0 [snd-pcm]
snd-hwdep              4804  0 [snd-emu10k1]
snd-page-alloc          6328  0 [snd-emu10k1 snd-pcm]
snd-util-mem            1136  0 [snd-emu10k1]
snd-ac97-codec        49500  0 [snd-emu10k1]
snd-rawmidi            12740  0 [snd-emu10k1]
snd-seq-device          3888  0 [snd-emu10k1 snd-rawmidi]
snd                    30852  0 [snd-pcm-oss snd-mixer-oss snd-emu10k1 snd-pcm snd-timer snd-hwdep snd-util-mem snd-ac97-codec snd-rawmidi snd-seq-device]
soundcore              3396  6 [snd]
emu10k1-gp              1352  0 (unused)
gameport                1420  0 [emu10k1-gp]
nvidia              3205624  6
ide-scsi                9328  0
agpgart                43940  3

Thanks.

cathectic 12-21-2004 05:58 AM

1) The sdXY stuff is unrelated to the usb port, they are simply nodes created when the device is plugged in.

2) Slackware has all the necessary tools you need to mount it, and 'USB Storage' is enabled as a module in the default 2.4.26 kernel with Slackware 10.0 (and also appears to be loaded from what you're showing). If you're not certain it's loaded, then 'su' and run 'modprobe usb_storage' before trying to mount the device.

Then mount it as:

mount -t vfat /dev/sda /mnt/muvo -o noauto, users, rw, sync

(The sync option is there because if you manipulate files on the Muvo without it set, it doesn't update the Muvo until you've unmounted it, and discovering it's done nothing will drive you up the wall...

I also actually have udev create a symlink from /dev/sda to /dev/muvo, but we can go onto that later. For the moment, try the above command, with *no* 0,1,2 etc following the sda.

Alternately, I notice you have a CD-RW there trying to use the SCSI interface? If that's being seen as the first SCSI device, perhaps the muvo is being seen as /dev/sdbY. Go to /dev, type 'ls -dl sd*' and post the output if you still have problems.)

3) As far as I can see with my Muvo2, the filesystem is Fat32.

YBA^[x] 12-21-2004 06:16 AM

When doing "modprobe usb_storage" I get:

modprobe: Can't locate module usb_storage

EDIT:

Btw., here is the output from ls -dl sd*

Code:

brw-r-----  1 root disk 8,  0 1995-04-29 12:33 sda
brw-r-----  1 root disk 8,  1 1995-04-29 12:33 sda1
brw-r-----  1 root disk 8,  10 1995-04-29 12:33 sda10
brw-r-----  1 root disk 8,  11 1995-04-29 12:33 sda11
brw-r-----  1 root disk 8,  12 1995-04-29 12:33 sda12
brw-r-----  1 root disk 8,  13 1995-04-29 12:33 sda13
brw-r-----  1 root disk 8,  14 1995-04-29 12:33 sda14
brw-r-----  1 root disk 8,  15 1995-04-29 12:34 sda15
brw-r-----  1 root disk 8,  2 1995-04-29 12:33 sda2
brw-r-----  1 root disk 8,  3 1995-04-29 12:33 sda3
brw-r-----  1 root disk 8,  4 1995-04-29 12:33 sda4
brw-r-----  1 root disk 8,  5 1995-04-29 12:33 sda5
brw-r-----  1 root disk 8,  6 1995-04-29 12:33 sda6
brw-r-----  1 root disk 8,  7 1995-04-29 12:33 sda7
brw-r-----  1 root disk 8,  8 1995-04-29 12:33 sda8
brw-r-----  1 root disk 8,  9 1995-04-29 12:33 sda9
brw-r-----  1 root disk 8,  16 1995-04-29 12:34 sdb
brw-r-----  1 root disk 8,  17 1995-04-29 12:34 sdb1
brw-r-----  1 root disk 8,  26 1995-04-29 12:34 sdb10
brw-r-----  1 root disk 8,  27 1995-04-29 12:34 sdb11
brw-r-----  1 root disk 8,  28 1995-04-29 12:34 sdb12
brw-r-----  1 root disk 8,  29 1995-04-29 12:34 sdb13
brw-r-----  1 root disk 8,  30 1995-04-29 12:34 sdb14
brw-r-----  1 root disk 8,  31 1995-04-29 12:34 sdb15
brw-r-----  1 root disk 8,  18 1995-04-29 12:34 sdb2
brw-r-----  1 root disk 8,  19 1995-04-29 12:34 sdb3
brw-r-----  1 root disk 8,  20 1995-04-29 12:34 sdb4
brw-r-----  1 root disk 8,  21 1995-04-29 12:34 sdb5
brw-r-----  1 root disk 8,  22 1995-04-29 12:34 sdb6
brw-r-----  1 root disk 8,  23 1995-04-29 12:34 sdb7
brw-r-----  1 root disk 8,  24 1995-04-29 12:34 sdb8
brw-r-----  1 root disk 8,  25 1995-04-29 12:34 sdb9
brw-r-----  1 root disk 8,  32 1995-04-29 12:34 sdc
brw-r-----  1 root disk 8,  33 1995-04-29 12:34 sdc1
brw-r-----  1 root disk 8,  42 1995-04-29 12:34 sdc10
brw-r-----  1 root disk 8,  43 1995-04-29 12:34 sdc11
brw-r-----  1 root disk 8,  44 1995-04-29 12:34 sdc12
brw-r-----  1 root disk 8,  45 1995-04-29 12:34 sdc13
brw-r-----  1 root disk 8,  46 1995-04-29 12:34 sdc14
brw-r-----  1 root disk 8,  47 1995-04-29 12:34 sdc15
brw-r-----  1 root disk 8,  34 1995-04-29 12:34 sdc2
brw-r-----  1 root disk 8,  35 1995-04-29 12:34 sdc3
brw-r-----  1 root disk 8,  36 1995-04-29 12:34 sdc4
brw-r-----  1 root disk 8,  37 1995-04-29 12:34 sdc5
brw-r-----  1 root disk 8,  38 1995-04-29 12:34 sdc6
brw-r-----  1 root disk 8,  39 1995-04-29 12:34 sdc7
brw-r-----  1 root disk 8,  40 1995-04-29 12:34 sdc8
brw-r-----  1 root disk 8,  41 1995-04-29 12:34 sdc9
brw-r-----  1 root disk 8,  48 1995-04-29 12:34 sdd
brw-r-----  1 root disk 8,  49 1995-04-29 12:34 sdd1
brw-r-----  1 root disk 8,  58 1995-04-29 12:34 sdd10
brw-r-----  1 root disk 8,  59 1995-04-29 12:34 sdd11
brw-r-----  1 root disk 8,  60 1995-04-29 12:34 sdd12
brw-r-----  1 root disk 8,  61 1995-04-29 12:34 sdd13
brw-r-----  1 root disk 8,  62 1995-04-29 12:34 sdd14
brw-r-----  1 root disk 8,  63 1995-04-29 12:34 sdd15
brw-r-----  1 root disk 8,  50 1995-04-29 12:34 sdd2
brw-r-----  1 root disk 8,  51 1995-04-29 12:34 sdd3
brw-r-----  1 root disk 8,  52 1995-04-29 12:34 sdd4
brw-r-----  1 root disk 8,  53 1995-04-29 12:34 sdd5
brw-r-----  1 root disk 8,  54 1995-04-29 12:34 sdd6
brw-r-----  1 root disk 8,  55 1995-04-29 12:34 sdd7
brw-r-----  1 root disk 8,  56 1995-04-29 12:34 sdd8
brw-r-----  1 root disk 8,  57 1995-04-29 12:34 sdd9
brw-r-----  1 root disk 8,  64 1995-04-29 12:34 sde
brw-r-----  1 root disk 8,  65 1995-04-29 12:34 sde1
brw-r-----  1 root disk 8,  74 1995-04-29 12:34 sde10
brw-r-----  1 root disk 8,  75 1995-04-29 12:34 sde11
brw-r-----  1 root disk 8,  76 1995-04-29 12:34 sde12
brw-r-----  1 root disk 8,  77 1995-04-29 12:34 sde13
brw-r-----  1 root disk 8,  78 1995-04-29 12:34 sde14
brw-r-----  1 root disk 8,  79 1995-04-29 12:34 sde15
brw-r-----  1 root disk 8,  66 1995-04-29 12:34 sde2
brw-r-----  1 root disk 8,  67 1995-04-29 12:34 sde3
brw-r-----  1 root disk 8,  68 1995-04-29 12:34 sde4
brw-r-----  1 root disk 8,  69 1995-04-29 12:34 sde5
brw-r-----  1 root disk 8,  70 1995-04-29 12:34 sde6
brw-r-----  1 root disk 8,  71 1995-04-29 12:34 sde7
brw-r-----  1 root disk 8,  72 1995-04-29 12:34 sde8
brw-r-----  1 root disk 8,  73 1995-04-29 12:34 sde9
brw-r-----  1 root disk 8,  80 1995-04-29 12:34 sdf
brw-r-----  1 root disk 8,  81 1995-04-29 12:34 sdf1
brw-r-----  1 root disk 8,  90 1995-04-29 12:34 sdf10
brw-r-----  1 root disk 8,  91 1995-04-29 12:34 sdf11
brw-r-----  1 root disk 8,  92 1995-04-29 12:34 sdf12
brw-r-----  1 root disk 8,  93 1995-04-29 12:34 sdf13
brw-r-----  1 root disk 8,  94 1995-04-29 12:34 sdf14
brw-r-----  1 root disk 8,  95 1995-04-29 12:34 sdf15
brw-r-----  1 root disk 8,  82 1995-04-29 12:34 sdf2
brw-r-----  1 root disk 8,  83 1995-04-29 12:34 sdf3
brw-r-----  1 root disk 8,  84 1995-04-29 12:34 sdf4
brw-r-----  1 root disk 8,  85 1995-04-29 12:34 sdf5
brw-r-----  1 root disk 8,  86 1995-04-29 12:34 sdf6
brw-r-----  1 root disk 8,  87 1995-04-29 12:34 sdf7
brw-r-----  1 root disk 8,  88 1995-04-29 12:34 sdf8
brw-r-----  1 root disk 8,  89 1995-04-29 12:34 sdf9
brw-r-----  1 root disk 8,  96 1995-04-29 12:34 sdg
brw-r-----  1 root disk 8,  97 1995-04-29 12:34 sdg1
brw-r-----  1 root disk 8, 106 1995-04-29 12:34 sdg10
brw-r-----  1 root disk 8, 107 1995-04-29 12:34 sdg11
brw-r-----  1 root disk 8, 108 1995-04-29 12:34 sdg12
brw-r-----  1 root disk 8, 109 1995-04-29 12:34 sdg13
brw-r-----  1 root disk 8, 110 1995-04-29 12:34 sdg14
brw-r-----  1 root disk 8, 111 1995-04-29 12:34 sdg15
brw-r-----  1 root disk 8,  98 1995-04-29 12:34 sdg2
brw-r-----  1 root disk 8,  99 1995-04-29 12:34 sdg3
brw-r-----  1 root disk 8, 100 1995-04-29 12:34 sdg4
brw-r-----  1 root disk 8, 101 1995-04-29 12:34 sdg5
brw-r-----  1 root disk 8, 102 1995-04-29 12:34 sdg6
brw-r-----  1 root disk 8, 103 1995-04-29 12:34 sdg7
brw-r-----  1 root disk 8, 104 1995-04-29 12:34 sdg8
brw-r-----  1 root disk 8, 105 1995-04-29 12:34 sdg9
brw-r-----  1 root disk 8, 112 1995-04-29 12:34 sdh
brw-r-----  1 root disk 8, 113 1995-04-29 12:34 sdh1
brw-r-----  1 root disk 8, 122 1995-04-29 12:34 sdh10
brw-r-----  1 root disk 8, 123 1995-04-29 12:34 sdh11
brw-r-----  1 root disk 8, 124 1995-04-29 12:34 sdh12
brw-r-----  1 root disk 8, 125 1995-04-29 12:34 sdh13
brw-r-----  1 root disk 8, 126 1995-04-29 12:34 sdh14
brw-r-----  1 root disk 8, 127 1995-04-29 12:34 sdh15
brw-r-----  1 root disk 8, 114 1995-04-29 12:34 sdh2
brw-r-----  1 root disk 8, 115 1995-04-29 12:34 sdh3
brw-r-----  1 root disk 8, 116 1995-04-29 12:34 sdh4
brw-r-----  1 root disk 8, 117 1995-04-29 12:34 sdh5
brw-r-----  1 root disk 8, 118 1995-04-29 12:34 sdh6
brw-r-----  1 root disk 8, 119 1995-04-29 12:34 sdh7
brw-r-----  1 root disk 8, 120 1995-04-29 12:34 sdh8
brw-r-----  1 root disk 8, 121 1995-04-29 12:34 sdh9


cathectic 12-21-2004 06:23 AM

Apologies, I believe the correct module name is usb-storage (I have it compiled directly into the kernel, so I'm not used to loading it separately)

EDIT: Evil devfs... (udev with the 2.6 kernels creates the sdXY nodes when the device is plugged in, devfs just has them all anyway...)

However, based on my Muvo, I'm fairly certain that the device *doesn't* use the kernel number (e.g. /dev/sdX instead of /dev/sdXY). Therefore, try my mount command, but with '/dev/sdX' as the device, and substitute X for the different letters shown (A through to H).

YBA^[x] 12-21-2004 06:31 AM

Accepted :)

Let see if I got this right, when issueing "modprobe usb-storage" in a terminal, nothing happens. Is that the way it is supposed to be? When mounting the device as you suggested:

mount -t vfat /dev/sda /mnt/muvo -o noauto, users, rw, sync

I get the usage info about the command mount


All times are GMT -5. The time now is 02:14 PM.