Jump to content











Photo
- - - - -

Problem with GHOST


  • Please log in to reply
28 replies to this topic

#1 Dougal

Dougal

    Newbie

  • Members
  • 14 posts
  •  
    Australia

Posted 07 March 2009 - 09:11 AM

I am creating a bootable USB stick, with a selection of bootable systems including DOS, BartXPE, Paragon Hard Disk Manger and Symantec Ghost. I had great success with the DOS floppy image, and BartXPE and Paragon ISO images as hd32, :cheers: however I couldn't get the Ghost boot ISO to load. :cheers: Kept getting a "Error 5: Partition table invalid or corrupt" error. After looking at the ISO image, it only contains 2 files osboot.img and bootcat.bin, and osboot.img is a fat 16 boot image file. So I mapped osboot.img (needed to use --heads=0 and --sectors-per-track=0 as otherwise get an error). However if I use chainloader (fd0) or (hd0,0) I get an "invalid or unsupported executable format" error. If I use (fd0)+1 or (hd0,0)+1 it hangs without booting. :cheers: OSBOOT.IMG was a PC-DOS boot image, with IBMBIO.COM and IBMIO.COM. So I built an ISO in Ghost using MS-DOS 6.22, and chainload IO.SYS directly which now works. :cheers: Here is my working config (note I have 2 internal HDs):

[codebox]title Boot Ghost from ISO image
map (hd0,0)/GhostBootDOS6.22.iso (hd32)
map --hook
map --heads=0 --sectors-per-track=0 (hd32)/OSBOOT.IMG (hd0)
map --harddrives=4
map (hd0) (hd3)
map --hook
chainloader (hd0,0)/io.sys[/codebox]

I am fairly new to grub4dos and have never used -nix before. There are probably far more elegant and proper methods of getting it to boot, but this works for me. :cheers: Thanks for a great utility!

Cheers
Dougal

#2 tinybit

tinybit

    Gold Member

  • Developer
  • 1078 posts
  •  
    China

Posted 15 March 2009 - 01:23 PM

I am creating a bootable USB stick, with a selection of bootable systems including DOS, BartXPE, Paragon Hard Disk Manger and Symantec Ghost. I had great success with the DOS floppy image, and BartXPE and Paragon ISO images as hd32, :good: however I couldn't get the Ghost boot ISO to load. ^_^ Kept getting a "Error 5: Partition table invalid or corrupt" error. After looking at the ISO image, it only contains 2 files osboot.img and bootcat.bin, and osboot.img is a fat 16 boot image file. So I mapped osboot.img (needed to use --heads=0 and --sectors-per-track=0 as otherwise get an error). However if I use chainloader (fd0) or (hd0,0) I get an "invalid or unsupported executable format" error. If I use (fd0)+1 or (hd0,0)+1 it hangs without booting. ^_^ OSBOOT.IMG was a PC-DOS boot image, with IBMBIO.COM and IBMIO.COM. So I built an ISO in Ghost using MS-DOS 6.22, and chainload IO.SYS directly which now works. ^_^ Here is my working config (note I have 2 internal HDs):

title Boot Ghost from ISO imagemap (hd0,0)/GhostBootDOS6.22.iso (hd32)map --hookmap --heads=0 --sectors-per-track=0 (hd32)/OSBOOT.IMG (hd0)map --harddrives=4map (hd0) (hd3)map --hookchainloader (hd0,0)/io.sys

I am fairly new to grub4dos and have never used -nix before. There are probably far more elegant and proper methods of getting it to boot, but this works for me. ^_^ Thanks for a great utility!

Cheers
Dougal


It seems your osboot.img has an invalid/problematic partition table. You may consider re-establishing it.

#3 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 15 March 2009 - 04:57 PM

Topic splitted from here:
http://www.boot-land...?showtopic=5041

jaclaz

#4 Dougal

Dougal

    Newbie

  • Members
  • 14 posts
  •  
    Australia

Posted 02 April 2009 - 06:59 AM

It seems your osboot.img has an invalid/problematic partition table. You may consider re-establishing it.


Thanks tinybit, although I am not sure what that means. However you are definately correct, as it has now stopped working, not sure why. Same image, same menulist, but get an unable to load partition message when booting.
Do you mean I need to re-create the iso image in ghost?
Thanks for your help.

#5 Dougal

Dougal

    Newbie

  • Members
  • 14 posts
  •  
    Australia

Posted 02 April 2009 - 07:35 AM

I have rebuilt the iso twice and still does the same. If I burn the iso to CD it will boot happily, but can't get it to boot with this config:
title Ghost from ISO
map (hd0,0)/boot/Ghost.iso (hd32)
map --hook
chainloader (hd32)

Any ideas?

#6 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 02 April 2009 - 09:26 AM

Use Command Line!

Try these (one at the time):

map (hd0,0)/boot/Ghost.iso (0xff)

map --hook

root (0xff)

chainloader (0xff)

boot

and post grub4dos output.

jaclaz

#7 Dougal

Dougal

    Newbie

  • Members
  • 14 posts
  •  
    Australia

Posted 02 April 2009 - 11:11 AM

Use Command Line!

Try these (one at the time):

map (hd0,0)/boot/Ghost.iso (0xff)

map --hook

root (0xff)

chainloader (0xff)

boot

and post grub4dos output.

jaclaz


Thanks very much jaclaz.

I ran it from the command line as you requested, and here is what I got. After root command I got:
Filesystem type is iso9660, using hol disk
After chainloader command got:
Load segment: 0x0 System type: 0x0 Sector count: 0x1
Load RBA: 0x1E8 Boot type: Hard Disk

Error 5: Partition table invalid or corrupt

Cheers

Dougal

#8 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 02 April 2009 - 02:52 PM

Load segment: 0x0 System type: 0x0 Sector count: 0x1
Load RBA: 0x1E8 Boot type: Hard Disk



Most probably it is some kind of hard disk emulation image :good: or however a non-standard CD bootsector.

Try this:
map (hd0,0)/boot/Ghost.iso (0xff)

map --hook

root (0xff)

map /osboot.img (hd2)

map --rehook

root (hd2)

chainloader +1

boot

And this:
map (hd0,0)/boot/Ghost.iso (0xff)

map --hook

root (0xff)

map /osboot.img (hd2,0)

map --rehook

root (hd2,0)

chainloader +1

boot

Post output...

jaclaz

#9 Dougal

Dougal

    Newbie

  • Members
  • 14 posts
  •  
    Australia

Posted 05 April 2009 - 06:06 AM

Most probably it is some kind of hard disk emulation image :good: or however a non-standard CD bootsector.

Try this:

map (hd0,0)/boot/Ghost.iso (0xff)

map --hook

root (0xff)

map /osboot.img (hd2)

map --rehook

root (hd2)

chainloader +1

boot

And this:
map (hd0,0)/boot/Ghost.iso (0xff)

map --hook

root (0xff)

map /osboot.img (hd2,0)

map --rehook

root (hd2,0)

chainloader +1

boot

Post output...

jaclaz


Thanks jaclaz. I followed your instructions and this is what I got:
map (hd0,0)/boot/Ghost.iso (0xff)

map --hook

root (0xff)

Filesystem type is iso9660, using whole disk

map /osboot.img (hd2)

Error 62: The number of heads must be specified ...

So I changed the command to:
map --heads=0 --sector-per-track=0 /osboot.img (hd2)

Autodetect number-of-heads failed. Use default value 255
Autodetect sectors-per-track failed. Use default value 63

map --rehook

root (hd2)

Error 17: Cannot mount selected partition

^_^

And this:
map (hd0,0)/boot/Ghost.iso (0xff)

map --hook

root (0xff)

map /osboot.img (hd2,0)

map --rehook

root (hd2,0)
Same as above until here where I now get:

Filesystem type is fat, partition type 0x04 ^_^

chainloader +1

boot

Invalid system disk
Replace the disk, and then press any key ^_^

Any other suggestions? Don't waste too much of your time on it, because I am now using a DOS floppy image to boot it, and am going to try using a Win98 bootable HD image and if they work I will just copy the files across.
If you want any info regarding the boot info for this iso and the OSBOOT.IMG file I can give you info from WinImage and hex dump from HxD if that will help.
[Edit: I thought I might use WinImage to change the boot system on the OSBOOT.IMG file to see if that helps]
Thanks very much for your help.
Cheers
Dougal

#10 tinybit

tinybit

    Gold Member

  • Developer
  • 1078 posts
  •  
    China

Posted 05 April 2009 - 06:43 AM

Thanks very much jaclaz.

I ran it from the command line as you requested, and here is what I got. After root command I got:
Filesystem type is iso9660, using hol disk
After chainloader command got:
Load segment: 0x0 System type: 0x0 Sector count: 0x1
Load RBA: 0x1E8 Boot type: Hard Disk

Error 5: Partition table invalid or corrupt

Cheers

