Removable Flash Drive Problems
I've inserted a removable flash drive into my computer, and for some reason I can't seem to find it. Are there commands I need to enter in order to see/get my system to read my flashdrive?
|
try the command
Code:
fdisk -l |
To see if your system picked it up, you should issue "dmesg | tail" after it's been plugged in.
|
hello :)
after adding the following lines in your /etc/fstab you should be able to mount flash drive from Storage Device in Konqueror. /dev/sda1_______ /mnt/usb-flash______ vfat _______ noauto,user,owner,rw,umask=000 ____ 1__ 0 just change sda1 to only sda or sda2, and make sure you did "mkdir /mnt/usb-flash" |
krussell,
You can only mount a partition, i.e. /dev/sda1 -- not a drive, i.e. /dev/sda. The OP could also be running two SATA drives, like me, in which case his first USB removable storage drive would be /dev/sdc1. Code:
mingdao@silas:~$ dmesg | tail |
tail defaults to 10 lines, I would add " -20":
Code:
dmesg | tail -20 # or |
It seems like hotplug isn't detecting the device. Is this a sign that I should upgrade to kernel 2.6? (btw, I issued lsusb, and dmesg | tail)
PS- dmesg | tail had some note of new usb hardware detected, but after removing my drive and issuing the same command, the same notice appeared. Lsusb showed about 6 things, none of which sounded remotely close to a removable drive. |
We can't see the output unless you give us a shell account, or post it here...
You might also want to add what version of Slackware, which kernel, etc. |
Slackware 10.2, Kernel 2.4. Strangely enough, the device appeared after I gave it a second shot
output of lsusb: Bus 005 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000 Bus 004 Device 002: ID 046d:c03d Logitech, Inc. Bus 003 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000 Bus 001 Device 005: ID 0457:0151 Silicon Integrated Systems Corp. output of dsmesg | tail SCSI device sda: 2007040 512-byte hdwr sectors (1028 MB) sda: Write Protect is off sda: sda1 WARNING: USB Mass Storage data integrity not assured USB Mass Storage device found at 4 USB Mass Storage support registered. usb.c: USB disconnect on device 00:02.2-2 address 4 hub.c: new USB device 00:02.2-2, assigned address 5 WARNING: USB Mass Storage data integrity not assured USB Mass Storage device found at 5 Now what do I do? |
Wait for your system to finish scanning the device?
|
The drive finished scanning
How do I go about mounting it? As in, how do I know which directory to mount? (actually, if someone could explain mounting, that would be a big help) I've only mounted images with daemon tools using the virtual drives.
|
Quote:
Now Code:
# mkdir /mnt/usbkey |
Quote:
Quote:
If it did finish scanning, you'd probably like to mount it, read it, and write it as a normal user. You should only use root for system administration tasks. To learn more about mounting devices, you can issue in a terminal and read "man mount", and also "man fstab" -- because /etc/fstab is the file which contains information about your file systems. This file allows you to setup devices to be read automatically, without having to issue a longer command each time you want to mount a device. Now that we know the USB flash drive you want to use will be /dev/sda1 we can recommend a line for your /etc/fstab file. The following will allow you to mount the device as a normal user, read and write to it, and unmount it. You may create the mount point wherever you desire. Below is my suggestion only: Code:
/dev/sda1 /usb1 vfat noauto,users,rw,umask=1000 0 0 You can su (switch user) to root and create mount points like this: Code:
mingdao@silas:~$ su Code:
chown mingdao.users /usb1 Now to mount it. We've set it up so that normal users (not root) can mount and read/write to the device. There are several ways to mount it. You can open a terminal and issue "mount /usb1" for /dev/sda1 or "mount /usb2" for /dev/sdb2. To unmount it you cd out of it's directory (if you were there) and issue "umount /usb1" -- notice there is one 'n' in umount. If you're running KDE, you can click on the System icon on your desktop, then Storage Media, then whichever device you choose > Removable Device (sda1) for example. To unmount it you navigate back to the Storage Media screen, right-click the same icon and choose Safely Remove. If you're using Xfce, you can open the File Manager (xffm), click the arrow in front of Fstab to expand it's tree, then right-click on /usb1 and choose Mount. Then the only way I see to get it in the right hand window is to navigate by clicking folder icons and up arrow ^ icons until you get to / and then click it. To unmount it, close the folder on the right hand side and get back up the tree and then go to the left hand side, click /usb1 and choose Unmount. |
Quote:
|
Quote:
I found a few with Google <Linux> but most are out-of-date. Typical of TLDP docs... |
All times are GMT -5. The time now is 09:20 AM. |