Mounting floppy - Suse 11.4 x64

I have just tried to mount my floppy with :

mount -t auto -o uid=1000,gid=100 /dev/fd0 /media/floppy

and get for response :

cannot execute command ‘’ mount -t auto -o uid=1000,gid=100 /dev/fd0 /media/floppy

error 127

What is supposed to be done to get my floppy mounted ?

Thanks.

Use something like that in /etc/fstab:

/dev/fd0         /media/floppy0             auto          rw,user,noauto,exec,utf8         0   0

and mount with

mount /dev/fd0

or better do not mount floppies at all and use the mtools (mdir, mcopy, mdel, etc).

zypper info mtools

and install with

zypper in mtools

with the first scenario I did enter the line in the fstab and then on mounting receive :
linux:/home/two # mount /dev/fd0
mount: /dev/fd0 is not a valid block device

with second scenario I have installed mtools pack, and now which command I have to use for mounting?

Hmm … I just tested before posting and it worked. Actually, I had to try with two floppies because the first one was unreadable. I guess most of our floppies are just dead.

with second scenario I have installed mtools pack, and now which command I have to use for mounting?

You don’t need to mount. That’s the trick. You can access a floppy, list/copy/delete files, etc without mounting it (provided it is a DOS floppy, but I take it it is).
The syntax is explained in the manpages (it’s not complicated):

man mtools
man mdir
man mcopy
man mdel
man mformat
etc

There is an old old old graphical frontend but it’s not available as binary package for any Linux distro anymore: MToolsFM - a graphical frontend for mtools. Bummer. It worked pretty well (I still have it on BSD).

please try again wrote:

>
> olegue;2361938 Wrote:
>> with the first scenario I did enter the line in the fstab and then on
>> mounting receive :
>> linux:/home/two # mount /dev/fd0
>> mount: /dev/fd0 is not a valid block device
>
> Hmm … I just tested before posting and it worked. Actually, I had to
> try with two floppies because the first one was unreadable. I guess most
> of our floppies are just dead.
>
Which kernel version are you using, there was a bug around a while ago where
one had to use something like /dev/fd0u1440 instead of /dev/fd0 to make it
work. I do not have it handy which version exctly was affected (but it was
in the original 11.4 kernel) and when (or if) it was fixed.


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.5 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
ION | 3GB Ram

I vaguely remember that. Apparently it works on 2.6.37.6-0.5. Or did I fix something that I wouldn’t know anymore (?).

please try again wrote:

>
> I vaguely remember that. Apparently it works on 2.6.37.6-0.5. Or did I
> fix something that I wouldn’t know anymore (?).
>
I hope I did not introduce confusion, since my own memory about that is
somewhat fuzzy and I have no floppy drive to test.

@olegue:
But I think replacing /dev/fd0 with /dev/fd0u1440 in fstab is worth a try
since it is simple to do. If it does not help your problem is of course
different and I hope the mtools suggested by please try again will do the
job.


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.5 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
ION | 3GB Ram

/dev/fd0 reads the first block of the floppy to find out whether it’s 1440kB, 720kB or others. That may have been the broken behaviour in some kernel version. (Note: a blank or bad floppy can defeat this autodetection.) /dev/fd0u1440 is for when you know it’s 1440kB.

Hi
When I first started using linux (coyote linux router) I use to format
at 1680 to squeeze on extra data :wink:


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.5-desktop
up 10:23, 4 users, load average: 0.07, 0.10, 0.13
GPU GeForce 8600 GTS Silent - Driver Version: 270.41.19

I did that too … but I don’t remember where and how. I might have been under DOS or Windows with some special formating program.

fdformat /dev/fd0u1680

.../...
-rw-r--r--  1 1001 1001   2492 Oct 11  1993 DRVLOAD.COM
-rw-r--r--  1 1001 1001  71022 May 15  1998 EDIT.COM
-rw-r--r--  1 1001 1001  12780 May 15  1998 EDIT.HLP
-rw-r--r--  1 1001 1001    192 Jul 31  1996 EDIT.INI
-rw-r--r--  1 1001 1001  18816 Mar 26  1998 EMSDSK.EXE
-rw-r--r--  1 1001 1001   6548 Mar 26  1998 EMSTAT.EXE
-rw-r--r--  1 1001 1001  93242 May 15  1998 EXTRACT.EXE
-rw-r--r--  1 1001 1001  14479 Mar  2  1997 FASTKEY.EXE
-rw-r--r--  1 1001 1001   6035 Mar  2  1997 FASTKEYI.EXE
-rw-r--r--  1 1001 1001   1423 Mar 24  1998 FASTKEY.KBD
-rw-r--r--  1 1001 1001  13297 **Oct 26  1990** FDFORMAT.EXE
-rw-r--r--  1 1001 1001   2170 Sep 12  2002 FDREAD.EXE
drw-r--r--  2 1001 1001   4096 Nov 14  2003 FPROT
-rw-r--r--  1 1001 1001 583137 Jun 24  1998 GHOST.EXE
.../...

:frowning:

Thanks to all. MToolsFM did the job. The last questions is how to allow opperations as a user , it allows operations only if I open the application as a root ? and how to format the floppy disk if it is not mounted ?

fdformat /dev/fd0u1440

In fact a floppy must not be mounted to be low level formatted. To put a DOS filesystem on it, sometimes called DOS formatting, you use mformat.