Why we still need to learn about how to create floppy disk image?
Floppy disk is only used in the old PC but we still need it for simulation in virtual machine. May be you want to collect old applications that run in old MS-DOS, learn about how old viruses work, install first generation linux, etc.. etc so you still need this image.
I will show how to create floppy image in Linux 14.04 LTS.
Step 1. Create directory in /media
Open your linux terminal, type $cd /media. Type $sudo mkdir floppy. to create the floppy directory.
————————————————————-
darklinux@darklinux:~$ cd /media
darklinux@darklinux:/media$ ls -l
total 4
drwxr-x—+ 4 root root 4096 Jan 2 15:23 darklinux
darklinux@darklinux:/media$ sudo mkdir floppy
[sudo] password for darklinux:
darklinux@darklinux:/media$ ls -l
total 8
drwxr-x—+ 4 root root 4096 Jan 2 15:23 darklinux
drwxr-xr-x 2 root root 4096 Jan 2 15:49 floppy
darklinux@darklinux:/media$
————————————————————-
Step 2. Create floppy disk image.
Open another linux terminal or go back to home directory.
Type $ mkfs.msdos -C myfloppy.img 1440 to create the floppy image.
-myfloppy.img is the image file
-1440 is floppy size (1.44 MB)
Type $ sudo mount -o loop myfloppy.img /media/floppy/ to mount the image with the floppy directory.
Step 3. Copy the files.
Now you can copy any file but the access has be root. For example, I want to copy oakcdrom.sys, then I type $ sudo cp oakcdrom.sys /media/floppy/
Check the result, $ ls -l /media/floppy/
Step 4. Un mount the link and remove the directory
After all done, you can umount the link. Type $ sudo umount /media/floppy.
And remove the directory, type $ sudo rm -rf /media/floppy/.
Step 5. Check the result.
Check the result with Disk Image Mounter.
Now, you are ready to use it with virtual box.
————————————————————-
darklinux@darklinux:~$ mkfs.msdos -C myfloppy.img 1440
mkfs.fat 3.0.26 (2014-03-07)
darklinux@darklinux:~$ sudo mount -o loop myfloppy.img /media/floppy/
[sudo] password for darklinux:
darklinux@darklinux:~$ sudo cp oakcdrom.sys /media/floppy/
darklinux@darklinux:~$ ls -l /media/floppy/
total 41
-rwxr-xr-x 1 root root 41302 Jan 2 15:57 oakcdrom.sys
darklinux@darklinux:~$ sudo umount /media/floppy
darklinux@darklinux:~$ sudo rm -rf /media/floppy/
————————————————————-
Leave a comment