home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!ossi!aegl
- From: aegl@ossi.com (Tony Luck)
- Subject: How to use loopback mount on 4.1.2?
- Message-ID: <aegl.712339982@ossi.com>
- Sender: news@ossi.com (OSSI Newsstand)
- Nntp-Posting-Host: nym
- Organization: Open Systems Solutions Inc.
- Date: Tue, 28 Jul 1992 16:13:02 GMT
- Lines: 38
-
- We have a 4/690 running 4.1.2, and I would like to use a "loopback mount" to
- make part of the filesystem appear in more than one place (a symbolic link
- will not work for this particular application ... it expects "pwd" to return
- a certain string ... don't ask why!).
-
- So, I configured a new kernel with "options LOFS". Then (after rebooting on
- the new kernel) I added these lines to the end of /etc/fstab:
-
- # loopback mounts
- /rara/2/DV /DV lo rw 0 0
-
- and typed:
-
- # mount /DV
-
- ... and mount said:
-
- mount: unknown filesystem type: lo
- mount: giving up on:
- /DV
-
- I tried saying "lofs" instead of "lo" (in case the fstab(5) was wrong, but it
- didn't help).
-
- So, then I read "mount(2)", and wrote a program that successfully did the
- loopback mount.
-
- In a burst of inspiration I did a "find" ... and discovered /usr/etc/lo_mount,
- which will also do the mount if given the right arguments (no man page, so you
- have to guess a bit) ... but it doesn't add an entry to /etc/mtab ... so
- "mount" and "df" don't report it as a mount point. I'll also have to add
- more junk to /etc/rc.local to get the mount done on every reboot.
-
-
- So, finally, here is my question. Why doesn't /etc/mount grok "lo" entries
- in /etc/fstab?
-
- -Tony Luck <aegl@ossi.com>
-