Jump to content











Photo
- - - - -

Problem with GHOST


  • Please log in to reply
28 replies to this topic

#26 Dougal

Dougal

    Newbie

  • Members
  • 14 posts
  •  
    Australia

Posted 13 April 2009 - 06:05 AM

[quote name='tinybit' post='64167' date='Apr 6 2009, 01:59 PM']The original partition table is
map (hd0,0)/boot/ghost.iso (0xff)map --hookchainloader (0xff)
and still get the Error 5: Partition table invalid or corrupt error. :) I even pasted your values into the next line to do a side-by-side comparison and they were same as you had above. I extracted again from the iso and checked and still the same as the edited version.Using new grldr I get same Warning! Partition table og HD image is faulty(err=28) from chainloader I mentioned in previous post, but it still boots okay. FWIW it also works using (hd32) instead of (0xff). I have attached the first 512 bytes from one of the modified OSBOOT.IMG files in case I have done something wrong.

Cheers

Dougal

Attached Files



#27 tinybit

tinybit

    Gold Member

  • Developer
  • 1117 posts
  •  
    China

Posted 13 April 2009 - 12:05 PM

I am sorry I made a mistake last time when I was calculating the total sectors in the partition.

Okay I am just redoing it and here is the result:

01B0: 00 00 00 00--00 00 00 00--00 00 00 00--00 00 80 01

01C0: 01 00 04 FE--3F 03 3F 00--00 00 C5 FA--00 00 00 00

Say sorry again for having caused you much trouble and inconvenience.

The other partition table calculated last time is also wrong. Please don't use it.

#28 Dougal

Dougal

    Newbie

  • Members
  • 14 posts
  •  
    Australia

Posted 13 April 2009 - 12:21 PM

I am sorry I made a mistake last time when I was calculating the total sectors in the partition.

Okay I am just redoing it and here is the result:

000001B0   00 00 00 00  00 00 00 00  00 00 00 00  00 00 80 01

000001C0   01 00 04 FE  3F 03 3F 00  00 00 C5 FA  00 00 00 00

Say sorry again for the inconvenience brought to you.


It was no inconvenience at all, I am finding it is very interesting. I will try with this data tomorrow, and let you know how it went.

If it is not too hard,could you explain how you are calculating the partition sectors to come up with the correct data? If you don't have time I can google it. I think I have another iso image that gave me a similar problem a while ago which I gave up on, will have a go at fixing it (if I can find it), and if I can work out what you are doing.

Cheers

Dougal

#29 tinybit

tinybit

    Gold Member

  • Developer
  • 1117 posts
  •  
    China

Posted 13 April 2009 - 01:26 PM

I think you may google for "partition table layout" or "chs to lba translation".

But you needn't consider it, because the newer grub4dos will accept those wrong partition tables(only a warning will be issued).




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users