Dougal


Your bootable image for the CD does not follow the "bootable cd-rom specification", because it has no partition table, or the partition table is invalid. Note that for a "hard disk emulation" boot, a partition table is required for the harddisk image.

You may report the bug to the maker/producer/developer of the CD-ROM.

#11 tinybit

tinybit

    Gold Member

  • Developer
  • 1078 posts
  •  
    China

Posted 05 April 2009 - 06:57 AM

root (hd2,0)

chainloader +1

boot

Invalid system disk
Replace the disk, and then press any key :good:


Certainly you will get this error, because most MS-based systems do not boot from a harddrive other than (hd0).

You may try this:
map (hd0,0)/boot/Ghost.iso (0xff)

map --hook

root (0xff)

map /osboot.img (hd0)

map (hd0) (hd1)

map --rehook

root (hd0,0)

chainloader +1

boot


#12 Dougal

Dougal

    Newbie

  • Members
  • 14 posts
  •  
    Australia

Posted 05 April 2009 - 10:16 AM

Your bootable image for the CD does not follow the "bootable cd-rom specification", because it has no partition table, or the partition table is invalid. Note that for a "hard disk emulation" boot, a partition table is required for the harddisk image.

You may report the bug to the maker/producer/developer of the CD-ROM.


Thanks for your assistance Jaclaz. It is an old Ghost 8.3 created CD we use at work, and can't use the current Ghost 11.5 so not much point telling Symantec. Strangely, if the image is burnt to CD it boots fine.

Cheers

Dougal

#13 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 05 April 2009 - 10:34 AM

I am not (yet ^_^) suffering from double personality.
^_^

You should thank tinybit (and test his suggestions): he is one of the developers of grub4dos and definitely "knows where his towel is". :good:

^_^

jaclaz

#14 tinybit

tinybit

    Gold Member

  • Developer
  • 1078 posts
  •  
    China

Posted 06 April 2009 - 04:20 AM

Try a new build at http://grub4dos.nufans.net/

Please download the file grldr(or grub.exe) and use it.

#15 Dougal

Dougal

    Newbie

  • Members
  • 14 posts
  •  
    Australia

Posted 06 April 2009 - 07:26 AM

Try a new build at http://grub4dos.nufans.net/

Please download the file grldr(or grub.exe) and use it.


Thank you tinybit, sorry for ignoring you, I wasn't paying attention to the name on the last response, just assumed it was jaclaz again . :good:
I will download the latest grub and give that a go, using the commands you gave me before and get back to you.
Cheers
Dougal
(definately NOT a hoopy frood)

#16 Dougal

Dougal

    Newbie

  • Members
  • 14 posts
  •  
    Australia

Posted 06 April 2009 - 08:35 AM

Certainly you will get this error, because most MS-based systems do not boot from a harddrive other than (hd0).

You may try this:

map (hd0,0)/boot/Ghost.iso (0xff)

map --hook

root (0xff)

map /osboot.img (hd0)

map (hd0) (hd1)

map --rehook

root (hd0,0)

chainloader +1

boot


:good: ^_^ ^_^ Thank you, works a treat. This has been frustrating me for so long, I have been able to get all my other recovery CD images to boot fine, just this one. Now they all work. You really are a hoopy frood!
I am also having some trouble getting a bootable DOS CD image, but sure this will fix it too.
Cheers
Dougal

#17 tinybit

tinybit

    Gold Member

  • Developer
  • 1078 posts
  •  
    China

Posted 06 April 2009 - 09:07 AM

Thank you tinybit, sorry for ignoring you, I wasn't paying attention to the name on the last response, just assumed it was jaclaz again . :good:


Oh, I like that very much ^_^ I just cannot believe my English has become so well as of Jaclaz over the past several months. Thank you so much for your encouragement in this very exciting way.

Now they all work.


You did not mention whether or not the following could also work:
map (hd0,0)/boot/Ghost.iso (0xff)

map --hook

chainloader (0xff)

boot

Could you try it with the latest grldr(or grub.exe), please?

If it still failed, please post the messages displayed, and if you would like, you may also post the partition table of the emulated HD image( seemed to be osboot.img). Thanks in advance.

#18 Dougal

Dougal

    Newbie

  • Members
  • 14 posts
  •  
    Australia

Posted 06 April 2009 - 11:29 AM

Oh, I like that very much :good: I just cannot believe my English has become so well as of Jaclaz over the past several months. Thank you so much for your encouragement in this very exciting way.



You did not mention whether or not the following could also work:

