LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Can 't get floppy drive to be accessible. (https://www.linuxquestions.org/questions/linux-hardware-18/can-t-get-floppy-drive-to-be-accessible-894322/)

littlejoe5 07-28-2011 11:07 AM

Can 't get floppy drive to be accessible.
 
SOLVED: See bottom of this post after this line: -=-=-==-=---=-=-=-

The machine will boot from floppy, so I'm pretty sure it's all connected right.

fstab line: /dev/fd0 /media/floppy auto user,rw,noauto 0 0
$ dmesg | grep fd0
[ 0.825147] Floppy drive(s): fd0 is 1.44M



$ mount /media/floppy just returns me to the prompt (no error) but it doesn't mount, umount shows this:
$ umount /media/floppy
umount: /media/floppy is not mounted (according to mtab)

I can mount it with udisks when it has a disk in it:
$ udisks --mount /dev/fd0
Mounted /org/freedesktop/UDisks/devices/fd0 at /media/floppy

Once it is mounted that way, I can access it as user:
$ ls /media/floppy
ATTRIB.EXE CONFIG.SYS FDISK.EXE MOUSE.SYS SHARE.EXE
AUTOEXEC.BAT D.COM FIND.EXE MSCDEX.EXE SYS.COM
C.BAT DELTREE.EXE FORMAT.COM MSDOS.SYS TREE.COM
CD1.SYS DOSKEY.COM HIMEM.SYS RESTORE.EXE UNDELETE.EXE
CD2.SYS DRVSPACE.BIN IO.SYS SCANDISK.EXE UNDELETE.INI
CD3.SYS EDIT.EXE LABEL.EXE SCANDISK.INI UNFORMAT.COM
CD4.SYS EDIT.HLP MEM.EXE SETUP.EXE XCOPY.EXE
CHKDSK.EXE EDIT.INI MOUSE.COM SETUP.MSG
COMMAND.COM EMM386.EXE MOUSE.INI SETVER.EXE

or as root in the same way. write to and read from it either as root or as user. and I can unmount it as either root or as user. What I haven't been able to do yet is make it so that when I put a disk in it and attempt to mount it without udisk, that it will mount. In other words: to make it readily accesible as user.

I wonder if there is something that I need to put into the udev system? or what?

=-=-=-=-===

bigrigdriver: "remove the noauto parameter, then try the mount command again."
mark_alfred: "....type identified as "vfat,msdos"
John VV: 'you MUST run "modprobe "'

Well, I have just tried each of your remedies and noneof them work. The most promising (I thought) was yours, John VV. But it seemed to do nothing. Then I tried ' modprobe -l fl* ', and discovered (I think) that there is no module relating to the floppy.

Sounds like I need a module for the floppy, or an entry in udev, or ???

What I have done for now is working. It seems to me to be a crude work around, but it works: I have added a "custom application launcher to the panel to mount, and another one to unmount the floppy using udisks:

I right clicked on the panel and chose "add to panel" in each case and then filled in the blanks, and clicked on the icon, and chose a more appropriate one. The command to mount is" udisks --mount /dev/fd0 " and the command to unmount is " udisks --unmount /dev/fd0 ". As I say it works, and until I can find a better way, it will do. Thanks for your input. I'll mark this as SOLVED. someone else might find a better solution, but if not, they might find mine useful.

bigrigdriver 07-28-2011 11:30 AM

Quote:

fstab line: /dev/fd0 /media/floppy auto user,rw,noauto 0 0
You seem to have a conflicting configuration in your fstab. First, the filesystem type is set to "auto" (for auto detection of the filesystem type), but the mount parameters clearly state "noauto".

Edit fstab and remove the noauto parameter, then try the mount command again.

mark_alfred 07-28-2011 01:02 PM

My fstab line for floppies is:
Code:

#<file system>        <mount point>        <type>        <options>        <dump>        <pass>
/dev/fd0        /media/floppy0        vfat,msdos        rw,user,noauto        0        0

Your fstab line seems similar, but you don't have the type identified, whereas mine has the type identified as "vfat,msdos". Perhaps if you add the type to your fstab entry, you'll have some luck.

In looking at bigrigdriver's post, perhaps changing the first "auto" that he/she mentioned into "vfat,msdos" would work.

John VV 07-28-2011 05:56 PM

that i not surprising at all .
Seeing as 3.5 floppys are no longer manufactured .
Seeing as you can not but a new computer with a floppy drive anymore.
That option is now deprecated .
floppys are NO LONGER auto tested for and auto mounted by the kernel
-- that is the default behavior of all modern linux kernels ---

you MUST run "modprobe "

-- very important !!!--
remove all entries in fstab regarding fd0

reboot

run
Code:

su -
modprobe floppy

then pop in a 3.5 in to the slot you should here it go zzzi zzsizz

if an icon does not show up ion the desktop or gnome dose not auto open the floppy folder then try mounting it
"mount /media/floppy"

knudfl 07-28-2011 06:05 PM

The current versions ( Mint, Ubuntu ) aren't the worst with floppy.

In Ubuntu 8.10 everything was missing :

http://www.linuxquestions.org/questi...-drive-681634/
→ → Posts # 2, # 5.


All times are GMT -5. The time now is 12:19 PM.