Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
I have an usb 2.0 drive that I used YaST to format with EXT3 (Because of File Size Limitations).
If I automatically mount the drive on boot, I get a crash saying that my drive failed fsck.
It appears that the USB drive doesn't wake up in time for it to be mounted. However, I didn't seem to get this problem when out of the box the drive was formatted with fat.
Has Anyone had a similar problem? Anyone know how to fix it?
I would prefer not to have to mount the drive manually since I'd like to store automatic backups to the drive using a scheduled job.
Is it a Seagate external drive? The newer Seagate external drives are known to go to sleep and spin down. Linux doesn't wait long enough for them to spin back up.
If it is a Seagate drive then this has been addressed in other posts. Use the LQ search to find those posts or use Google. You should always search for the answer to a question before posting it. Most questions have been asked and answered numerous times.
Last edited by stress_junkie; 05-17-2009 at 11:00 PM.
I'm having the same problem with a Maxtor OneTouch 750G (USB). Intel Mac Mini running Ubuntu server 9.0.4 (2.6.28-14-server).
If I disable fsck, the system boots but the drive doesn't even get mounted. I need to have the drive properly fscked and mounted during boot to ensure it is ready to go before certain userland daemons are launched.
I tried the disabling STANDBY and although the drive accepts the change, it does not address the problem. The drive is already spun up well before fsck is attempted. I think the system is just not allowing enough time for USB drives to be recognized.
I suspect that just adding a 5 second delay at the right point in the boot sequence should do the trick. Trying to figure out how to do that...
I need to have the drive properly fscked and mounted during boot to ensure it is ready to go before certain userland daemons are launched.
You could write yourself a little script:
If the device isn't plugged in exit 1
If the device is mounted, unmount it
Run fsck on it, if that fails, exit 2
otherwise mount the device
If the mount failed exit 3
otherwise exit 0
Thanks, I think I'll probably just do that. But I think there is a general issue that the kernel needs a parameter to just give more time for USB drives to come online. If it's not a known issue, maybe I'll take a closer look under the hood.
Have you been able to discover any other solutions? It had occupied enough of my time attempting to fix it, but I have some time so I'm going to try and revisit it.
Have you been able to discover any other solutions? It had occupied enough of my time attempting to fix it, but I have some time so I'm going to try and revisit it.
Thanks
No, not for USB, but the same drive works OK on firewire. I remain convinced that this is a general bug in the kernel.
But... probably offtopic, as it happens, I have abandoned this computer because it seems to have other issues. If I use "stress" to simultaneously pound the CPU and internal HDD it eventually crashes in a few hours. I just got another unit to replace it so I'm about to find out if it was one-off bad hardware or not.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.