home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!spool.mu.edu!agate!doc.ic.ac.uk!rhbnc!markd
- From: markd@csqx.cs.rhbnc.ac.uk
- Subject: non-root mount
- Message-ID: <1992Dec27.124930.14678@csqx.cs.rhbnc.ac.uk>
- Organization: RHBNC
- Date: Sun, 27 Dec 1992 12:49:30 GMT
- Lines: 38
-
-
- Please can anybody tell me what are the right parameters for
- mount(2) in this situation: HP9000/835, HP-UX8.0, HP CD-ROM
- drive on scsi bus? The man page seems to say:
-
- mount( const char *device, const char *directory, int read_only)
-
- and I interpreted this as
-
- mount( "/dev/dsk/c4d0s2", "/cdrom", 1)
-
- but this call returns -1 and errno = EBUSY
-
- When I log in as root and do a similar interactive command:
-
- mount /dev/dsk/c4d0s2 /cdrom
-
- it works. Since mount(1m) presumably uses mount(2) I believe that
- the man pages are omitting some vital piece of information. I have
- already gone through the procedure for adding cdfs support to the
- kernel and it didnt report any errors. The documents that came with
- the cd drive say nothing about mount(2) and what they do say about
- mount(1m) is inaccurate. I want to be able to allow ordinary users to
- insert their own disks and mount them, so I fetched the usermount
- program that was described in a previous posting and adapted it to
- run on HP-UX. It runs and successfully does mount and optical disk
- using a similar call:
-
- mount( "/dev/dsk/c2d0s2", "/optic", 0)
-
- Our contact with Usenet is very tenuous and flaky. So if you see this
- and can help, please could you kindly send me a copy direct?
-
- UHAH208 <at> pluto.ulcc.ac.uk
-
- Thankyou, Mark
-
-
-