General discussion

Locked

to access files from floppy

By zawlin ·
Dear sir,
i am linux beginner.i am using linux
9.0. when i right clik floppy icon on desktop
and click mount command. it shows " could not
mount device. The reported error was mont:you
must specify the filesystem type.
pls helpme..
thanks for ur help.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

to access files from floppy

by dmiles In reply to to access files from flop ...

Allowing Users to Mount the Floppy Drive
Most Linux distributions do not allow users to mount the floppy drive for security reasons. Root access is usually required to do so. However, someone with root access can allow users to mountthe floppy using the /etc/fstab configuration file.

Example /etc/fstab without user privileges to mount the floppy:

/dev/hda1 / ext2 defaults 1 1
/dev/hda5 swap swap defaults 0 0
/dev/fd0 /mnt/floppy ext2 noauto 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,ro 0 0
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
Example /etc/fstab with user privileges to mount the floppy:

/dev/hda1 / ext2 defaults 1 1
/dev/hda5 swap swap defaults 0 0
/dev/fd0 /mnt/floppy ext2 noauto,users 00
/dev/cdrom /mnt/cdrom iso9660 noauto,ro 0 0
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0


Notice the users tag in the fourth column of the line beginning with /dev/fd0. This allows anyone in the users group to mount the floppy using the ext2 filesystem with the command mount /mnt/floppy. If you want allow users to mount the floppy as other filesystem, you can add lines to the /etc/fstab and give it a different filetype and mount point (/mnt/floppy). Thus, if you added the line

/dev/fd0 /mnt/msfloppy vfat noauto,users 0 0


you can use the command mount /mnt/msfloppy to mount a MS-DOS floppy.
You can also add individual user names to the end of the fourth column to give them only certain users access.
What's Related
Using Your CD-ROM Drive

Collapse -

to access files from floppy

by magellanix In reply to to access files from flop ...

Just an addition:

Change this line:

/dev/fd0 /mnt/floppy ext2 noauto 0 0

to read

/dev/fd0 /mnt/floppy auto noauto 0 0

this one should auto detect what file-system the floppy disk has and so you won't have to enter it all the time :-)

Back to Linux Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums