Adding directory as Harddisk

Page 3/4
1 | 2 | | 4

By Manuel

Ascended (19461)

Manuel's picture

15-04-2023, 10:52

Can you check that zemhdd.dsk was actually created where you expected it, with the right size?

By giuseve

Paladin (786)

giuseve's picture

16-04-2023, 10:00

Yes, it is in the path place with the right size

By giuseve

Paladin (786)

giuseve's picture

16-04-2023, 10:29

Talking about dir-as-hd feature.
Maybe it could be nice:
- Using a 4gb max USB pendrive
- Formatted in fat 16
- Using it as hd

?

By Manuel

Ascended (19461)

Manuel's picture

16-04-2023, 10:55

If you run these commands one by one in the console, you can see for which command the error is given. Can you please do that so we know where it goes wrong?

By giuseve

Paladin (786)

giuseve's picture

17-04-2023, 19:52

I've tried on by one in the console
The problem is with the -nextor option of this command.
With

diskmanipulator create -nextor zemhdd.dsk 4096M

the error says "invalid size : zemhdd.dsk"
But using

diskmanipulator create zemhdd.dsk 4096M

The image file appears with a size of 4gb.
Anyway, with the last step

diskmanipulator import hda1 e:/*.*

it says "no or invalid partition table"

By Manuel

Ascended (19461)

Manuel's picture

17-04-2023, 21:28

@Grauw please help oO

Wait, with which openMSX version are you trying this exactly?

By giuseve

Paladin (786)

giuseve's picture

17-04-2023, 22:18

version 18.0.608

By Manuel

Ascended (19461)

Manuel's picture

17-04-2023, 23:44

OK, the problem is the order of commands. You must first specify the file name and then the options and then the size. So, please try with: diskmanipulator create zemhdd.dsk -nextor 4096M

Also please note that you cannot use wildcards just like that, see https://openmsx.org/manual/diskmanipulator.html#import (or check the updated document in the build you have for your updated version).

Also, the command you gave creates a single FAT16 dsk image (without partitions) on the whole disk of 4GB. So, there is only 'hda', no 'hda1' (which is the first partition) to import to.

By giuseve

Paladin (786)

giuseve's picture

18-04-2023, 07:15

Thanks, I will try asap.
About partition: at the end my virtual 4gb HDD must be partitioned and formatted before I can use it in the right way?
About glob: my target is to import the whole structure of partition E, with files, directories and subdirectories. Maybe this would be not the right way?

By Manuel

Ascended (19461)

Manuel's picture

18-04-2023, 08:51

It now gets formatted without partition table, but should work fine.
As the manual said, you can specify directories and files. The glob pattern just expands to a list of these.

Page 3/4
1 | 2 | | 4