Page 1 of 1

mkfs.msdos hda.img not working

Posted: Sun Feb 11, 2018 10:25 am
by timbatty
So I'm trying to follow the instructions on setting up qemu and allowing kolibrios to use a virtual hard drive image. When I enter the instruction mkfs.msdos hda.img , linux returns the result bash: mkfs.msdos: command not found. I don't know how to work around this, because I'm just following the instructions line by line. Any help would be appreciated.

Re: mkfs.msdos hda.img not working

Posted: Mon Feb 12, 2018 2:29 am
by dunkaist
mkfs.msdos is a part of dosfstools package. Install it using package manager of your distribution.

Re: mkfs.msdos hda.img not working

Posted: Mon Feb 12, 2018 6:19 am
by timbatty
So I tried to install this using synaptic. I found that dosfstools was already installed. So I uninstalled it and reinstalled it. I'm still getting the same error... bash: mkfs.msdos: command not found. How can I look at the dosfstools help file to see how the command should be configured?

Re: mkfs.msdos hda.img not working

Posted: Mon Feb 12, 2018 7:49 am
by JohnXenox
Hello, timbatty! :D

If you need to format the image *.img in msdos file system, type in terminal:

Code: Select all

## formatting the image in fat12 file system.
mkfs.vfat -F 12 name.img

Code: Select all

## formatting the image in fat16 file system.
mkfs.vfat -F 16 name.img

Code: Select all

## formatting the image in fat32 file system.
mkfs.vfat -F 32 name.img
For more info, see: mkfs, mkfs.msdos or mkfs.vfat.

To see info in terminal, type:

Code: Select all

man mkfs.vfat
* Why the ā€œvā€ in mkfs.vfat.

Re: mkfs.msdos hda.img not working

Posted: Mon Feb 12, 2018 5:02 pm
by baggacfreak
or use virtualbox. I just posted a video on how to setup in virtualbox. I used windows 7 to format the virtual disc, but it should work within linux on virtualbox, too.