Re: how to boot with external scsi drives turned off

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 08, 2003 at 11:59:53PM -0800, Mick Mearns wrote:
> Hello;
> 
> /dev/sdb1      /mnt/scsi-ext-top    ext3     noauto   1 2
> /dev/sdc1      /mnt/scsi-ext-mid    ext3     noauto   1 2
> /dev/sdd1      /mnt/scsi-ext-bot    ext3     noauto   1 2
> 

You don't describe your problem.  Specifically, what happens
when you turn the machine on with those drives powered off?

My guess is that you get dropped to a root repair-filesystem
shell.  I have a firewire drive this used to be a problem with.

I haven't done this on Fedora yet, but on my RedHat 9.0 machine
that I have a Firewire drive hooked up to, I had to do this:

LABEL=firewire  /firewire        ext3    defaults,noauto 1 0

I pass the 0, because if I put the 2 in the last field, fsck
has a fit, and tells me to it can't boot until I get that 
filesystem fsck'ed.  Now, the problem with using a 0, is that it 
means you have to manually fsck the drive before you mount 
it.  Which I always forget to do.

The other thing, is that you are using SCSI which means the
drives can move on you depending on all kinds of fun stuff.

One way to deal with that is, to use Labels (RedHat 9 does this
by default on the install).  Personally, I like using UUID's 
more, but they at least on RH9, when you install a new kernel 
and the scripts build a new initrd.img and update your 
/etc/grub.conf file, it gets confused by UUID's.  I don't want to 
confuse you too much, so I'll just explain straight labels.
If you want the run down on UUID's, google for it, or
reply to this and CC me.

e2label /dev/sdb1 ext-top

Then, you can put this in your fstab:
LABEL=ext-top   /mnt/scsi-ext-top    ext3     noauto 1 0

Then mount /mnt/scsi-ext-top would work automatically if
it is turned on, but doesn't get fsck'ed.

Your other alternative is to use LVM (which is pretty cool),
but well beyond the scope of an e-mail.

Or setup RAID devices, (those will get the same names all
the time if you do it right).  The initscripts should auto
start all the LVM and MD devices, and if they aren't present,
everything should still work.  Read up on the RAID howto's.
Raid devices auto-detection, and consistant naming across 
reboots even if the SCSI devices move around.

So I'd do this:
/dev/sdb1      /mnt/scsi-ext-top    ext3     noauto   1 0

Or this:
LABEL=ext-top      /mnt/scsi-ext-top    ext3     noauto   1 0

after labeling the device.  

If you ever switch filesystems, I don't think that reiserfs or JFS 
have labels that are supported by the current mount/fsck.  
However, my knowledge on that is dated.  For some reason, I 
want to say that XFS has labels and label support in mount, 
but I couldn't swear to it.

	Thanks,
		Kirby


> 
> How do I leave the drives in /etc/fstab and not have them powered up?
> These are the only drives on that controller.
> 
> Thanks
>     Mick M.
> 
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
> 
> 
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> 




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux