Usually, you won’t create a disk image; in fact most of the times you would download it and then mount it somewhere or burn it to a CD/DVD.
However, there are cases in which you could need to create a disk image of a given size, format it and then mount it as a normal device. This happens for example when you want/need to set up a swap file instead of a swap partition or if you want to get a fake floppy disk drive when you don’t even have the driver.
So, let’s see how can you create, format and mount a floppy disk1 fake image:
Note: This article is part of my OS Install Experiences series.
OK, so let's start with something simple: Debian. Simple in the sense that there probably won't be too many surprises for me as a Debian developer (or for most readers of Planet Debian). For other people this might be interesting, though, and some facts are probably interesting to one or the other experienced Debian user/developer, too...