Ron Foster at Baldor-IS wrote:
Mike,
What we do is make a copy of the fstab whenever we make a successful
change. The base install
fstab is saved as /etc/fstab.sav00. Each time we make a change, we save
it again under the next
sequential number-/etc/fstab.sav01. If fstab is corrupted, usually we
can get / to mount, so we
can copy the last known good fstab.savxx back to fstab. If we cannot,
then we boot the install
cds to perform this copy. Having the fstab.sav00 is really handy. It
just mounts the base operating
system. If your user application is what is having problems, you can
get your operating system
up and go fix the user application files.
Contemplate the use of autofs:
07:55 [EMAIL PROTECTED] ~]$ grep ^[a-z/] /etc/auto.m* | grep -v rpmnew
/etc/auto.master:/misc /etc/auto.misc
/etc/auto.master:/net /etc/auto.net
/etc/auto.misc:cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
07:55 [EMAIL PROTECTED] ~]$
Master lists the other files and where they mount.
The others list filesystems and where, within the parent described by
master, they mount. net is a special case, it automatically looks for an
NFS export matching the request:
07:55 [EMAIL PROTECTED] ~]$ ls -l /net
total 0
07:57 [EMAIL PROTECTED] ~]$ ls -l /net/ns
total 0
dr-xr-xr-x 3 root 0 May 30 07:57 home
drwxr-xr-x 2 root 0 May 30 07:57 misc
drwxr-xr-x 2 root 0 May 30 07:57 tftpboot
dr-xr-xr-x 4 root 0 May 30 07:57 var
07:57 [EMAIL PROTECTED] ~]$ ls -l /net
total 0
dr-xr-xr-x 6 root 0 May 30 07:57 ns
07:57 [EMAIL PROTECTED] ~]$ ls -l /net/cdm
total 0
drwxr-xr-x 2 root 0 May 30 07:58 home
dr-xr-xr-x 3 root 0 May 30 07:58 var
07:58 [EMAIL PROTECTED] ~]$ ls -l /net
total 0
dr-xr-xr-x 4 root 0 May 30 07:58 cdm
dr-xr-xr-x 6 root 0 May 30 07:57 ns
07:58 [EMAIL PROTECTED] ~]$
As you can see, filesystems are mounted on demand, and are unmounted
after they're unused for a time.
It's possible to mount anything that one can mount using /etc/fstab or
the mount command directly (though loop-mounting an ISO image with the
right selinux magic so Apache can access its contents has defeated me).
--
Cheers
John
-- spambait
[EMAIL PROTECTED] [EMAIL PROTECTED]
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375
You cannot reply off-list:-)
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390