1rmmount(1M)             System Administration Commands             rmmount(1M)
2
3
4

NAME

6       rmmount  -  removable  media mounter for CD-ROM, floppy, Jaz drive, and
7       others
8

SYNOPSIS

10       /usr/sbin/rmmount [-D]
11
12

DESCRIPTION

14       The rmmount utility is a removable media mounter that  is  executed  by
15       volume  management  whenever  a removable medium, such as a CD-ROM or a
16       floppy, is inserted. Removable media is managed by an application or  a
17       volume manager. rmmount can also be called by using volrmmount(1).
18
19
20       Upon  insertion of a medium and following invocation of the volcheck(1)
21       command, rmmount determines what type of file system  (if  any)  is  on
22       that  medium. If a file system is present, rmmount mounts the file sys‐
23       tem in one of the locations listed below.
24
25
26       For a diskette (floppy):
27
28       /floppy/floppy0           symbolic link  to  mounted  floppy  in  local
29                                 floppy drive
30
31
32       /floppy/floppy_name       mounted named floppy
33
34
35       /floppy/unnamed_floppy    mounted unnamed floppy
36
37
38
39       For a CD-ROM or a DVD-ROM:
40
41       /cdrom/cdrom0
42
43           symbolic link to mounted CD-ROM in local CD-ROM drive
44
45
46       /cdrom/CD-ROM_name
47
48           mounted named CD-ROM
49
50
51       /cdrom/CD-ROM_name/partition
52
53           mounted named CD-ROM with partitioned file system
54
55
56       /cdrom/unnamed_cdrom
57
58           mounted unnamed CD-ROM
59
60
61
62       For a Zip drive:
63
64       /rmdisk/zip0                  symbolic  link  to  mounted Zip medium in
65                                     local Zip drive
66
67
68       /rmdisk/Zip_name              mounted named Zip medium
69
70
71       /rmdisk/Zip_name/partition    mounted named Zip medium with partitioned
72                                     file system
73
74
75       /rmdisk/unnamed_zip           mounted unnamed Zip medium
76
77
78
79       For a Jaz drive:
80
81       /rmdisk/jaz0                  symbolic  link  to  mounted Jaz medium in
82                                     local Jaz drive
83
84
85       /rmdisk/Jaz_name              mounted named Jaz medium
86
87
88       /rmdisk/Jaz_name/partition    mounted named Jaz medium with partitioned
89                                     file system
90
91
92       /rmdisk/unnamed_Jaz           mounted unnamed Jaz medium
93
94
95
96       For a generic "rmdisk" drive:
97
98       /rmdisk/rmdisk0
99
100           symbolic link to mounted removable medium in local removable medium
101           drive
102
103
104       /rmdisk/rmdisk_name
105
106           mounted named removable medium
107
108
109       /rmdisk/rmdisk_name/partition
110
111           mounted named removable medium with partitioned file system
112
113
114       /rmdisk/unnamed_rmdisk
115
116           mounted unnamed removable medium
117
118
119
120       If the media is read-only (for example,  a  CD-ROM  or  a  floppy  with
121       write-protect tab set), the file system is mounted read-only.
122
123
124       If  a file system is not identified, rmmount does not mount a file sys‐
125       tem. See the  for more information on the location of  CD-ROM,  floppy,
126       and other media without file systems.
127
128
129       If  a  file  system type has been determined, it is then checked to see
130       that it is "clean." If  the  file  system  is  "dirty,"  fsck  -p  (see
131       fsck(1M))  is  run  in  an attempt to clean it. If fsck fails, the file
132       system is mounted read-only.
133
134
135       After the mount is complete, "actions" associated with the  media  type
136       are  executed.  These  actions allow for the notification to other pro‐
137       grams that new media are available.
138
139
140       Actions are executed in the order in which they appear in the  configu‐
141       ration  file.  The  action  function  can  return  either 1 or 0. If it
142       returns 0, no further actions will be executed. This allows  the  func‐
143       tion to control which applications are executed.
144
145
146       In  order  to  execute  an action, rmmount performs a dlopen(3C) on the
147       shared object and calls the action function defined within it. The def‐
148       inition    of    the   interface   to   actions   can   be   found   in
149       /usr/include/rmmount.h.
150
151
152       File systems mounted by rmmount are always mounted with the nosuid flag
153       set, thereby disabling setuid programs and access to block or character
154       devices in that file system. Upon ejection,  rmmount  unmounts  mounted
155       file  systems and executes actions associated with the media type. If a
156       file system is "busy" (that is, it contains the current working  direc‐
157       tory of a live process), the ejection will fail.
158

OPTIONS

160       -D    Turn on the debugging output from the rmmount dprintf calls.
161
162

FILES

164       /usr/lib/rmmount/*.so.1    shared objects used by rmmount.
165
166

ATTRIBUTES

168       See attributes(5) for descriptions of the following attributes:
169
170
171
172
173       ┌─────────────────────────────┬─────────────────────────────┐
174       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
175       ├─────────────────────────────┼─────────────────────────────┤
176       │Availability                 │SUNWvolu                     │
177       └─────────────────────────────┴─────────────────────────────┘
178

SEE ALSO

180       volcheck(1), volrmmount(1), fsck(1M), dlopen(3C), attributes(5)
181
182
183
184
185
186
187SunOS 5.11                        1 Mar 2007                       rmmount(1M)
Impressum