home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sun / admin / 5038 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.6 KB  |  50 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!ossi!aegl
  3. From: aegl@ossi.com (Tony Luck)
  4. Subject: How to use loopback mount on 4.1.2?
  5. Message-ID: <aegl.712339982@ossi.com>
  6. Sender: news@ossi.com (OSSI Newsstand)
  7. Nntp-Posting-Host: nym
  8. Organization: Open Systems Solutions Inc.
  9. Date: Tue, 28 Jul 1992 16:13:02 GMT
  10. Lines: 38
  11.  
  12. We have a 4/690 running 4.1.2, and I would like to use a "loopback mount" to
  13. make part of the filesystem appear in more than one place (a symbolic link
  14. will not work for this particular application ... it expects "pwd" to return
  15. a certain string ... don't ask why!).
  16.  
  17. So, I configured a new kernel with "options LOFS".  Then (after rebooting on
  18. the new kernel) I added these lines to the end of /etc/fstab:
  19.  
  20.     # loopback mounts
  21.     /rara/2/DV      /DV             lo      rw      0       0
  22.  
  23. and typed:
  24.  
  25.     # mount /DV
  26.  
  27. ... and mount said:
  28.  
  29.     mount: unknown filesystem type: lo
  30.     mount: giving up on:
  31.        /DV
  32.  
  33. I tried saying "lofs" instead of "lo" (in case the fstab(5) was wrong, but it
  34. didn't help).
  35.  
  36. So, then I read "mount(2)", and wrote a program that successfully did the
  37. loopback mount.
  38.  
  39. In a burst of inspiration I did a "find" ... and discovered /usr/etc/lo_mount,
  40. which will also do the mount if given the right arguments (no man page, so you
  41. have to guess a bit) ... but it doesn't add an entry to /etc/mtab ... so
  42. "mount" and "df" don't report it as a mount point.  I'll also have to add
  43. more junk to /etc/rc.local to get the mount done on every reboot.
  44.  
  45.  
  46. So, finally, here is my question.  Why doesn't /etc/mount grok "lo" entries
  47. in /etc/fstab?
  48.  
  49. -Tony Luck <aegl@ossi.com>
  50.