I just put a USB hard drive into service, but find that unless the drive is connected to my PC the machine won't boot and drops to a shell. Below is the line I added to fstab. I thought that the option "noauto" would prevent the machine from trying to mount the drive /dev/sdb /usbdrive ext3 user,noauto,rw 0 2 What am I doing wrong? Any advice is welcome. Dick -- Yes indeed...the Hokey Pokey *is* what its all about!
Hello Dick, On Tue, 2010-11-16 at 22:52 -0500, Dick Roth wrote:> /dev/sdb /usbdrive ext3 user,noauto,rw 0 2The last entry is the fsck order used at boot. Setting it to 2 probably prompts the system to check it. Anyway, you shouldn't need to add explicit entries to fstab to mount usb drives. They should get auto mounted when you plug them in (I think the autofs and haldaemon services are required to run for this to happen). Regards, Leonard. -- mount -t life -o ro /dev/dna /genetic/research
On Wed, Nov 17, 2010 at 05:52, Dick Roth <raroth7 at comcast.net> wrote:> I just put a USB hard drive into service, but find that unless the drive > is connected to my PC the machine won't boot and drops to a shell. > Below is the line I added to fstab. ?I thought that the option "noauto" > would prevent the machine from trying to mount the drive > > /dev/sdb ? ? ? ? ? ? /usbdrive ? ? ? ? ? ext3 ? ?user,noauto,rw ?0 2 > > What am I doing wrong? ?Any advice is welcome. >What is on the drive? If it's something critica, such as your /home or /etc directory, then of course the system won't make it to runlevel 5 without it. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com
On Tue, 16 Nov 2010, Dick Roth wrote:> To: CentOS List <centos at centos.org> > From: Dick Roth <raroth7 at comcast.net> > Subject: [CentOS] How to stop automount > > I just put a USB hard drive into service, but find that unless the drive > is connected to my PC the machine won't boot and drops to a shell. > Below is the line I added to fstab. I thought that the option "noauto" > would prevent the machine from trying to mount the drive > > /dev/sdb /usbdrive ext3 user,noauto,rw 0 2 > > What am I doing wrong? Any advice is welcome. > > DickWe seem to be talking about 2 different uses for the USB drive. Do you want to boot a Linux system from the USB stick, or do you want to mount the USB drive after the system is up? Kind Regards, Keith