home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / hp / 14378 < prev    next >
Encoding:
Text File  |  1992-12-27  |  1.5 KB  |  48 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!rhbnc!markd
  3. From: markd@csqx.cs.rhbnc.ac.uk
  4. Subject: non-root mount
  5. Message-ID: <1992Dec27.125010.14752@csqx.cs.rhbnc.ac.uk>
  6. Organization: RHBNC
  7. Date: Sun, 27 Dec 1992 12:50:10 GMT
  8. Lines: 38
  9.  
  10.  
  11. Please can anybody tell me what are the right parameters for
  12. mount(2) in this situation:  HP9000/835, HP-UX8.0, HP CD-ROM 
  13. drive on scsi bus?  The man page seems to say:
  14.  
  15. mount( const char *device, const char *directory, int read_only)
  16.  
  17. and I interpreted this as
  18.  
  19. mount( "/dev/dsk/c4d0s2", "/cdrom", 1)
  20.  
  21. but this call returns -1 and  errno = EBUSY
  22.  
  23. When I log in as root and do a similar interactive command:
  24.  
  25. mount /dev/dsk/c4d0s2 /cdrom
  26.  
  27. it works. Since  mount(1m)  presumably uses  mount(2)  I believe that
  28. the man pages are omitting some vital piece of information. I have 
  29. already gone through the procedure for adding  cdfs  support to the 
  30. kernel and it didnt report any errors. The documents that came with
  31. the cd drive say nothing about mount(2) and what they do say about
  32. mount(1m) is inaccurate. I want to be able to allow ordinary users to
  33. insert their own disks and mount them, so I fetched the  usermount
  34. program that was described in a previous posting and adapted it to
  35. run on HP-UX. It runs and successfully does mount and optical disk
  36. using a similar call:
  37.  
  38. mount( "/dev/dsk/c2d0s2", "/optic", 0)
  39.  
  40. Our contact with Usenet is very tenuous and flaky. So if you see this 
  41. and can help, please could you kindly send me a copy direct?
  42.  
  43. UHAH208  <at>  pluto.ulcc.ac.uk
  44.  
  45. Thankyou, Mark
  46.  
  47.  
  48.