Welcome, Guest. Please login or register.

Author Topic: How does one add a file to the RDB of a Hard Disk?  (Read 1628 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline mackbwTopic starter

  • Newbie
  • *
  • Join Date: Nov 2014
  • Posts: 12
    • Show all replies
How does one add a file to the RDB of a Hard Disk?
« on: March 10, 2016, 12:16:02 AM »
I have a technical question that I am hoping someone can help with. I posted it over a week ago in the Amiga Unix forum (original post: Amiga Unix Booting with GVP SCSI II) Unfortunately, no one has viewed it - which makes it makes it rather difficult to get an answer. However, one of my main questions is not necessarily Unix specific, so I'm hoping someone here may be able to answer that question.

As part of the process to patch the OS to boot, a "Dummy-Handler" is supposed to be added to the Rigid Disk Block with HDToolBox. I have gone through this process once without success. So I'm thinking I'm doing something wrong adding the dummy handler. The only way I'm aware of to add a file to the RDB is by adding it as a "file system" to a particular partition in the HDToolbox. I don't see another way to add a file to the RDB. But something about this doesn't make sense, as isn't all the partition information (including the file system) kept with the partition, the RDB only being a pointer to the partition? Anyway, does anyone know how to add a file / patch to the RDB or have any suggestions?

For those with a more technical knowledge of the RDB, this information may or may not be of help.  The Dummy-Handler file is 1,152 bytes in length. It's a binary file (obviously) - the only discernible string in the file is "dos.library." I would be curious to compare this file with the current RDB and exactly what the changes do.

Thanks for looking.
Regards,

Mack
 

Offline mackbwTopic starter

  • Newbie
  • *
  • Join Date: Nov 2014
  • Posts: 12
    • Show all replies
Re: How does one add a file to the RDB of a Hard Disk?
« Reply #1 on: March 13, 2016, 04:10:59 PM »
So I've figured it out, while at the same time hitting another problem, but I've managed to get things to boot, - so here's the procedure I used / solution for posterity (or for the next time I forget).

I booted off a Workbench 2.1 Disk and had another floppy with HDToolBox and the "Dummy-Handler."

Using HDToolBox (which seemed to automatically recognize my GVP controller. I've heard of some having to go through the shell and call "HDToolbox gvpscsi.device" or some such - since I didn't have to do that, not exactly sure)

In HDToolBox with the appropriate drive selected - click Partition Drive

Select the boot partition, in this case "UNIX_Boot" and then click on the advanced options check box.

Then click on "Change…" (just need this to get this information). (This may be greyed out, but still readable. I originally applied things incorrectly, so this was modifiable as Custom file System was selected. After I applied the "Dummy Handler" correctly, the file system shows "UNI\00" and the identifier is now greyed out, but readable.) For a Unix Boot partition the identifier should be 0x554e4900. Just need this info for adding the handler. Click Cancel to go to the next step.

Click on the "Add/Update" button. In Add/Update click "Add New File System…" It asks for the location/filename of the new file system - for me it was "UTIL: Dummy-Handler", will be different depending on where you have it. Then click on ok.

Next will be a prompt for the DosType and version for the File system. Here I put that identifier that I got earlier, 0x554e4900. (I left the Version and Revision values at 0 as I didn't know what they should be.)

Click OK to add the file system. Then click OK to leave the "Add New File System…" window, and OK again to leave the Partitioning window.

At the Hard drive preparation window - "Save Changes to Drive" should be clickable. Click on this to write the new information to the drive. Then Exit. That should be it.

It never looked like my floppy disk was accessed to read the dummy-handler. However, it did work. I also used a RDB archiver to read the drive before and after I applied the dummy handler, and the RDB was larger after the application.

The mistake I made previously was that I selected "Update File System…" This had me applying the handler to the only file system listed which was the "International (FFS)" file system. I presume this meant that when going to boot the Unix Boot partition - while the information was there, it was under the wrong File System ID. I may have also tried "Add New File System…" but again, not sure what the ID should be - left it the default which would have been the same as the FFS already installed.

So that allowed my Amix Boot partition to boot. Of course now it boots directly into a Kernel Panic, but that's another issue for the thread I originally posted - Booting Amiga Unix on a GVP controller.

Thanks for your helps guys.

Mack