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.
Location: Brooklyn, originally from Trinidad and Tobago
Distribution: (Ku, Xu, U)buntu
Posts: 30
Rep:
Unplugging usb mass storage in linux
I just got a GP2X. It's awesome. I got a 4GB SD Card to use with the GP2X. When I got it they were selling it as a value pack, which included some games and some accessories. With it came a little SD, to USB stick dongle thingy (In one end you put in the SD Card, the other end's the USB connector).
So I was using it to copy over some files. I right-clicked and chose Unmount Volume in Xubuntu and then unplugged it. Now I think I may have unplugged it just a little bit too early because when I plugged it back in later on, nothing showed up. Tried it Ubuntu. Nothing showed up. Tried to dosfsck it. It said there was no /dev/sda1. Took the SD card out and plugged it into the GP2X. Nothing showed on the GP2X.
Of course I'm unhappy and panicking because I think at best it won't be awhile till I get it fixed and at worst the SD Card that I just got is broken.
I went into to work next morning and plugged it in on a Windows desktop, it showed up but when I double-clicked it said that the it needed to be formatted. Tried to format it. Didn't work. Tried again, but this time did a quick format. It worked, but three files showed up with garbage text for names with each, and Windows Explorer saying that each file's size was 4GB. I double click them and it says that 'there was no source file or disk' or something along those lines. So I do a Scandisk from Disk Properties, and have it automatically fix errors. That seemed to fix it.
Now my first question is, how would I have fixed this in Linux?
Next question is, why would this have happened in Linux? This has actually happened to me before with a regular USB Flash stick. Is there some sort of write-caching that Windows does that Linux doesn't? If there is how would I turn it on in Linux?
Location: Brooklyn, originally from Trinidad and Tobago
Distribution: (Ku, Xu, U)buntu
Posts: 30
Original Poster
Rep:
Well I tried 'dosfsck /dev/sda1' and it said there was no sda1. Hopefully I never see a next time of that but if I do I'll try fdisk /dev/sda , cfdisk , and mke2fs as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.