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   Begin    Start      End   Blocks    Id  System
> ../IMAGE.0001            0        0       84    42080   100  Filecore
> ../IMAGE.0002           84       84       84        1   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   Begin    Start      End   Blocks     Id   System
    /tmp/hi1            0        0       39      19584    100  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   Start    Size ID
     0 00   0   0    0   0   0    0           0           1 000
     1 00   0   0    0  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.php&p=sourceforge&CID=DEVDEV
_______________________________________________
arcem-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/arcem-user

Reply via email to