Learn to Code via Tutorials on Repl.it!

← Back to all posts
Create blank floppy disk image
GaneshaSharma (40)

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

Linux:

fallocate -l 1474560 myimage.vfd

Linux & other Unix-like systems:

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

Windows:

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.

Linux:

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

Windows:

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
Commentshotnewtop
CodeLongAndPros (1538)

Instead of catting or fallocating, you can just do:

mkfs.msdos -C /path/imagefile.img 1440
GaneshaSharma (40)

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 (1538)

@GaneshaSharma

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.

Also:
Crosh is not a terminal.

Did you mean: Crostini?

GaneshaSharma (40)

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

CodeLongAndPros (1538)

@GaneshaSharma

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.

GaneshaSharma (40)

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

CodeLongAndPros (1538)

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

CodeLongAndPros (1538)

@GaneshaSharma Logout the current user, with no output.

GaneshaSharma (40)

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

CodeLongAndPros (1538)

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

eekboi (282)

@Ganesha1 Don't impersonate people.

Ganesha1 (33)

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