LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 11-12-2008, 12:47 PM   #1
SKelem
Member
 
Registered: Jun 2005
Location: Silicon Valley, California
Distribution: Fedora 13
Posts: 36

Rep: Reputation: 15
can't boot if external usb drive not attached


I am running opensuse 11.0 on a Dell Latitude D800 laptop.
If I have my external USB Maxtor drive connected, I can boot just fine.
If I don't have the drive plugged in, I get the following messages:
(Which I had to type because I couldn't find any log file with these messages.)
The usb drive gets mounted as /media/OneTouch4 and /media/Maxtor2, so these aren't essential partitions.
What do I need to change to get it so I can boot whether or not my external drive is plugged in?

Thanks,
Steve
Code:
Checking file systems...
fsck 1.40.8 (13-Mar-2008)
error on stat() /dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part2: No such file or directory
error on stat() /dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part4: No such file or directory
Linux_Boot: clean, 66/65280 files, 17172/261048 blocks
error on stat() /dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part2: No such file or directory
error on stat() /dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part4: No such file or directory
/dev/disk/by-id/scsi-SATA_WDC_WD1600BEVE-_WD-WXC308386492-part6: clean, 450036/3022848 files, 10329996/12068823 blocks
error on stat() /dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part2: No such file or directory
error on stat() /dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part4: No such file or directory
opt: clean, 134717/655776, files, 1251485/2622603 blocks
error on stat() /dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part2: No such file or directory
error on stat() /dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part2: No such file or directory
error on stat() /dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part4: No such file or directory
Failed to open the device '/dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part2': No such file or directory


error on stat() /dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part4
Failed to open the device /dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part4: No such file or directory
ehci-hcd ohci-hcd uhci-hcd usb-ohci usb-uhci
fsck failed for at least one filesystem (not /).
Please repair manually and reboot
/etc/fstab contains:
Code:
/dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part2	/media/Maxtor2	reiserfs	noauto,users 1 2
/dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part4	/media/Maxtor3	reiserfs	noauto,users 1 2
 
Old 11-12-2008, 01:07 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,592

Rep: Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559
Quote:
Originally Posted by SKelem View Post
I am running opensuse 11.0 on a Dell Latitude D800 laptop.
If I have my external USB Maxtor drive connected, I can boot just fine.
If I don't have the drive plugged in, I get the following messages:
(Which I had to type because I couldn't find any log file with these messages.)
The usb drive gets mounted as /media/OneTouch4 and /media/Maxtor2, so these aren't essential partitions.
What do I need to change to get it so I can boot whether or not my external drive is plugged in?

/etc/fstab contains:
Code:
/dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part2	/media/Maxtor2	reiserfs	noauto,users 1 2
/dev/disk/by-id/usb-Maxtor_OneTouch_2HA11LLW-0:0-part4	/media/Maxtor3	reiserfs	noauto,users 1 2
Remove those entries from fstab. If I had to guess, I'd say you built the system with that drive in, so it added it to fstab at build time.
 
Old 12-02-2008, 04:51 PM   #3
SKelem
Member
 
Registered: Jun 2005
Location: Silicon Valley, California
Distribution: Fedora 13
Posts: 36

Original Poster
Rep: Reputation: 15
How about automount?

Removing the entries from fstab makes it so I can boot without the disk being there. (0.5 yeah!)

But, how to I get the disk to automount when it is plugged in, either because the disk is plugged in when I boot, or when it's hotplugged?

Thanks,
Steve
 
Old 01-22-2009, 10:58 PM   #4
jdillaczek
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
Quote:
But, how to I get the disk to automount when it is plugged in, either because the disk is plugged in when I boot, or when it's hotplugged?
Keep those entries in fstab, but change the last field from 2 to 0.
 
Old 01-22-2009, 11:09 PM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Don't use /media/ for items in /etc/fstab. If there is an entry in /etc/fstab, then hal won't mount it. The subdirectories in /media/ are created and destroyed on the fly. Using a subdirectory under /mnt would be a better place.

You can use the "noauto" mount option in /etc/fstab. This will allow you mount it later using the mount point as an argument, but will let the system boot normally if it isn't plugged in. Together with the "user" or "users" option, you could mount it as a regular user. If you want exclusive access when it is mounted on "this" system, simply change the ownership and permissions of the mounted filesystem.

Removing or commenting out these entries is another option. Then they will be automounted under /media/. HAL/PolicyKit under SuSE will refuse to automount a partition if there is an entry in /etc/fstab. Here some distro's are different.

Last edited by jschiwal; 01-22-2009 at 11:10 PM.
 
  


Reply

Tags
boot, linux, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Boot from USB external drive, from laptop without USB boot support. darirod Linux - Newbie 2 12-19-2006 10:00 AM
Which boot loader for an external USB drive aikempshall Slackware 2 04-06-2005 06:53 PM
External storage for Linux/Windows: Samba or USB 2.0 attached Hard Drive? SparceMatrix Linux - Hardware 1 02-04-2005 02:33 PM
howto boot Suse 9.1 from external usb drive through bios-accessable boot partition McHenner Linux - Hardware 2 09-30-2004 07:27 AM
How to boot from an external USB drive? Dywas Linux - General 1 04-03-2004 02:31 PM


All times are GMT -5. The time now is 09:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration