VOGONS


"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 2 of 20, by OSH

User metadata
Rank Member
Rank
Member

The same message.
Nobody can help me? I think it will be worthy to know, why appears such issue.

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 4 of 20, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

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

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 6 of 20, by TeaRex

User metadata
Rank Member
Rank
Member

Did you partition your image before formatting it?

tearex

Reply 7 of 20, by OSH

User metadata
Rank Member
Rank
Member

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

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 11 of 20, by OSH

User metadata
Rank Member
Rank
Member

imgmount 2 c.img -size 512,63,16,812 -t hdd -fs none

And it works. But if I want to use a letter, instead "2", -it fails.

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 14 of 20, by DepthsDoes

User metadata
Rank Newbie
Rank
Newbie

Thanks, but the status window error reads:

<Image has no valid magicnumbers at the end!>

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 18 of 20, by DepthsDoes

User metadata
Rank Newbie
Rank
Newbie

I tried the FreeDOS image, that worked. But my blank floppy still won't mount.

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.