map (hd0,0)/boot/Ghost.iso (0xff)

map --hook

chainloader (0xff)

boot

Could you try it with the latest grldr(or grub.exe), please?

If it still failed, please post the messages displayed, and if you would like, you may also post the partition table of the emulated HD image( seemed to be osboot.img). Thanks in advance.


Will try tomorrow, bedtime now, will let you know how it goes. Pardon my ignorance, but how do I post the partition table? Do you mean a hex dump, or is it save the boot sector properties to .bin file in WinImage? ^_^
Cheers
Dougal

#19 tinybit

tinybit

    Gold Member

  • Developer
  • 1078 posts
  •  
    China

Posted 06 April 2009 - 12:23 PM

In any way you would like, please. Hex dump is good enough for me. Thanks.

#20 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 06 April 2009 - 12:31 PM

tinybit, the first Chinese to write English like an Italian? ^_^

Hardly a compliment. :good:

Well, we do have the example of one of the greatest writers of the whole English Literature, Joseph Conrad, who was a Polish, so we may dream....

^_^

@Dougal
Easiest would probably be just getting the first sector (512 bytes) off the osboot.img file and post it compressed in a .zip or .7z archive.
You can use a hex editor to do it or, if you are familiar with command line apps, dsfi/dsfo from dsfok toolkit would do:
http://members.ozema...eezip/freeware/


jaclaz

#21 Dougal

Dougal

    Newbie

  • Members
  • 14 posts
  •  
    Australia

Posted 06 April 2009 - 12:47 PM

Thanks jaclaz, that's easy. :good:

tinybit, have attached the partition table as requested. I will play with the 0.4.4-2009-03-30 version tomorrow.

Cheers
Dougal

Attached Files



#22 tinybit

tinybit

    Gold Member

  • Developer
  • 1078 posts
  •  
    China

Posted 06 April 2009 - 01:00 PM

tinybit, the first Chinese to write English like an Italian? ^_^

Hardly a compliment. :good:


Emm, but I think that Italian is ^_^ ^_^

#23 tinybit

tinybit

    Gold Member

  • Developer
  • 1078 posts
  •  
    China

Posted 06 April 2009 - 01:10 PM

I will play with the 0.4.4-2009-03-30 version tomorrow.

Cheers
Dougal


Oh, no, I am sorry I could have puzzled you.

The files you need to download are here:

http://nufans.net/grub4dos/grldr
http://nufans.net/grub4dos/grub.exe

They are not in the 2009-03-30 zip ball.

And in about 20 minutes I will show you the error in the partition table.

#24 tinybit

tinybit

    Gold Member

  • Developer
  • 1078 posts
  •  
    China

Posted 06 April 2009 - 01:59 PM

The original partition table is
000001B0   00 00 00 00  00 00 00 00  00 00 00 00  00 00 80 01

000001C0   01 00 04 FE  3F FE 3F 00  00 00 04 BC  00 00 00 00
It should be corrected to either this one
000001B0   00 00 00 00  00 00 00 00  00 00 00 00  00 00 80 01

000001C0   01 00 04 2E  0E 03 3F 00  00 00 04 BC  00 00 00 00
or this one
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 65 EF  00 00 00 00

OK, I will also update the grub4dos to work around this issue. I mean the original partition table will be acceptable with the next build.

#25 Dougal

Dougal

    Newbie

  • Members
  • 14 posts
  •  
    Australia

Posted 13 April 2009 - 05:48 AM

Oh, I like that very much :) I just cannot believe my English has become so well as of Jaclaz over the past several months. Thank you so much for your encouragement in this very exciting way.

You did not mention whether or not the following could also work:

map (hd0,0)/boot/Ghost.iso (0xff)

map --hook

chainloader (0xff)

boot

Could you try it with the latest grldr(or grub.exe), please?

If it still failed, please post the messages displayed, and if you would like, you may also post the partition table of the emulated HD image( seemed to be osboot.img). Thanks in advance.


Sorry for the delay have been busy. I tried method above and as expected it didn't work, invalid partition.
I downloaded the grldr from your link (not the 0.4.4-2009-03-30 one), and it works. :) :) After chainloader (0xff) I get:

Warning! Partition table of HD image is faulty(err=28).

in with the rest of the status message, when I boot it loads correctly. Also appears to be much faster than when I booted the OSBOOT.IMG directly as per your previous post.
I will next try patching the partition table of OSBOOT.IMG and load with previous version of grldr.

Cheers and thanks so much for your help :)

Dougal




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users