LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-17-2009, 09:39 PM   #1
anon111
Member
 
Registered: Oct 2004
Posts: 38

Rep: Reputation: Disabled
External USB Drive Ext3 Fsck Error on Boot


Hey everyone..

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.

My fstab

/dev/disk/by-id/ata-HDS722516VLSA80_VN6D3ECDDXE6LD-part1 swap swap defaults 0 0
/dev/disk/by-id/ata-HDS722516VLSA80_VN6D3ECDDXE6LD-part2 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/ata-HDS722516VLSA80_VN6D3ECDDXE6LD-part3 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/ata-ST3500630AS_6QG16L7W-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/disk/by-id/usb-WD_10EACS_External_57442D574341553437373433393533-0:0-part1 /media/ExternalBackup ext3 defaults 1 2
 
Old 05-17-2009, 10:58 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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.
 
Old 05-18-2009, 04:50 AM   #3
anon111
Member
 
Registered: Oct 2004
Posts: 38

Original Poster
Rep: Reputation: Disabled
Thanks stress_junkie

However, the drive in question is a Western Digital "dev/disk/by-id/usb-WD_10EACS_External_57442D574341553437373433393533-0:0-part1 /"

I have searched quite a bit actually...
 
Old 05-18-2009, 07:43 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
I am assuming that your external disk is OK, and passes a manual fsck, but something is wrong with the way it is being spun up or detected.

If you remove the 2 at the very end of the line in /etc/fstab that refers to your external disk, it should not be fsck'd

Also, see the -i option to tune2fs

If you do this, you should remember to run fsck manually on it from time to time.
 
Old 08-10-2009, 07:57 PM   #5
seanadams
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
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...

Last edited by seanadams; 08-10-2009 at 08:15 PM.
 
Old 08-11-2009, 11:34 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
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

If no errors, then start your "userland daemons".

Welcome to LQ.
 
Old 08-11-2009, 10:47 PM   #7
seanadams
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by tredegar View Post
You could write yourself a little script:
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.
 
Old 08-21-2009, 12:47 AM   #8
anon111
Member
 
Registered: Oct 2004
Posts: 38

Original Poster
Rep: Reputation: Disabled
seanadams -

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
 
Old 08-22-2009, 12:02 AM   #9
seanadams
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by macgyver007 View Post
seanadams -

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I unsave a Gnome-saved password of my ext3 external USB hard-drive? simonsharry Linux - Newbie 5 02-15-2009 02:15 AM
Installing Ubunto 7.04 on External USB drive, to boot from and run from - Error 17? Agent942 Ubuntu 18 11-19-2007 02:32 PM
ext3 RAID 1 on a USB External Two Disk Hard Drive - Possible? Runge_Kutta Linux - Hardware 3 08-17-2007 06:28 PM
Occasional fsck.ext3 Error at Boot Time - FC5 JonBL Linux - Hardware 2 01-25-2007 04:22 AM
USB external drive: NTFS/FAT32 detected, ext3 not blanks77 Linux - Hardware 7 04-25-2006 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration