English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 02 February 2022, 16:37   #1
cyberhead97
Registered User
 
Join Date: Feb 2016
Location: Denmark
Posts: 333
HstWB Imager - New disk imaging tool

Renamed to Hst Imager.

Hst Imager console v1.0.336 released, see post https://eab.abime.net/showpost.php?p...6&postcount=44.

---------

I have started a new project, which is a disk imaging tool called HstWB Imager. The difference from this to other disk imaging tools is HstWB Imager has focus on selection of available disks and not just ones with drive letters assigned lige Win32DiskImager.
HstWB Imager is also able to read Amiga partition table called Ridig Disk Block and can show an overview of partitions same way partition tools like GParted and EaseUS Partition Master.

It will have following features:
- Read disk to image.
- Write image to disk.
- Convert image format between .img, .hdf and .vhd.
- Create new blank image file in .img, .hdf or .vhd format.
- Verify disk against image file to check if they are equal.
- Optimize image file. Trim image file to what Ridig Disk Block has assigned. With a 16GB image file containing a 4GB Amiga disk, this will be trimmed down from 16GB to 4GB to save unused space.

Why .vhd? It's a virtual disk format, which WinUAE and FS-UAE supports and it only uses diskspace that contains actual data. With a 4GB .img/.hdf it will always be 4GB in file size even when only 1MB is copied to it. With 4GB .vhd 1MB copied data will only be 2-3MB in file size.

HstWB Imager will also work with other image files not related to Amiga, but with Amiga disk and images it's able to do a little extra.

The whole project is an experiment to see what is possible and will define what HstWB Installer v2.0 will look like.

It will be cross platform, so it runs on Windows, macOS, Linux and Raspberry Pi with desktop environment.

Technologies used covers React for user interface, .Net Core for backend and Electron to package it as an app. It will also feature a CLI version for scripting. Everything is open source as HstWB Installer.

Here's a few screenshots of the current UI. Will this be of use for anyone? Maybe you have ideas or suggestions that will make it better?
Attached Thumbnails
Click image for larger version

Name:	hstwb-imager-draft-1.PNG
Views:	282
Size:	50.2 KB
ID:	74612   Click image for larger version

Name:	hstwb-imager-draft-2.PNG
Views:	266
Size:	68.0 KB
ID:	74613  

Last edited by cyberhead97; 11 August 2023 at 09:34. Reason: New version releasen
cyberhead97 is offline  
Old 02 February 2022, 16:55   #2
ppill
CON: artist
 
ppill's Avatar
 
Join Date: Feb 2006
Location: Poland
Age: 43
Posts: 1,250
Looking good!

How about expanding it to a partitioning tool? There's rdbtool from amitools but a gui app that lets you set up a proper RDB image file, sane geometry options and default settings would be great.

Doing it all in WinUAE is a huge hurdle for a lot of people...
ppill is offline  
Old 02 February 2022, 17:00   #3
wiz12
Registered User
 
Join Date: Feb 2017
Location: Ireland
Posts: 752
Looks like it will be a very useful tool. I wonder if there could be a "verify image" option to see if there's any corruption or rdb errors in an image?
wiz12 is online now  
Old 02 February 2022, 18:29   #4
cyberhead97
Registered User
 
Join Date: Feb 2016
Location: Denmark
Posts: 333
Quote:
Originally Posted by ppill View Post
Looking good!

How about expanding it to a partitioning tool? There's rdbtool from amitools but a gui app that lets you set up a proper RDB image file, sane geometry options and default settings would be great.

Doing it all in WinUAE is a huge hurdle for a lot of people...
Interesting idea with rdbtool. If it's possible to pack it as an executable, i can quite easily create a UI for it. If it's a python script then pyexe could be a way of handling it.
cyberhead97 is offline  
Old 02 February 2022, 18:34   #5
cyberhead97
Registered User
 
Join Date: Feb 2016
Location: Denmark
Posts: 333
Quote:
Originally Posted by wiz12 View Post
Looks like it will be a very useful tool. I wonder if there could be a "verify image" option to see if there's any corruption or rdb errors in an image?
It could be done, but will require running in an emulator. It would be something like clocking verify disk/partitions then it would start WinUAE/FS-UAE which automatically starts a verify tool
cyberhead97 is offline  
Old 02 February 2022, 21:35   #6
RoC
Registered User
 
Join Date: May 2011
Location: Italy
Posts: 214
HstWB Imager - New disk imaging tool

Nice surprise !

I vote also for expanding it as a partitioning tool with the rdbtool.

I have been developing two Powershell scripts, which invoke rdbtool and xdftool on WSL to create HDFs starting from “Host Based” WinUAE Directories. One uses only “Amitools” and creates FFS images, while the second is meant for PFS3AIO and uses also a WinUAE session, because rdbtool/xdftool can create PFS3 partitions but not formatting them (FFS is fully supported though).

I could send these two scripts on GitHub (or through email), if this could somehow be of any help to understand the rdbtool options :-)
RoC is offline  
Old 02 February 2022, 21:50   #7
cyberhead97
Registered User
 
Join Date: Feb 2016
Location: Denmark
Posts: 333
Quote:
Originally Posted by RoC View Post
Nice surprise !

I vote also for expanding it as a partitioning tool with the rdbtool.

I have been developing two Powershell scripts, which invoke rdbtool and xdftool on WSL to create HDFs starting from “Host Based” WinUAE Directories. One uses only “Amitools” and creates FFS images, while the second is meant for PFS3AIO and uses also a WinUAE session, because rdbtool/xdftool can create PFS3 partitions but not formatting them (FFS is fully supported though).

I could send these two scripts on GitHub (or through email), if this could somehow be of any help to understand the rdbtool options :-)
I like the idea. Please share what you have at hand, it will be useful for integrating rdbtool.

I do already have a lot of knowledge about Rigid Disk Block and how to parse/read its binary structure. This could also be extended to creating Rigid Disk Blocks like rdbtool.

I would prefer to have as few external dependencies as possible. Either i need to package it for each platform or include an automated setup of it.
cyberhead97 is offline  
Old 02 February 2022, 22:18   #8
ppill
CON: artist
 
ppill's Avatar
 
Join Date: Feb 2006
Location: Poland
Age: 43
Posts: 1,250
Having RDB/Partitioning without relaying on external tool would be cool (that's sort of what I meant in the previous post).

Sane geometry, partitioning, adding filesystems, setting flags, quick format for FFS, PFS, SFS etc.

All-in-one solution without having to use an emulator... would be a great tool!
ppill is offline  
Old 02 February 2022, 22:21   #9
RoC
Registered User
 
Join Date: May 2011
Location: Italy
Posts: 214
HstWB Imager - New disk imaging tool

Ok, tomorrow I will send them

Fully support the idea to reduce/avoid dependencies
RoC is offline  
Old 03 February 2022, 08:53   #10
jbenam
Italian Amiga Zealot
 
Join Date: Jan 2009
Location: Italy
Age: 36
Posts: 1,910
Very nice! It could turn into a fully-fledged partition tool for Amiga hard drives on other platforms, which is something I have wanted for many many years

If it could do stuff like exporting just a single partition and then reimporting it on another disk, it would be perfect
jbenam is offline  
Old 03 February 2022, 22:10   #11
cyberhead97
Registered User
 
Join Date: Feb 2016
Location: Denmark
Posts: 333
I have thought a lot about adding partitioning functionality and I'm going to add support for this. rdbtool part of amitools is great, but I really don't want the dependencies it has as a requirement to HstWB Imager.

Therefore I going to implement my own RDB library capable of reading and writing RDB. I have already implemented RDB reading functionality, so it should not take long time to implement RDB writing functionality giving me something to test and hack with.

Formatting the partitions will still require WinUAE, FS-UAE or similar Amiga emulator handle formatting. Filesystem handlers are 68000+ code, so reading and writing the filesystem requires a context (Amiga emulator) that can communicate with the filesystem handler. This can be fully automated with a script that formats each partition and stops Amiga emulator afterwards.

I also got a suggestion for creating "hybrid" images meaning an image that has both RDB and MBR. The idea is to have MBR in first sector with a FAT32 partition in last part of the image and RDB in sector 2-16 with partitions DH0: and DH1: (or more) formatted with PFS\3. The Amiga should then be able to read it's devices DH0: and DH1: and at the same time use FAT95 to mount the FAT32 partition making it a neat solution for transfering files for Amiga users without PCMCIA, USB or similar transfer options.

The "hybrid" image is an idea, not tested, but I have already started a small hackaton to first implement RDB writing and tinker with creation of an image that has MBR and RDB.
cyberhead97 is offline  
Old 04 February 2022, 23:15   #12
RoC
Registered User
 
Join Date: May 2011
Location: Italy
Posts: 214
Sounds a good plan and the hybrid mode is the ice on the cake!

WinUAE works just fine for formatting and could be also expanded to other things.

As a suggestion, would it be possible to add FFS, because at least in one case it is mandatory to use DOS1 (A3000 dual boot) ?
For the rest PFS3 is quite rightly the standard.
RoC is offline  
Old 05 February 2022, 09:28   #13
patrik
Registered User
 
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
Quote:
Originally Posted by RoC View Post
Sounds a good plan and the hybrid mode is the ice on the cake!

WinUAE works just fine for formatting and could be also expanded to other things.

As a suggestion, would it be possible to add FFS, because at least in one case it is mandatory to use DOS1 (A3000 dual boot) ?
For the rest PFS3 is quite rightly the standard.
You would need to add it for any 1.3 systems as they do not have FFS in ROM.
patrik is offline  
Old 05 February 2022, 20:59   #14
RoC
Registered User
 
Join Date: May 2011
Location: Italy
Posts: 214
Filesystems are stored in the RDBs, so using PFS3 even on A500s/68000 is my preferred choice as far as there is the scsi.device in the kickstart (custom 1.3 or standard 2.x and later)

But in the case of A3000 dual boot, FFS DOS\1 is the only option, otherwise the two partitions (WB_1.3 and WB_2.x) do not work with the kickstart 1.4. Maybe the same applies to the A2630 dual boot, but I haven’t tried that.
RoC is offline  
Old 05 February 2022, 21:58   #15
cyberhead97
Registered User
 
Join Date: Feb 2016
Location: Denmark
Posts: 333
Big news today !

I finished implementing a RDB creator/writer and with some hex compare of a RDB created with Amiga OS 3.9 HDToolBox I managed to make my own RDB implementation work successfully.

A few screenshots are attached showing WinUAE with a newly created 250MB .hdf with a 100MB PFS3 partition showing up in Workbench as uninitialized and me using pfsformat to quick format it and verify it works.

So creating RDB, partitions, changing flags settings and such is possible. Even idea's of importing and exporting partitions to and from other images is possible .
Attached Thumbnails
Click image for larger version

Name:	rdb_imager_1.png
Views:	147
Size:	6.7 KB
ID:	74633   Click image for larger version

Name:	rdb_imager_2.png
Views:	165
Size:	11.8 KB
ID:	74634   Click image for larger version

Name:	rdb_imager_3.png
Views:	147
Size:	6.7 KB
ID:	74635   Click image for larger version

Name:	rdb_imager_4.png
Views:	147
Size:	8.0 KB
ID:	74636  
cyberhead97 is offline  
Old 05 February 2022, 22:12   #16
RoC
Registered User
 
Join Date: May 2011
Location: Italy
Posts: 214
Wow, already done. This is great.
RoC is offline  
Old 05 February 2022, 22:22   #17
dalek
Registered User
 
Join Date: Nov 2014
Location: NSW/Australia
Posts: 462
That is awesome!
dalek is offline  
Old 05 February 2022, 22:47   #18
ppill
CON: artist
 
ppill's Avatar
 
Join Date: Feb 2006
Location: Poland
Age: 43
Posts: 1,250


The hybrid thing is pretty straightforward.

RDB is expected to start within the first 16 blocks (0-15). MBR is always(?) block 0. As long as it starts somewhere in the first 16 blocks and ends before the starting cylinder of the first partition it's all good.

HDInstools has a tooltype RDBLOW which defines RDB's starting block. I've used it on a couple of drives and worked fine.
ppill is offline  
Old 07 February 2022, 22:46   #19
cyberhead97
Registered User
 
Join Date: Feb 2016
Location: Denmark
Posts: 333
Quote:
Originally Posted by ppill View Post


The hybrid thing is pretty straightforward.

RDB is expected to start within the first 16 blocks (0-15). MBR is always(?) block 0. As long as it starts somewhere in the first 16 blocks and ends before the starting cylinder of the first partition it's all good.

HDInstools has a tooltype RDBLOW which defines RDB's starting block. I've used it on a couple of drives and worked fine.
That's exactly how I planned it should work. With the recent increased knowledge about RDB, I could also create an RDB mover/relocate tool allowing RDB to be moved between any of the first 16 blocks. Probably only needed in advanced use cases.

I would also like to have filesystem repair tools automatically run by clicking a button and include tools like pfsdoctor.

What tools are used for FFS and SFS partitions which support partitions larger than 2/4GB?
cyberhead97 is offline  
Old 08 February 2022, 22:09   #20
RoC
Registered User
 
Join Date: May 2011
Location: Italy
Posts: 214
HstWB Imager - New disk imaging tool

I have only used pfsdoctor, don’t know if DiskDoctor could help you with FFS
RoC is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk Collection Merging Tool? Fuzzball Collections 1 30 June 2021 11:11
Best disk imaging software? lloyd request.Apps 6 05 May 2012 23:24
BAWarp disk imager BlueAchenar Coders. General 415 24 May 2011 01:17
Disk verification tool? dansalvato support.Apps 1 25 December 2010 04:50
Maverick disk copying tool boing_1000 request.Apps 6 03 October 2006 18:43

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 14:23.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09615 seconds with 14 queries