LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   how do I access my floppy drive? (https://www.linuxquestions.org/questions/fedora-35/how-do-i-access-my-floppy-drive-369477/)

linmix 10-03-2005 03:46 PM

how do I access my floppy drive?
 
I realised I coudn't use the floppy drive unless I was root - I can only mount it as root and when I do only root can write to it.. I checked the group settings and added myself to the 'floppy' group. Now I can mount the floppy with the Gnome Disk Mounter. However, even so I cannot write to the device. I could of course try a 'chown', but I'd like to do it in such a way that other (hypothetical) users would also be able to mount and read/write to floppies.

How do I get acces to the floppy as a regular user?

Ahmed 10-03-2005 03:53 PM

Check the fstab settings for /dev/fd0 (or whatever your floppy's device is known as). I can mount and write to floppies with the normal user. My fstab entry:

Code:

/dev/fd0                /media/floppy          auto    pamconsole,exec,noauto,managed 0 0
-A

linmix 10-03-2005 04:03 PM

Mine is identical:
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0

the same as the dvd and cdrom device, but it won't automount (dvd and cdrom do) and I can't access as normal user.

kurtdriver 10-03-2005 07:03 PM

This might help, user would let any user mount it, users permits it to be unmounted by persons other than the one who mounted it

/dev/fd0 /media/floppy auto,users,pamconsole 0 0


From the Manual: man fstab

It is formatted as a comma separated list of options. It contains at
least the type of mount plus any additional options appropriate to the
filesystem type. For documentation on the available options for non-
nfs file systems, see mount(8). For documentation on all nfs-specific
options have a look at nfs(5). Common for all types of file system are
the options ‘‘noauto’’ (do not mount when "mount -a" is given, e.g., at
boot time), ‘‘user’’ (allow a user to mount), ‘‘owner’’ (allow device
owner to mount), ‘‘pamconsole’’ (allow a user at the console to mount),
and ‘‘comment’’ (e.g., for use by fstab-maintaining programs). The
‘‘owner’’, ‘‘pamconsole’’ and ‘‘comment’’ options are Linux-specific.
For more details, see mount(8).

Happy computing, Kurt

linmix 10-03-2005 11:27 PM

I can't beleive I didn't think of that, especially since I said the same thing to somebod else in a thread just yesterday. I probably didn't because the cdrom and dvd lines don't have it but work fine (why??).

the fstab entry now reads:

/dev/fd0 /media/floppy auto pamconsole,exec,noauto,users,managed 0 0

and it works! Thanks!!

anthonyt 10-21-2005 11:28 PM

I also have problem when using floppy in FC4.
It seems that it is much more convenient to use the floppy drive in FC2!

In command mode logged in as root, I have to specify filesystem like this:
Code:

mount -t vfat /dev/fd0 /media/floppy
But I already specify vfat and added users,rw in /etc/fstab:
Code:

/dev/fd0  /media/floppy  vfat  users,rw,pamconsole,exec,noauto,managed 0 0
For normal user, I can now use User Mount Tool to mount floppy and it won't ask me to specify the filesystem!
But normal user can't use mount command in terminal. The error is mount: only root can do that

Questions:
1. Why Fedora Core 4 don't allow normal user to mount floppy after installation like FC2?
2. How can I specifiy auto but not vfat for the filesystem since floppies may not be DOS format?


Thanks!

linmix 10-22-2005 03:19 PM

if you place auto in your fstab it should be fine. WHen you use the 'mount' command it will follow orders according to what you tell it. If you specify what to mout and where It will do so according to your express instructions on the cli. If you don't tell it where to mount or what to mount it will look for the missing info in fstab.

So, if you want to mount something that's described in fstab you only need to do:

# mount /media/floppy

or

# mount /dev/fd0

This is so because you can also reuse an existing mount point to mount something completely different (e.g. # mount -t ext3 /media/floppy /dev/hdb3) or mount a device to a different location (e.g. # mount -t vfat /dev/fd0 /mnt/folder).

anthonyt 10-23-2005 06:55 AM

I don't why my /etc/fstab will be modified after rebooting the linux!
So what I've modified are reverted back to original:

/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0

Help!

linmix 10-23-2005 12:08 PM

Did you make the changes as root and did you save your fsab??

w6bi 10-23-2005 10:55 PM

If you're ok using the command line, there's a bunch of tools that treats a Linux floppy drive like a DOS floppy; no mounting required.

Collectively they're known as mtools. Most every distro installs them by default. (My FC4 has it).

With them they have:

mdir (example: mdir a: )
mcopy (example: mcopy <filename> a; )
mdel a:<filename>

and a few others.

man mtools gives an overview; man <command> gives more specific info (e.g.: man mcopy)

Enjoy!

anthonyt 10-24-2005 10:24 AM

Of course I save my fstab!

But I found that there is a line at the beginning of the /etc/fstab:
# This file is edited by fstab-sync - see 'man fstab-sync' for details

Quoted from the man page of fstab-sync:
This program serves one major purpose: Update the file systems table file /etc/fstab and create/remove mount points in /media in response to HAL events.

So, what I modified in fstab will be reverted back.


For mtools, I've tried and OK for mcopy/mdel, but failed mdir!
Code:

mdir: File "/media/floppy" not found
Why FC4 make it more complex(only root) to use floppy drive than FC2 in GUI mode?
Thanks!


All times are GMT -5. The time now is 01:45 PM.