usb thumbdrive. can't mount? not listed?!
Got myself a thumbdrive today and was expecting a problem or two, because I've read quite a bit about these things on these forums. I've tried the basics and read some other threads, but to no help.
I tried mounting sda through sdg, and 1-15 on each one pretty much. I have no other scsi drives on here so I would assume it'd just be sda :) Here's what I get. Code:
root@floods[box]:/home/floods# mount -t vfat /dev/sda /mnt/usbstick/ Code:
root@floods[box]:/mnt# mount usbstick/ Code:
root@floods[box]:/home/floods# lsmod | grep usb Code:
root@floods[box]:/home/floods# cat /etc/fstab | grep sda Code:
Bus 003 Device 007: ID 05dc:0080 Lexar Media, Inc. Code:
Jul 31 00:36:00 floods[box] kernel: usb 3-2: USB disconnect, address 6 It's not even directing it to /dev/sd*, which everything else I've read said it would list /dev/sd* somewhere in my /var/log/messages. I think the usbmgr parts are from something I downloaded to try and get it working and just uninstalled, but it's still showing up. Not my problem right now though :) I'm just lost on where to start! Any pointers? Much appreciated. especially if you even read all this :) and if you need any more information I'm willing to give it of course. Thanks in advance! |
normally you could watch /var/log/messages as you plug it in, you should see the name shown.
I guess your using devfs which is going to change things a bit. Maybe try linking to something in this path /devices/pci0000:00/0000:00:10.1/usb3/3-2/3-2:1.0/host5/5:0:0:0 |
I did watch /var/log/messages/ and never found *anything* relating to sd*
and I'm not using devfs. Code:
root@floods[box]:/home/floods# cd /usr/src/linux |
going to try with devfs on and see what it gives, but haven't yet. will edit this post once I do.. mainly a bump :(
edit: tried devfs, nothing sd* was listed in /dev then, which was what I was afraid of. I've messed with my kernel a little more (took devfs off again, other things) and now I see this in dmesg.. Code:
scsi0 : SCSI emulation for USB Mass Storage devices |
Try mounting it as /dev/sda1. You need to mount the partition, not the device itself. I had similar problems with my flash reader when I tried to get it working last week.
See this page too: http://www.cs.sfu.ca/%7Eggbaker/personal/cf-linux There really needs to be a sticky thread about USB devices here. |
hm, now it's getting really irritating.
I have tried mounting it as /dev/sda1, and I just read that link. Once I got past all the kernel stuff and got sg_utils, sgcan -i gives this Code:
root@floods[box]:/home/floods/Downloads# sg_scan -i Code:
root@floods[box]:/home/floods/Downloads# sg_map |
anyone? heh. hate to feel like I bought this thing for nothing. :/
|
How about sg1
linux:/proc/scsi # ls -l /dev/sg0 /dev/sg1 crw-r----- 1 root disk 21, 0 Oct 2 2003 /dev/sg0 crw-r----- 1 root disk 21, 1 Oct 2 2003 /dev/sg1 ls-l /dev/sda /dev/sda1 brw-rw---- 1 root disk 8, 0 Oct 2 2003 /dev/sda brw-rw---- 1 root disk 8, 1 Oct 2 2003 /dev/sda1 If the drive has more that one partition as the secure version does then you may need multilun enabled in the kernel to use the drive. I usually run fdisk like this to see mine.. fdisk -l Disk /dev/sdc: 255 MB, 255852544 bytes 16 heads, 32 sectors/track, 976 cylinders Units = cylinders of 512 * 512 = 262144 bytes Device Boot Start End Blocks Id System /dev/sdc1 1 976 249840 83 Linux Disk /dev/sdd: 129 MB, 129990656 bytes 16 heads, 16 sectors/track, 991 cylinders Units = cylinders of 256 * 512 = 131072 bytes Device Boot Start End Blocks Id System /dev/sdd1 * 1 990 126703+ 6 FAT16 Disk /dev/hda: 60.0 GB, 60011642880 bytes 255 heads, 63 sectors/track, 7296 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 3825 30724281 83 Linux /dev/hda2 * 3826 7296 27880272 82 Linux swap |
Code:
[root@floodsbox:/home/floods]ls -l /dev/sg0 /dev/sg1 btw, I do have multilun enabled in my kernel, which I did *just* in case this were the problem :( fdisk -l gives me no options, still. do I need to format this thing on my windows box maybe? I think I'll try that in a few. Code:
[root@floodsbox:/home/floods]fdisk -l |
This is a long shot, but worth a try:
Try some other USB mass storage device, like a USB Hard disk. Mount that using the "-t auto" option on mount. If you can access this device, then remove it and connect your thumb-drive and try accessing it just like you did for the other USB storage device. Note: If you are using a USB hard drive - make sure you have the proper kernel modules for the particular file system. vxc |
Well, I finally had some real free time and asked a friend. he repointed me in the direction of the scsi drivers in the kernel, which I had as modules. I changed them from modules and compiled them in and it worked like a charm.
Why is it that it wouldn't work as a module? Anyways, it works now, so I'm happy. :) Thanks for all your help, it's muchly appreciated |
It would work as a module. You just need to load them.
Basically the devices I posted were to show the device nodes in the event that you had to create them for some reason. |
Well, even after they were loaded I couldn't get it up.
I've had quite a few issues with modules not working on my newer 2.6 kernels, but with all the 2.4 kernels I rolled they worked fine. I've moved on to FTP and IP masquerading, so now I have newer and bigger things to learn. :) Just need a router, but that may be for another post another day. Thanks for all the help David |
All times are GMT -5. The time now is 06:43 AM. |