Mailinglist Archive: opensuse (5130 mails)

< Previous Next >
Re: [SLE] Auto mount _netdev volumes?
  • From: Joseph Loo <jloo@xxxxxxx>
  • Date: Thu, 18 May 2006 21:50:11 -0700
  • Message-id: <446D4E83.6090703@xxxxxxx>
Anders Norrbring wrote:
Anders Norrbring skrev:
I have an iSCSI volume that I want mounted at startup, but of course this can't be mounted before network is up, so in fstab I've added the option '_netdev' to the volume.

That didn't seem to do the trick.. After system init, the volume isn't mounted..
This of course also has the effect that the file system on the volume never get it's file system checked, since that's made long before networking during boot.

Any ideas on this please?


Seems like I need a custom script for this.. *sigh* What I need is to
check that open-iscsi is running, then run a file system check on the
volume(s), file system can be any avilable to the kernel.

Then the file system(s) should be mounted accordning to the entries in
fstab.

Unfortunately I'm not good enough in scripting, so help is really welcome!

Anders.



Why don't you use the autofs feature on the system. When you need the drive, it will mount the drive and umount it if you do not not use the drive.

You would have to enable autofs and fill in the required auto.master and auto.xxx files to make it work though. That is how I mount all my users anyway.

--
Joseph Loo
jloo@xxxxxxx


< Previous Next >