USB drive not working
I am using Debian 3.1 and it won't recognise my USB drive. I probably need to edit my fstab file, but how? I tried /dev/sda1, and /dev/sb1 but nothing happened. Using MEPIS or Kubuntu it automatically detected and mounted it. When I look in my /dev/ folder, there is no sda1 or sb1 device. The USB drive works fine with other distributions, and under Windows, but only in Debian does nothing happen.
|
Here is how my fstab entry is set up for my flash drive:
Code:
/dev/sda1 /mnt/sda1 vfat noauto,users,owner,exec,umask=000 0 0 Code:
mount /mnt/sda1 You can check to see if the drive is recognized using the command "dmesg" after plugging it in. Sometimes I have to wait ~20 seconds or so before my drive is recognized. |
Thanks, but it still doesn't work.
I added the line exactly as above to fstab, but When I try: Code:
bp@localhost:/$ mount /mnt/sda1 Code:
mount: special device /dev/sda1 does not exist |
Plug in the drive, then wait a few seconds and run "dmesg". In my case, dmesg output gives:
Code:
sda: assuming Write Enabled |
When I run dmesg, I get:
Code:
usbcore: registered new driver usbfs |
Anyone?
Where could the USB device be located? In '/proc/bus/usb'? When I search for all block devices in konqueror, all I get is my hard drive partitions, cd drive, some shortucts to the other devices and a whole bunch of memory devices. If there is no sda1, can I create one? If so, how? Thanks |
This is how usb drive works for me :-
mount -t auto/msdos /dev/sda1 /mnt/pen Just create a directory under /mnt (pen is the directory). One thing to note is i can't use -t vfat, and i don't know why. I tried -t auto or -t msdos works. Hope it helps |
But there is no 'sda1' in /dev/ . The only block devices there are the hard drives and a bunch of memory devices. sda1 , sda2 , sdb1 and so on don't even exist as a file. Editing fstab is not the froblem. I have to get or find the device directory, or make one, not the mount point. How do I make one (if it is possible)? Or what do I use instead?
|
Hi,
This is my last portion of dmesg, yours should show the same or similar ======================================================= usb 3-5: new high speed USB device using address 3 Initializing USB Mass Storage driver... scsi0 : SCSI emulation for USB Mass Storage devices Vendor: Model: USB FLASH DRIVE Rev: 1.01 Type: Direct-Access ANSI SCSI revision: 02 USB Mass Storage device found at 3 usbcore: registered new driver usb-storage USB Mass Storage support registered. SCSI device sda: 253952 512-byte hdwr sectors (130 MB) sda: assuming Write Enabled sda: assuming drive cache: write through /dev/scsi/host0/bus0/target0/lun0: p1 Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 ====================================================== What i did was to su into root and type #mount -t msdos /dev/sda1 /mnt/pen Have you tried and it doesn't work?? What i'd suggest is that you do a dmesg first, hang in there, then plug in your pen drive, check on dmesg again to see what has been 'added'. Meaning that you could open 2 console at the same time to see the effect . Let us know what's the status so far. Cheers |
try /dev/sda instead of /dev/sda1
I have two flash drives. One works with /dev/sda and the other works with /dev/sda1. I don't know why. |
I was having similar problems. Make sure that you are using a 2.6 kernel. The 2.4 kernel that comes with Debian 3.1 (Sarge) won't allow USB drives.
Do: apt-get install kernel-image-2.6-386 Reboot your machine, and choose the 2.6 kernel. If that doesn't make it work, try this from DebianHelp.org: http://www.debianhelp.org/modules.ph...ticle&sid=3529 |
I am using a 2.6 kernel, but it is for k7 (AMD Athlon). Should I use a 'normal' 386 kernel? Also, how do I edit/add modules to the kernel? It is a laptop and it doesn't have full APM or ACPI support. Or should I recompile the kernel? And how would I do that? In the KDE Control Center there is an item called 'linux kernel' or something like that, but I apparently I don't have the source code.
|
Yes, the 386 kernel is what you should be using (there may be one optimized for your processor, but the 386 should work). Did you try the link that I posted?
|
His kernel is fine as long as he has an amd processor no need to switch to i386.
http://www.xs4all.nl/~bsamwel/usb_st...on_debian.html If you dont have "hotplug" installed ....install it.It will save you lots of headaches. |
Thanks everybody.
I loaded the 'hotplug' and 'usb-storage' modules into the kernel, and now it works fine. I guess I thought they loaded automatically and there was a problem with /etc/fstab and /dev/. Now everything works just fine. |
All times are GMT -5. The time now is 12:54 PM. |