Penguin
Annotated edit history of fdmount(1) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 fdmount
2 !!!fdmount
3 Name
4 Note
5 Description
6 Options
7 Security
8 Daemon mode
9 Diagnostics
10 Bugs
11 See Also
12 ----
13 !!Name
14
15
16 fdmount - Floppy disk mount utility
17 !!Note
18
19
20 This manpage has been automatically generated from fdutils's
21 texinfo documentation. However, this process is only
22 approximative, and some items, such as crossreferences,
23 footnotes and indices are lost in this translation process.
24 Indeed, these items have no appropriate representation in
25 the manpage format. Moreover, only the items specific to
26 each command have been translated, and the general
27 information about fdutils has been dropped in the manpage
28 version. Thus I strongly advise you to use the original
29 texinfo doc.
30
31
32 *
33
34
35 To generate a printable copy from the texinfo doc, run the
36 following commands:
37
38
39 __ ./configure; make dvi; dvips fdutils.dvi
40 __
41
42
43 *
44
45
46 To generate a html copy, run:
47
48
49 __ ./configure; make html
50 __A premade html can be found at: `http://www.tux.org/pub/knaff/fdutils'
51
52
53 *
54
55
56 To generate an info copy (browsable using emacs' info mode),
57 run:
58
59
60 __ ./configure; make info
61 __
62
63
64 The texinfo doc looks most pretty when printed or as html.
65 Indeed, in the info version certain examples are difficult
66 to read due to the quoting conventions used in
67 info.
68 !!Description
69
70
71 fdmount [[-l] [[--list] [[-d] [[--daemon] [[--detach]
72 [[-i ''interval''] [[--interval ''interval''] [[-o ''mount-options''
73
74
75 ]
76 [[-r] [[-readonly] [[-s] [[--sync] [[--nosync] [[--nodev]
77 [[--nosuid] [[--noexec] [[-f] [[--force] [[-h] [[--help]
78 [[''drivename''] [[''mountpoint''
79
80
81 ]
82 fdumount [[-f] [[--force] [[''drivename''
83
84
85 ]
86 fdlist
87 fdmountd [[-i ''interval''] [[--interval ''interval''
88
89
90 ] [[-r]
91 [[-readonly] [[-s] [[--sync] [[--nosync] [[--nodev]
92 [[--nosuid] [[--noexec] [[--help] [[''drivename''] [[''mountpoint''
93
94
95 ]]
96
97
98 The fdmount program mounts a floppy disk in the
99 specified drive. It tries to figure out the exact format and
100 filesystem type of the disk from data in the disk's boot
101 sector or super block and the auto-detected track
102 layout.
103
104
105 Currently, fdmount supports the filesystems minix,
106 ext, ext2, xia, and
107 msdos, and includes special support for disks
108 formatted by the 2M utility for
109 MS-DOS.
110
111
112 It also checks whether the disk is write protected, in which
113 case it is mounted read-only.
114
115
116 The symbolic ''drivename'' is (currently) one of
117 `fd[[0-7]', corresponding to the special device
118 files `/dev/fd[[0-7]'. If ''drivename'' is not
119 specified, `fd0' is assumed.
120
121
122 The disk is mounted on the directory ''mountpoint'', if
123 specified, or on `/fd[[0-7]'. In either case, the
124 mount point must be an existing, writable
125 directory.
126
127
128 __Due to a bug in the floppy driver (?), the polling
129 interval (-i flag) must be longer than the spindown offset.
130 Thus you need to do (for example) floppycontrol --spindown
131 99 before starting fdmountd in daemon mode__
132 !!Options
133
134
135 -l ''--list''
136
137
138 List all known drives with their symbolic name, type, and
139 mount status.
140
141
142 -d ''--daemon''
143
144
145 Run in daemon mode (see below).
146
147
148 --detach
149
150
151 Runs daemon in background, and detaches it from its tty.
152 Messages produced after the fork are logged to
153 syslog.
154
155
156 -p ''file''
157
158
159 --pidfile ''file''
160
161
162 Dumps the process id of the daemon to ''file''. This
163 makes killing the daemon easier: kill -9 `cat
164 ''file''`
165
166
167 -i ''interval''
168
169
170 --interval ''interval''
171
172
173 Set the polling interval for daemon mode. The unit for
174 ''interval'' is 0.1 seconds, the default value is 10
175 (i.e. 1 second).
176
177
178 -o ''options''
179
180
181 --options ''options''
182
183
184 Sets filesystem-specific options. So far, these are only
185 available for DOS and Ext2 disks. The following DOS options
186 are supported: check, conv,
187 dotsOK, debug, fat,
188 quiet, blocksize. The following Ext2
189 options are supported: check, errors,
190 grpid, bsdgroups, nogrpid,
191 sysvgroups, bsddf, minixdf,
192 resgid, debug, nocheck. When
193 running as a daemon, options not applying to the disk that
194 is inserted (because of its filesystem type) are not passed
195 to mount.
196
197
198 -r ''--readonly''
199
200
201 Mount the disk read-only. This is automatically assumed if
202 the disk is write protected.
203
204
205 -s ''--sync''
206
207
208 Mount with the SYNC option.
209
210
211 --nosync
212
213
214 Mounts without the SYNC option, even when running
215 as daemon.
216
217
218 --nodev
219
220
221 Mount with the NODEV option. Ignored for
222 msdos filesystems, otherwise always set for
223 non-root users.
224
225
226 --nosuid
227
228
229 Mount with the NOSUID option. Ignored for
230 msdos filesystems, otherwise always set for
231 non-root users.
232
233
234 --noexec
235
236
237 Mount with the NOEXEC option.
238
239
240 -f ''--force''
241
242
243 Attempt a mount or unmount operation even
244 `/etc/mtab' says that the drive is already mounted,
245 or not mounted, respectively. This option is useful if
246 `/etc/mtab' got out of sync with the actual state
247 for some reason.
248
249
250 -h ''--help''
251
252
253 Show short parameter description
254 !!Security
255
256
257 When mounting on the default mount point, the mount points'
258 owner is set to the current user, and the access flags
259 according to the user's umask. For a specified mountpoint,
260 owner and permissions are left unchanged. Default mount
261 points are called /fd0, /fd1, ... ,
262 /fd7.
263
264
265 The user running fdmount must have read access to the floppy
266 device for read only mounts, and read/write access for
267 read/write mounts.
268
269
270 Fdmount can be run suid root, allowing users to mount floppy
271 disks. The following restrictions are placed upon non-root
272 users:
273
274
275 *
276
277
278 If a mountpoint is specified explicitly, it must be owned by
279 the user.
280
281
282 *
283
284
285 A user may only unmount a disk if the mount point is owned
286 by the user, or if it the disk has been mounted by the same
287 user.
288
289
290 *
291
292
293 Non-msdos disks are automatically mounted with the
294 nodev and nosuid flags set.
295
296
297 However, __do not rely on fdmount being secure at the
298 moment__.
299 !!Daemon mode
300
301
302 In daemon mode, the specified drive is periodically checked
303 and if a disk is inserted, it is automatically
304 mounted.
305
306
307 When the disk is removed, it is automatically unmounted.
308 However, it is recommended to unmount the disk manually
309 ''before'' removing it. In order to limit corruption,
310 disks are mounted with the SYNC option when running in
311 daemon mode, unless the --nosync flag is
312 given.
313
314
315 Note that this mode has some potential
316 drawbacks:
317
318
319 *
320
321
322 Some floppy drives have to move the drive head physically in
323 order to reset the disk change signal. It is strongly
324 recommended not to use daemon mode with these drives. See
325 section floppycontrol for details.
326
327
328 *
329
330
331 If a disk does not contain a filesystem (e.g. a tar
332 archive), the mount attempt may slow down initial
333 access.
334
335
336 *
337
338
339 As fdmount cannot identify the user trying to use the disk
340 drive, there is no way to protect privacy. Disks are always
341 mounted with public access permissions set.
342 !!Diagnostics
343
344
345 error opening device ''name''
346
347
348 error reading boot/super block
349
350
351 fdmount failed to read the first 1K of the disk. The disk
352 might be damaged, unformatted, or it may have a format wich
353 is unsupported by the FDC or the Linux kernel.
354
355
356 unknown filesystem type
357
358
359 No magic number of any of the supported filesystems (see
360 above) could be identified.
361
362
363 sorry, cant figure out format (''fs''
364 filesystem)
365
366
367 The size of the filesystem on the disk is incompatible with
368 the track layout detected by the kernel and an integer
369 number of tracks. This may occur if the filesystem uses only
370 part of the disk, or the track layout was detected
371 incorrectly by the kernel.
372
373
374 failed to mount ''fs
375 ''K-disk
376
377
378 The actual mount system call failed.
379
380
381 failed to unmount
382
383
384 The actual unmount system call failed.
385
386
387 cannot create lock file /etc/mtab~
388
389
390 If `/etc/mtab~' exists, you should probably delete
391 it. Otherwise, check permissions.
392
393
394 Cant access ''mountpoint''
395
396
397 Most probably, the default or specified mount point does not
398 exist. Use mkdir.
399
400
401 ''mountpoint'' is not a directory
402
403
404 The mountpoint is not a directory.
405
406
407 not owner of ''mountpoint''
408
409
410 Non-root users must own the directory specified as mount
411 point. (This does not apply for the default mount points,
412 /fd[[0-3].)
413
414
415 No write permission to
416 ''mountpoint''
417
418
419 Non-root users must have write permission on the mount point
420 directory.
421
422
423 Not owner of mounted directory:
424 UID=''uid''
425
426
427 Non-root users cannot unmount if the mount point is owned
428 (i.e. the disk was mounted) by another user.
429
430
431 invalid drive name
432
433
434 Valid drive names are `fd0', `fd1',
435 etc.
436
437
438 drive ''name'' does not
439 exist
440
441
442 The drive does not exist physically, is unknown to the Linux
443 kernel, or is an unknown type.
444
445
446 Drive ''name'' is mounted
447 already
448
449
450 Trying to mount a drive which appears to be mounted already.
451 Use the --force option if you think this is
452 wrong.
453
454
455 Drive ''name'' is not
456 mounted
457
458
459 Trying to unmount a drive which does not appear to be
460 mounted. Use the --force option if you think this
461 is wrong.
462
463
464 ioctl(...) failed
465
466
467 If this occurs with the FDGETDRVTYP or
468 FDGETDRVSTAT, ioctl's you should probably update
469 your Linux kernel.
470
471
472 mounted ''fs size''-disk
473 (''options'')
474
475
476 Success message.
477 !!Bugs
478
479
480 *
481
482
483 Fdmount should be more flexible about drive names and
484 default mount points (currently hard coded).
485
486
487 *
488
489
490 Probably not very secure yet (when running suid root).
491 Untested with ext and xia filesystems.
492
493
494 *
495
496
497 Can't specify filesystem type and disk layout
498 explicitly.
499
500
501 *
502
503
504 In daemon mode, the drive light stays on all the
505 time.
506
507
508 *
509
510
511 Some newer filesystem types, such as vfat are not yet
512 supported.
513 !!See Also
514
515
516 Fdutils' texinfo doc
517 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.