Question: I can create a vfat filesystem as shown below.
I can exchange mkfs.vfat with mkfs.jfs or mkfs.ext3, but when I exchange it with mkfs.ntfs, then I get this error message:
virtual.dsk is not a block device.
Refusing to make a filesystem here!
Is there a way/cmd line option to create an nfts fs from a file ?
Code:
Create a virtual disk
dd if=/dev/zero of=virtual.dsk bs=1048576 count=150
Format it
mkfs.vfat virtual.dsk
Mount it
sudo mkdir -p /mnt/vfat
sudo mount virtual.dsk /mnt/vfat -t vfat -o loop
Bookmarks