Loopback mounting from rc script

Mark Andrews marka at dmssyd.syd.dms.csiro.au
Tue Apr 10 23:04:57 AEST 1990


In article <6503 at brazos.Rice.edu> bob at omni.com (Bob Weissman) writes:
|X-Sun-Spots-Digest: Volume 9, Issue 111, message 10
|
|I'd like to loopback mount /var/tmp/tmp on /tmp...
|
|I've tried both of the obvious methods, i.e., putting
|
|	/var/tmp/tmp	/tmp	lo	rw	0	0
|
|in my /etc/fstab after all mounts of type 4.2, and
|
|	mount -v -t lo /var/tmp/tmp /tmp > /dev/console 2>&1

The problem is that the default path when mount is run does NOT include
/etc or /usr/etc. To make sure mount is run with the correct PATH in it's
envirionment execute ther following.

PATH=$PATH	mount -v -t lo /var/tmp/tmp /tmp > /dev/console 2>&1

You can put loopback filesystems in /etc/fstab and mount them by

PATH=$PATH mount -vat lo 

Mark.



More information about the Comp.sys.sun mailing list