New
#1
My disk image won't mount in Win 10 unless I use OSFMount
Hello,
I have followed all the guides on the internet about how to make Windows 10 mount a disk image but it won't mount MY own disk image I made myself.
Just to illustrate what I am doing to make the.img file, here is a bash script I run in Linux:
Basically I make a blank disk image and partition it and format it as fat32.Code:#!/bin/bash # # Script to make a disk image file # Partition it and write a fat32 file system to it # cd /home/flex/scripts dd if=/dev/zero of=disk.img bs=1M count=100 losetup -fP disk.img loopdevice=$(losetup -a | grep disk.img | awk '{print $1;}' | cut -f1 -d ":") echo $loopdevice echo $loopdevice"p1" parted -s $loopdevice mklabel msdos parted -s $loopdevice mkpart primary fat32 2048s 100% mkdosfs -F 32 $loopdevice"p1" gparted $loopdevice #losetup -d $loopdevice
Now if I put that disk.img file in Windows 10 and right click on it and go Open - With Windows Explorer I get the message: "Sorry, There was a problem mounting the file". I found this other tool: OSFMount and I can open the .img file with that just fine in Win 10.
I also have the same problem if I use the linux dd command to copy a hard drive partition to a .img file. e.g:
I also can't just open that .img file in Windows by double clicking it or right clicking on it then Open-with Explorer Or selecting "Mount" from the menu. I just get an error message saying it could not be opened or it is corrupt or something. Whereas it WILL open in Win 10 with OSFMount and double clicking on it in Linux DOES open it just fine.Code:dd if=/dev/sda1 of=partition1.img bs=1M status=progress
Is there some special format I need to follow to author a disk image file so that I don't need to use OSFMount but instead
just maybe double clicking on it will mount and open it in Windows 10 Explorer? Basically I want to put a load of files in a disk image and share it with someone but make it as simple as possible.
Cheers,
Flex