Re: Trying to read a raw image file

2006-07-22 Thread Ralph Corderoy

Hi Charles,

 I had to hack around with the acorn-fdisk source a little, but I
 managed to get it compiled in the end. It reports the following:
 
 Disk ../IMAGE.000: 16 heads, 63 sectors, 1024 cylinders
 Units = cylinders of 1008 * 512 bytes
 
Device Boot   BeginStart  End   BlocksId  System
 ../IMAGE.000100   8442080   100  Filecore
 ../IMAGE.0002   84   84   841   fffe  Unknown type 
 65534
 
 So I guess there's an ADFS partition there somewhere.

Yes, `Filecore' is an ADFS one.

Can you hack the source a little more.  Alter fdisk.c's
print_part_tables() function to have an extra
`list_table(LIST_EXTENDED_NORMAL);' after the existing list_table():

static int
print_part_tables(int nr, const char **parts)
{
int i, ret = 1;

for(i = 0; i  nr; i++) {
device = parts[i];
part = part_open(device, dev_part_type);
if (part) {
list_table(LIST_NORMAL);
list_table(LIST_EXTENDED_NORMAL);
part = part_close(part);
ret = 0;
}
}

return ret;
}

Then run it again and supply the new output along with /tmp/part.debug
which will be created.  Here's my output as an example of the new
section at the end.

$ ./fdisk -l /tmp/hi

Disk /tmp/hi: 16 heads, 63 sectors, 1024 cylinders
Units = cylinders of 1008 * 512 bytes

  Device Boot   BeginStart  End   Blocks Id   System
/tmp/hi100   39  19584100  Filecore
/tmp/hi2   39   39   39  1   fffe  Reserved/Free

Disk /tmp/hi: 16 heads, 63 sectors, 1024 cylinders
Nr AF  Hd Sec  Cyl  Hd Sec  Cyl   StartSize ID
 0 00   0   00   0   00   0   1 000
 1 00   0   00  13  44   38   0   39168 100
 2 00  13  45   38  13  46   38   39168   2 fffe
$

Cheers,


Ralph.



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
arcem-user mailing list
arcem-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/arcem-user


Re: Trying to read a raw image file

2006-07-17 Thread Ralph Corderoy

Hi Charles,

  I'd have thought you'd have had some Hugo outside that BASIC program
  though.  What if you change *both* Hugos in the pipeline to `Nick'?
  Do you know what format the hard disc was?  E?  F?  And was there
  more than one partition on it, as was required when bigger hard
  drives came along.
 
 No Nicks from either I'm afraid. I don't know anything about the
 formatting/partitioning of the drive, because the machine it came out
 of is completely goosed, and the person who set it up is sadly no
 longer with us.

OK, I don't understand why there's the lack of Hugo and Nick.

Does the acorn-fdisk package exist for your Linux?  It's on Debian
and Ubuntu.  It's -l option will examine the disc image and work out
which of the myriad of partitioning schemes used on Acorn machine it
has, and list the partitions.  Here it is on my `empty' ADFS image,
/tmp/hi.

$ ./fdisk -l /tmp/hi

Disk /tmp/hi: 16 heads, 63 sectors, 1024 cylinders
Units = cylinders of 1008 * 512 bytes

  Device Boot   BeginStart  End   Blocks Id   System
/tmp/hi100   39  19584100  Filecore
/tmp/hi2   39   39   39  1   fffe  Reserved/Free
$

It creates an interesting /tmp/part.debug debug file.

It could be that the machine had a hard disc interface in it that used a
partitioning scheme that RISC OS doesn't know about, but the module on
the podule did.  Of course, arcem doesn't have that module and so RISC
OS's ADFS doesn't understand the disc.

 So I guess I need to find whole number factors of 42864640/256, and
 try those as a set of params in .arcemrc?

You can try that too.

cylinders 299
heads  35
sectors16
sectorlength  256

42,864,640 - 299 * 35 * 16 * 256 == 0

Cheers,


Ralph.




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
arcem-user mailing list
arcem-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/arcem-user