Zip to MDV

Discussion and advice about emulating the QL on other machines.
jll745562
ROM Dongle
Posts: 15
Joined: Wed Apr 10, 2019 2:15 pm
Location: Ynys Mon

Re: Zip to MDV

Post by jll745562 »

If anyone's still interested in this, I recently had need of mdvtool for a DIY microdrive emulator I'm working on (more about that in the future).
Anyway, I've fixed the Zip file import and added a 'create' command to create blank .mdv files, as well as squishing a few other bugs (but probably not all of them!)

I've attached a zip file of the source code if anyone wants it. You will need libzip to compile.

Jason.
Attachments
mdvtool.zip
mdvtool improved!
(7.68 KiB) Downloaded 276 times


podge_de
ROM Dongle
Posts: 2
Joined: Fri Dec 20, 2024 5:33 pm

Re: Zip to MDV

Post by podge_de »

Hi!
I'm new to the QL, or at least new in the sense that I haven't touched the machine in the last 27 years. I just unpacked it and set it up recently and have discovered, that nearly all my disks and microdrive cartridges are no longer readable.

Unfortunately (for me) I don't have the skill or a compiler to compile the source. Is there any chance of sending me a compiled version?


jobdone
Forum Moderator
Posts: 93
Joined: Wed Aug 07, 2019 4:59 am

Re: Zip to MDV

Post by jobdone »

Please specify what OS you would require a binary for ? I'm adding my build from x64 Linux.
Attachments
mdvtool.zip
(11.45 KiB) Downloaded 25 times


gferluga
ROM Dongle
Posts: 6
Joined: Fri Apr 29, 2022 11:14 pm

Re: Zip to MDV

Post by gferluga »

MacOS ARM, please? Thx


User avatar
XorA
Site Admin
Posts: 1585
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: Zip to MDV

Post by XorA »

Install brew (brew.sh)

Use that to install libzip git and make

Then

Code: Select all

git clone https://github.com/xxoraa/mdvtool
cd mdvtool
make


gferluga
ROM Dongle
Posts: 6
Joined: Fri Apr 29, 2022 11:14 pm

Re: Zip to MDV

Post by gferluga »

./mdvtool
Usage: mdvtool <mdv> commands
or: mdvtool create commands
Commands:
create - create a new MDV image
dir - list MDV contents
check_files - check file integrity
file_chains - list chain of sectors for each file
check_mapping - check the sector mapping
show_mapping - show physical/loginal sector mapping
export file_name - export a file from the MDV image
erase - erase the MDV image
name image_name - rename the MDV image
rand random - set the rand for MDV image
import file_name - import a file to the MDV image
zip_import file_name - import an entire ZIP archive
write file_name - write the MDV image[/code][/code]


Thanks ;)-


Post Reply