I've had a lot of trouble with this one, especially regarding blank "IBM Formatted" disks. The auto-mount utility for floppy disks in gnome had trouble with clean disks. Getting into "Windows" disks isn't remarkably easy either. Many people will say floppies are extinct, and I do agree for the most part, but anyone who has built a Windows system with SATA hard drives prior to Vista's debut will understand why you may still need an occasional FDD.
To mount MS-DOS formatted floppies, you will need to mount them from the Terminal (found in applications>accessories>terminal).
sudo mount -t msdos /dev/fd0 /mnt/floppy
You need sudo to access the device, and the -t option tells the system to look for a msdos filesystem. The /dev/fd0 is your floppy drive, (though it could be /dev/fd1... you can check by browsing the /dev folder if you want to make sure).
The last piece, /mnt/floppy, is the point where you want to mount the device to. You will need to create it manually. There's probably already somewhere you can mount it, but this will probably be easier and quicker.
A couple of notes here:
a) once it's been mounted in your mount-point you cannot use nautilus (EG: right click and copy or remove or past) to modify what's on the disk. For some reason it doesn't play nice. You could probably make custom commands using nautilus' built-in editor, but it will be easier to "rm" "cp" "mv" from within the /mnt/floppy to remove, copy, and move files... respectively.
b) when you are finished, ESPECIALLY if you've written new content to the floppy, make sure you un-mount the drive using this command:
sudo umount /dev/fd0
If you do not unmount it, your changes will not stay. This is because the changes are stored in memory, and written when you umount. That also means that if you filled a disk up, it may take a minute for the light to go out. When it's done, you'll get your prompt back inside the terminal, and the floppy will calm down. It's then safe to remove your disk.
So that's how you get into and modify a windows floppy disk, but what if you want to build a windows-compatible disk from a blank "IBM Formatted" disk? You can use mformat from the mtools suite. It should already be installed on your computer.
The command to format a standard 1.44MB floppy disk is as follows:
sudo mformat -f 1440 A:
The 1440 is the number of bytes, and the A: specifies the floppy drive. It may require a different drive letter, but I'd try that one first. That will format a disk to msdos filesystem using FAT 16. Afterwards, you can access and modify it using the above steps.
I'm still learning myself, so please let me know if I need to change or add something here.



Adv Reply


Bookmarks