Learn to Code via Tutorials on Repl.it!

← Back to all posts
Create blank floppy disk image

Credits (important if you are a lawyer)

This is a Stack Exchange post. Visit it at https://superuser.com/a/342436/1141594

End credits

Well, I am sorry that I am posting non-programming stuff on repl.it, but I am tech-savvy.

The image is not something funny like a jpeg or png.

Now, here is the tutorial:

Create a floppy disk image


fallocate -l 1474560 myimage.vfd

Linux & other Unix-like systems:

head -c 1474560 /dev/zero > myimage.vfd


fsutil file createnew myimage.vfd 1474560

You'll have an empty "1.44 MB" image. Attach it to VirtualBox and format through "My Computer" in the guest.

If you want to format the image on the host system or to copy files into it, use mkfs.vfat + mount -o loop on Linux, and VFD on Windows. Note that official build of VFD "works only on 32 bit systems" as of version 2.1, but there are alternative builds available.


mkfs.vfat myimage.vfd
sudo mount -o loop myimage.vfd /mnt
sudo umount /mnt


vfd open 0: myimage.vfd
vfd format 0:
vfd close 0:

Windows, create, format and mount in one command:

vfd open 0: myimage.vfd /new /1.44
CodeLongAndPros (1624)

Instead of catting or fallocating, you can just do:

mkfs.msdos -C /path/imagefile.img 1440

If you can't create them just download them at https://github.com/Ganesha2282882/Floppies @CodeLongAndPros. Tip: In Chrome OS just press Ctrl Alt T and it will open crosh. Crosh is a terminal.

CodeLongAndPros (1624)


I was not saying that I can't make one.

I'm just saying you can get a FAT on it and make in one fell swoop.

Crosh is not a terminal.

Did you mean: Crostini?


@CodeLongAndPros Yeah. I think it's called Crosh back in 2018 or something like that or It's developer mode specific.

CodeLongAndPros (1624)


Crosh has NO UNIX commands.

It is a debug shell.

For networking and such.

Do you have a chromebook?

Please, try it.

There's not even a filesystem in Crosh.


Oh, sorry, I did not know that but I don't have a Chrome book. @CodeLongAndPros

CodeLongAndPros (1624)

@GaneshaSharma There is something called Crositni that gives you a Debain Buster box in a Vm. That's UNIX.


OK, enough talking. @CodeLongAndPros


What does that do? @CodeLongAndPros


logout -q @CodeLongAndPros

CodeLongAndPros (1624)

@GaneshaSharma Logout the current user, with no output.


How did you know that I am on Linux? @CodeLongAndPros

CodeLongAndPros (1624)

@GaneshaSharma Well, you have Linux and UNIX instructions first.

eekboi (285)

@Ganesha1 Don't impersonate people.

Ganesha1 (39)

@eekboi my acc is older than his, he's copying me.