Can't mount usb drive under slackware 11
I've beat my head against this problem off and on for months - at this point I have everything but my usb printer unplugged from my machine and still no joy.
I try mount /dev/sda /mnt/usbdrive -t vfat and I get: mount: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so I try mount /dev/sda1 /mnt/usbdrive -t vfat and get told that it's not a valid block device I've tried every combination from sda1 through sdh9 - same story. looking at /var/log/messages tells me that there is a usb drive there, but nowhere can I find a reference which tells me what the various numbers mean. Running dmesg is similiarly cryptic. Why is it that the internet is awash with people who are able to mount thumb drives all day long without problem, and my system refuses to do so. This is mostly a vent, but I *REALLY* need a few pointers here. ARGH!!!! |
This is what I do:
Run command: 1) # tail -f /var/log/messages 2) Plug device and wait for output Here is an example of output: Code:
May 17 19:15:26 guayacan kernel: usb 1-6: new high speed USB device using ehci_hcd and address 2 3) # mount /dev/sda1 /mnt/usb Then go browse it. Note that you need SCSI Disk support enabled in the kernel and USB Support as well. Good Luck -W |
I must be missing a module or something. This is what I get when I follow your suggestion:
... May 17 18:21:28 localhost kernel: hub.c: new USB device 00:1d.2-1, assigned address 26 May 17 18:21:42 localhost kernel: usb.c: USB disconnect on device 00:1d.2-1 address 26 May 17 18:21:56 localhost kernel: usb.c: USB disconnect on device 00:1d.1-1 address 22 May 17 18:22:28 localhost kernel: hub.c: new USB device 00:1d.1-1, assigned address 29 May 17 18:22:45 localhost kernel: usb.c: USB disconnect on device 00:1d.1-1 address 29 What modules might I need? Here's my lsmod output: Module Size Used by Tainted: P aes 31712 0 (unused) nvidia 6429056 11 visor 11304 0 usbserial 19900 0 [visor] snd-seq-oss 23104 0 snd-seq-midi-event 3208 0 [snd-seq-oss] snd-seq 33552 2 [snd-seq-oss snd-seq-midi-event] snd-seq-device 3716 0 [snd-seq-oss snd-seq] snd-pcm-oss 28928 0 snd-mixer-oss 11928 0 [snd-pcm-oss] usb-storage 63520 4 printer 7520 0 uhci 23804 0 (unused) usbcore 56812 1 [visor usbserial usb-storage printer uhci] snd-intel8x0 19188 1 snd-ac97-codec 68160 0 [snd-intel8x0] snd-pcm 52804 0 [snd-pcm-oss snd-intel8x0 snd-ac97-codec] snd-timer 13168 0 [snd-seq snd-pcm] snd 34304 1 [snd-seq-oss snd-seq-midi-event snd-seq snd-seq-device snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer] soundcore 3300 6 [snd] snd-page-alloc 4980 0 [snd-seq-oss snd-seq snd-seq-device snd-mixer-oss snd-intel8x0 snd-pcm snd-timer snd] i2c-core 12260 0 (autoclean) [nvidia] ohci1394 23568 0 (unused) ieee1394 41156 0 [ohci1394] 8139too 13672 1 mii 2304 0 [8139too] crc32 2880 0 [8139too] pcmcia_core 39492 0 ide-scsi 9392 0 agpgart 45092 3 Thanks, btw. Talking to myself hasn't been very productive... :confused: |
Have you ever compiled/re-compiled your kernel?
I suspect you don't have the necessary SCSI Support options enabled in the kernel. I think they are `SCSI Disk Support' and `SCSI Generic' I don't have my kernel source copied on the HDD, so I can't tell you specifically which options are, but a simple Google search gave me this -W |
Okey rcellis,
The first thing you need to do is open your konsole, get root permissions by running Code:
su root password. Then run this command Code:
mcedit /etc/fstab Code:
/dev/sda1 /mnt/memory auto users,rw 0 0 For example here's my /etc/fstab file. Code:
/dev/hda2 swap swap defaults 0 0 Go to /mnt and look if you see a folder named memory or usb.If your usb mount point is called differently like let's say usb or whatever then go back to /etc/fstab and replace /mnt/memory with /mnt/whatever your mount point is called. Okey from here to mount your usb stick you can use kdiskfree in kde to mount the stick, or just run cmd Code:
mount /mnt/memory or /mnt/whatever your mount point is called Code:
umount /mnt/memory or /mnt/whatever your mount point is called |
I did a very minimalist rebuild of the kernel, primarily optimizing for my 686 processor.
My current fstab looks like this: /dev/hda3 swap swap defaults 0 0 /dev/hda1 / reiserfs defaults 1 1 /dev/sda1 /mnt/sd auto defaults 1 0 /dev/sdb4 /zip vfat defaults 1 0 /dev/sdc1 /backupdrive ext2 defaults 1 0 /dev/sdd1 /mnt/compactflash auto defaults 1 0 /dev/sdg1 /mnt/player auto defaults 1 0 /dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0 /dev/fd0 /mnt/floppy auto noauto,owner 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 proc /proc proc defaults 0 0 I had forgotten that I had associated the sda1 device with /mnt/sd - I created a new mount point called usbdrive, but that's the only difference. I think I'll try a kernel rebuild. |
This is why many "regulars" will tell you to try the stock kernels. Generally speaking, most problems like this seem to be caused by bad kernel configs.
To go a bit further, the OpenBSD people will almost without exception refuse to even *attempt* to help you if you're running a custom kernel (unless there is some valid reason for it, you explain the reason, and you tell exactly what's different in the config file). |
Hum. I just checked. No rebuild on the 11.0 release. It's bone stock.
|
Quote:
|
Well, thanks for all the help - I mean that. If nothing else it calmed me down enough to try a few other things.
One of them was to leave the thumb drive in the usb port during a reboot - the system didn't like the auto file-type, and tried every other file system type until *something* was satisfied. Once I logged back in, the device wasn't mounted, but I was able to mount it as /dev/sda1 (letting fstab determine the mount point). So. Not sure what that means in practical terms. Hate to think I have to reboot my system just to examine a usb thumb drive (oh, and apparently have nearly every other usb device unplugged - like my usb 4-way hub, a usb external hard drive I use for backups, my Treo palm phone and a usb zip drive). |
Ok. Firstly you do not have ehci_hcd (or ehci) module loaded, which should be loaded if you have usb 2.0 support. And what is this usbserial for (have never used myself)?
|
modprobe can't find ehci_hd nor ehci. The usbserial is used in syncing PDAs such as my Palm Treo. I suppose it could be interfering with the usb storage device recognition.
I am strongly leaning toward installing a 2.6 kernel. If you don't hear back from me, it'll be because I can no longer boot my system. :D |
Not ehci_hd, but ehci or ehci_hcd (it should be loaded to work with usb 2.0) Check you have compiled it into the kernel or build as module. Installing Slackware 2.6 kernel most probably won't do any harm.
|
All times are GMT -5. The time now is 10:07 PM. |