LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-03-2005, 04:46 PM   #1
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
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?
 
Old 10-03-2005, 04:53 PM   #2
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386

Rep: Reputation: 41
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
 
Old 10-03-2005, 05:03 PM   #3
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
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.
 
Old 10-03-2005, 08:03 PM   #4
kurtdriver
Member
 
Registered: May 2005
Location: Vancouver, Canada
Distribution: Fedora 18, Puppy Linux, various others
Posts: 107

Rep: Reputation: 15
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
 
Old 10-04-2005, 12:27 AM   #5
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
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!!

Last edited by linmix; 10-04-2005 at 12:30 AM.
 
Old 10-22-2005, 12:28 AM   #6
anthonyt
LQ Newbie
 
Registered: Oct 2005
Posts: 8

Rep: Reputation: 0
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!
 
Old 10-22-2005, 04:19 PM   #7
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
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).
 
Old 10-23-2005, 07:55 AM   #8
anthonyt
LQ Newbie
 
Registered: Oct 2005
Posts: 8

Rep: Reputation: 0
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!
 
Old 10-23-2005, 01:08 PM   #9
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
Did you make the changes as root and did you save your fsab??
 
Old 10-23-2005, 11:55 PM   #10
w6bi
Member
 
Registered: Feb 2003
Location: Simi Valley, Calif
Distribution: Fedora 7
Posts: 69

Rep: Reputation: 15
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!
 
Old 10-24-2005, 11:24 AM   #11
anthonyt
LQ Newbie
 
Registered: Oct 2005
Posts: 8

Rep: Reputation: 0
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot access the floppy drive tkpmep Linux - Newbie 5 10-19-2005 07:21 AM
Can't Access Floppy Drive from SUSE 9.3 AvatarofVirgo Linux - General 7 07-23-2005 09:45 PM
how to access Floppy drive hetzme Linux - Hardware 6 07-13-2005 10:03 PM
how can i access the floppy drive? kublador Linux - General 3 02-22-2003 09:30 AM
Can't access floppy drive Liam Linux - General 2 06-03-2001 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration