Page 1 of 1

Problem with mkfs.ext2, losetup, shared folders

Posted: 23. Feb 2016, 01:34
by 8ohmh
Hello,

although I'm not sure that this problems is already described, I'm going to post it here:

HOST: Windows 7 x64 SP 1/2 (Latest updates), AMD Processor, 4GB Mem
VM: VirualBox Version 5.0.14 r105127
Guest: Ubuntu 12.04.05 LTS 32 Bit

Problem:

I have shared a folder on a NTFS drive (share: /media/sf_E_DRIVE...), created there an 1 GByte binary with

Code: Select all

dd if=/dev/zero of=/media/sf_EDRIVE/file.bin bs=1G count=1
made then with

Code: Select all

losetup /dev/loop4 /media/sf_EDRIVE /file.bin
a loop device and did then a

Code: Select all

mkfs.ext2 /dev/loop4
mkdir /fsimage
Till now it worked so far...

As I tried to access the bin file as ext2 file sytem image with

Code: Select all

mount /dev/loop4 /fsimage
I got an error message something like

Code: Select all

error mount: You have to specify th filesystem trype
What's wrong?