Jump to content











Photo
- - - - -

grub4dos help!


  • Please log in to reply
9 replies to this topic

#1 MikeyC

MikeyC
  • Members
  • 6 posts
  •  
    United Kingdom

Posted 05 May 2010 - 04:11 PM

I've been given a custom built pc by my brother in law - to cut a long story short, my other half and her bro have had a falling out, and i've encountered a problem that I've no idea how to fix!

The pc boots straight into Grub4dos. I don't have any boot disks with the pc either. I've been googling commands to try and resolve, this is what I have so far:

root (hd0,
Possible partitions are:
Partition num: 0, active, Filesystem type is ntfs, partition type 0x07
Partition num: 1, Filesystem type is ntfs, partition type 0x07
Partition num: 2, Filesystem type unknown, partition type 0x07

Geometry (hd0,0)
drive 0x80(LBA): C/H/S=1023/224/19, Sector Count/Size=-4353888/512
Partition num: 0, active, Filesystem type is ntfs, partition type 0x07
partition num: 1, filesystem type is ntfs, partition type 0x07
partition num: 2, filesystem type unknown, partition type 0x07

geometry (hd0,1) is same as above

geometry (hd0,2) - same as above

root (hd0,0)
find /

Possible files are : Boot bootmgr bootmgr.bak BOOTSECT.BAK STOEG System\ Volume\ Information SYSTEM~1 wedaolu

root (hd0,1)
find /

Possible files are : PerfLogs USERS autoexec.bat Config.Msi config.sys Documents\ and\ Settings DOCUME~1 hiberfil.sys MSOCache NVIDIA pagefile.sys Program\ Files ProgramData PROGRA~1 PROGRA~2 Recovery System\ Volume\ Information SYSTEM~1 TokensBackup TOKENS~1 Windows

root (hd0,2)
find /

Error 17: Cannot mount selected partition

If I then go back into root (hd0,0) and try to boot:

root (hd0,0)
chainloader /bootmgr

Error 13: Invalid or unsupported executable format

Please help! :cheers:

We have a lot of wedding photos on the hard drive, so we really don't want to format the disk. OS is Windows 7 Ultimate too.

Thanks!

#2 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 05 May 2010 - 08:28 PM

It looks like you have a standard Win7 install. I am guessing 64-bit Win 7 installed.
The first partition (hd0,0) is the boot partition
The 2nd one is the Windows system partition.

You need to get rid of grub, it is trying to run the x64 bit version of bootmgr and does not recognise it as a valid executable (I am guessing).

I would suggest (as you have no Win7 DVD) that you download the Windows 7 WAIK and install it on another Windows system.
Then make a WinPE bootable flash drive.
Then use bootsect to restore the boot sector.

Or much easier - borrow a Dell or HP or any Win 7 Recovery DVD from a friend and boot from it and choose 'Repair' - but it must be a 64-bit version of Win 7.

#3 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 06 May 2010 - 04:57 AM

i am just curious what happens when you try to use the following

root (hd0,0)
chainloader (hd0,0)+1



( make sure after the last command , u give final " boot " command ,without quotes )

#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 06 May 2010 - 01:39 PM

Check the size of bootmgr.bak
Try chainloading it.
It does sound like "something" has been renamed to bootmgr (and hopefully the "real" bootmgr has been renamed to bootmgr.bak):
root (hd0,0)

chainloader /bootmgr.bak

boot

Another way is to prepare a bootmgr boot floppy:
http://www.multiboot....uk/floppy.html
(just read windows 7 instead of Vista) and map it through grub4dos.

:cheers:
Wonko

#5 MikeyC

MikeyC
  • Members
  • 6 posts
  •  
    United Kingdom

Posted 06 May 2010 - 02:50 PM

Thanks for all your replies guys, will have a quick go at it now and report back with any issues!

#6 MikeyC

MikeyC
  • Members
  • 6 posts
  •  
    United Kingdom

Posted 06 May 2010 - 02:59 PM

i am just curious what happens when you try to use the following

root (hd0,0)
chainloader (hd0,0)+1



( make sure after the last command , u give final " boot " command ,without quotes )


Trying this, I get:

chainloader /bootmgr

Error 13: Invalid or unsupported executable format

#7 MikeyC

MikeyC
  • Members
  • 6 posts
  •  
    United Kingdom

Posted 06 May 2010 - 03:03 PM

Check the size of bootmgr.bak
Try chainloading it.
It does sound like "something" has been renamed to bootmgr (and hopefully the "real" bootmgr has been renamed to bootmgr.bak):

root (hd0,0)

chainloader /bootmgr.bak

boot


When I click enter after chainloader /bootmgr.bak, it returns:

chainloader /bootmgr.bak

Error 13: Invalid or unsupported executable format

#8 MikeyC

MikeyC
  • Members
  • 6 posts
  •  
    United Kingdom

Posted 06 May 2010 - 03:25 PM

Ok, some progress!

Got myself a 64 bit Win 7 repair disk. Managed to boot from the disk onto the windows repair menu. I'm presented with the System Recovery Options menu, which shows I was running Windows 7.

Here I have 2 choices:
1) Use recovery tools to repair windows
2) Restore computer using a system image created earlier.

I select option 1 and get an error pop up stating:

"This version of System Recovery Options is not compatible with the version of Windows you are trying to repair. Try using a recovery disc that is compatible with this version of Windows."

Am I right in assuming I need the 32 bit repair disk?

#9 MikeyC

MikeyC
  • Members
  • 6 posts
  •  
    United Kingdom

Posted 06 May 2010 - 03:33 PM

Got the 32 bit repair disk, its worked! Big thanks to all of you that helped :cheers:

#10 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 06 May 2010 - 04:23 PM

Got the 32 bit repair disk, its worked! Big thanks to all of you that helped :cheers:


glad it worked out finally .

keep it up.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users