>>>>> "Ed" == Ed Falis <[EMAIL PROTECTED]> writes:

Ed> I have a jaz drive attached to my machine via a SCSI card plugged
Ed> into a PCMCIA slot (kernel 2.4.3). Is there a way to get it to
Ed> automount during boot by getting the PCMCIA services started
Ed> before processing fstab? Or some other option?

I don't have my laptop here, so I'm doing this from memory.

File systems are mounted very early in the boot sequence, while PCMCIA
is initialized much later. Switching both scripts is possible, but I
noticed it gives some problems.

The easiest way to do this, is to put a little script in /etc/init.d
with the following contents (adapt to your mount point):

#! /bin/sh
case $1 in
     start)
     mount /jaz
     ;;
     stop)
     umount /jaz
esac

Add this script in the boot sequence with:
update-rc.d mountjaz.sh defaults xx yy

How to determine the values for xx and yy: execute
ls /etc/rc?.d/*pcmcia

You'll see files S??pcmcia and K??pcmcia (where ?? Is a number). xx
should be a number bigger than te value after `S', yy must be smaller
than the `K' value.

-- 
G. ``Iggy'' Geens - ICQ: #64109250
Home: <[EMAIL PROTECTED]> - Work: <[EMAIL PROTECTED]>
WWW: http://users.pandora.be/guy.geens/
  ``I was thinking about how everyone was dying
    and maybe it's time to live.''              - Eels

Reply via email to