VOGONS

Common searches


"Can't create drive from file"

Topic actions

First post, by OSH

User metadata
Rank Member
Rank
Member

Well, I'm a little bit frustrated.
1. I've made imagefile using imgmake test.img -t hd_2gig -nofs -bat
2. I've formatted this image using format c: /s
3. I'm trying to mount this under DOSBOX using imgmount d test.img -t hdd -size 512,63,64,1023
4. I've got a message "can't create drive from file".

What I did wrong? I've remembered, I was able to mount su8ch image under DOSBOX, and after this copying a files on this image under DOSBOX, but now I can't. Why?

Reply 1 of 20, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Try without -size and parameters

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 3 of 20, by bloodbat

User metadata
Rank Oldbie
Rank
Oldbie

Which file system did you format the image with prior to adding files?
Also, is the path to your image file set correctly?
You're not trying to mount it to an already used drive letter, right?

Reply 5 of 20, by OSH

User metadata
Rank Member
Rank
Member

Which file system did you format the image with prior to adding files?

Well - I've formatted it using Windows95 startup disk

Also, is the path to your image file set correctly?

Yes, is correctly set.

You're not trying to mount it to an already used drive letter, right?

No, I'm not.

When you try to mount the image there's probably a message in the Status Window explaining what's wrong.

Using partition 0 on drive: skipping 63 sectors
IDE: index -1 slave=0

Reply 8 of 20, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
OSH wrote:

Of course. I did everything, what was described in DosFreak's, and dada's description...

Which description are you referring to? What partitioning tool did you use?

Patch: Imgmake - creates floppy or harddisk images suggests "imgmake c:\harddisk_2gb.img -t hd_2gig" requires no formatting at all.

For that matter:

1. I've made imagefile using imgmake test.img -t hd_2gig -nofs -bat
2. I've formatted this image using format c: /s
3. I'm trying to mount this under DOSBOX using imgmount d test.img -t hdd -size 512,63,64,1023

Don't you have to mount the image before you can format it..?

Reply 9 of 20, by OSH

User metadata
Rank Member
Rank
Member

Which description are you referring to? What partitioning tool did you use?

this: Windows 9x DOSBox Guide (Not officially supported)
and this: Guide - Windows 95 on DOSBox 0.74

Image was partitioned with fdisk from Windows95 start disk.

Don't you have to mount the image before you can format it..?

Of course!!! otherwise I couldn't format it! Really, I can't imagine, how I can format image without mounting it.

Reply 10 of 20, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

Well, what command are you using to mount the image before you run fdisk, then?

Also, if you're using fdisk from a later version of Windows 95, you should probably make sure you're not formatting the disk as FAT32. (You have to answer "no" when asked if you want to enable large disk support.)

Last edited by Jorpho on 2012-10-16, 13:48. Edited 1 time in total.

Reply 12 of 20, by DepthsDoes

User metadata
Rank Newbie
Rank
Newbie
cd winent1

(Windows 3.1 Entertainment Pack 1)

imgmount A: \disk01.img -t floppy
Can't create drive from file.
E:\>

Reply 13 of 20, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Imgmount a disk01.img -t floppy

Or give the whole real path to the img

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 15 of 20, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
DepthsDoes wrote on 2020-10-21, 16:55:

<Image has no valid magicnumbers at the end!>

That suggests you are not using a valid image file. Did you make it yourself? How did you make it?

Reply 16 of 20, by DepthsDoes

User metadata
Rank Newbie
Rank
Newbie
Jorpho wrote on 2020-10-21, 17:41:
DepthsDoes wrote on 2020-10-21, 16:55:

<Image has no valid magicnumbers at the end!>

That suggests you are not using a valid image file. Did you make it yourself? How did you make it?

I used BXIMAGE to make the floppy image.

Reply 17 of 20, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
DepthsDoes wrote on 2020-10-23, 07:10:

I used BXIMAGE to make the floppy image.

I can't recall anyone trying that before.

Try downloading FD12FLOP from http://freedos.org/download/ and see if you can use that with imgmount.

Reply 19 of 20, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

If you need a blank floppy image, can't you just mount the FreeDOS image and delete everything on it? A quick Google search also suggests other places to download a blank floppy image, such as https://socket3.wordpress.com/downloads/ .

It is not the most elegant solution, but if it works, then it works.