lördag 28 mars 2009

Mounting a floppy from Ubuntu 8.10 Live CD

There are no floppy drivers loaded default in the Ubuntu 8.10 Live CD making it difficult using a floppy. Most documentation assumes you can reboot, however using a live cd, that is a problem when nothing is persisted for the next boot.

Here's a way of mounting a floppy on a "normal" pc.
ubuntu@ubuntu:~#sudo -s
root@ubuntu:~#mkdir /mnt/floppy
root@ubuntu:~#modprobe floppy
root@ubuntu:~#mount /dev/fd0 /mnt/floppy
(use the command "exit" here if you want to revert to ubuntu user instead of root)

Now you can use the floppy, it is mounted on /mnt/floppy.

To unmount it:
ubuntu@ubuntu:~#sudo umount /mnt/floppy
or if you are root, just do:
root@ubuntu:~#umount /mnt/floppy

There is an even easier way using the file browser along with the terminal.
First load the floppy drivers:
ubuntu@ubuntu:~#sudo modprobe floppy
Then locate the floppy in the "Places" listing to the left in the file browser (nautilus). It's often called "1.5 MB Media". Just double click it and it will automatically be mounted.
To unmount, right click and select "Unmount".

That's all folks. :)