USB Drive - Mounted OK, but files aren't recognized
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
USB Drive - Mounted OK, but files aren't recognized
Hi all.
I got my USB thumb drive mounted, with much reading and searching on the web. I'm running Debian Sarge, Gnome 2.8 and the default 2.4 kernel.
I rebooted the machine with the drive plugged in, then went:
# mount -t vfat /dev/sdb /mnt/usb
This worked, and /mnt/usb has my files visable. The problem is though, that Gnome/Nautalis doesn't display my files / doesn't read my USB drive properly. All the files and directories are displayed as the "unknown" file icon.
Is there a way to fix this? Should I just format the drive, and with which file system?
So you can still read/write/copy etc. each file on the usb drive?
Sounds more like a mime type/file icon issue. You may need to go into the Nautilous options and set which icons you wish to see for each file type. If there was a problem, you probably wouldn't see anything at all under any file manager...
This shows my home dir with some files in it, and everything looks OK. In the other window labeled "/mnt/usb", this shows the files, and directories, on the usb drive.
This is as far as I've ever gotten with mounting my usb drive under Gnome. For some reason it works under KDE, but I don't use KDE.
Interesting. When I copy the files to ~ they turn out fine. Meaning, I can open them and read, etc. When I copied a directory over, the contents copied fine, but the files within the directory were still the "unknown" file type.
One other note: when I right click one of the "unknown" files, the file disappears. I can hit refresh and the file will reappear.
I wonder if it is the current file system on the drive? Or the drive model?
I wonder if it is the current file system on the drive? Or the drive model?
Could be. It might be worth formatting the usbdrive (under linux, not windows) just in case - vfat is usually a safe filesystem for usbdrives. Other than that, I would probably run an update on your gnome/nautilus packages, in case it is simply a bug that's since been fixed.
Found the problem. It turns out that the USB cord I was using from the USB drive into the USB port somehow does not work with Linux. This cord isn't the default that came with the drive, so I came up with the zaney idea to try the default cord. BAM - Instaltely the USB icon came up on my desktop and Nautilus opens to the drive with my files and directories all intact - and with the correct MIME type icons.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.