I have a Toshiba USB floppy drive that I need to use under Ubuntu. When I connect it, and insert a floppy disk in it, I do not see anything mounted under Ubuntu 10.10.
I was suspecting the hardware and/or the floppy disk to be defective, and so I tested the floppy disk as well as the floppy drive itself under Windows XP, and everything was just fine.
I was able to find the following instructions:
Add the following line to the /etc/modules file:
floppy
Enter the following shell commands:
mkdir /media/floppy
mount -t vfat /dev/sdc /media/floppy -o uid=1000
This will mount the floppy, but I would like this to happen automatically, so when I connect the drive to the USB port, it automatically mounts the floppy.
How can I make this work? Or does Ubuntu only work with internal Floppy drives?
The following procedure worked instantly on Ubuntu 12.04:
REMARK:
The
df
command shows that /dev/sdd show that d the last assigned drive in use. I need to know this to find the next available one, which is used in the subsequentsudo mount ...
command. In my case, the next drive will be /dev/sde .You will need to determine the correct drive for your own system. For example, you might have /dev/sda, or sdb, or sdc.
So, first, to see the drive information:
df
Next, run
mkdir
andmount
:For automatic execution at boot time, I normally use Perl scripts, which detect and adapt automatically and give stable names to the partitions.
I do not need this at this point of time for floppies, and therefore I didn't optimize it. Perhaps the command "
mount ...
" is not optimal....)A more general but a bit primitive solution would be to create a bash/batch file with multiple lines as above with
sudo...
, with the several probable possible variants/dev/sd...
on the specific PC.Then there might be a call of this file in the settings of "Startup Applications". I did not test this.
In addition, this does not deal with the aspect of removing or inserting a different floppy disk. This could be done in some automatic or at least semi-automatic manner....
I do not know if the way above is optimal. I just wanted to add helpful information, after having settled my own problem with the preceding answers.
On my older systems with built-in floppy drives, the drive is designated as /dev/fd0. Unfortunately, later releases of Ubuntu do not automatically mount these drives, nor do they create a directory in /media for it.
To mount my drive, I first have to create a directory to mount it in,
/media/floppy
. Then I can mount it usingsudo mount /dev/fd0 /media/floppy
.Make sure there is a floppy disk in the drive or else there is nothing to mount! Don't
sudo mount
or else you can only access with root privileges.First, to see the drive information, run
df
.On my system with one HD the floppy appears as
sdb
(sda
was the hard drive)Then to mount:
e.g:
I wrote a little script that auto-detects the drive id when you run it, takes some of the donkey work out. This isn't perfect because it is possible it will detect the wrong thing (note the comments), but it seems to work most of the time for me:
To do a clean unmount:
If the floppy is not showing up in the mount list there might be issues with Ubuntu detecting floppy drives. I think we need more information regarding the problem before we can theorize about the issue and it's resolution. Since this is a USB device, you can use the lsusb logs to see if the device has been detected by Ubuntu. A good place to look for dealing hardware detection problems would be - https://wiki.ubuntu.com/DebuggingHardwareDetection
You're going to need to leave the drive plugged in - Ubuntu will happily reassign /dev/sdc or /dev/sdd to the drive next time you plug it in, as that's what happens to mine.
Since the drive won't have a file system on it, you may not be able to get a UUID to uniquely identify the filesystem.
As shown at http://ubuntuforums.org/showthread.php?t=1641104 the easiest way to mount it is: