Page 1 of 1

Grub 1.97 not loading Win7 partition - [SOLVED]

PostPosted: Sun Aug 08, 2010 1:00 pm
by Wurnman
Hey all, been all over the web to find the easiest solution to fix my problem.

First off im a noob at linux really been fixing MS OS's and its problems for yrs but can hardly remember any Dos codes anymore, so keep it simple as much as possible pls.

OK, I have 4 hdd's in my pc. One is MS Win7 which was previously installed and it worked and I could in the Grub menu select Win7 and boot into it or select Linux and boot. My Win7 hdd crashed and I replaced it with new one and new Win7 Os installed. Now the grub menu can log into all variations of Linux but not the Win7 option.

How do I fix it in the Linux GUI using a Terminal window? Ive managed to subtract the following info if it helps:
wurnman@wurnman-desktop:~$ sudo blkid
[sudo] password for wurnman:
/dev/sda1: UUID="2CAC6F96AC6F597A" LABEL="Local Disk" TYPE="ntfs"
/dev/sdb1: UUID="c98ee0d0-99b6-428c-8576-ef328d14913d" TYPE="swap"
/dev/sdb2: UUID="e5edf52b-0ec8-4213-a132-ac2484f9f138" TYPE="ext4"
/dev/sdc1: UUID="F260C1A160C16D43" LABEL="GameInstalls" TYPE="ntfs"
/dev/sdd1: UUID="C4EAC266EAC253F8" LABEL="Multimedia" TYPE="ntfs"
/dev/ramzswap0: TYPE="swap"

Currently my old Grub MS Win7 line was "ea4ca"...something and is ofcoarse not working. :|

Re: Grub 1.97 not loading Win7 partition

PostPosted: Sun Aug 08, 2010 1:21 pm
by Admin-Amir
Hello Wurnman & welcome to the U.E Forum.

I will say First the Grub can not take care of 5 options on boot.
Please look in the How To section for my post on Grub.
Hope this will let you understand were are your problems on your machine.

Re: Grub 1.97 not loading Win7 partition

PostPosted: Sun Aug 08, 2010 1:25 pm
by Wurnman
Hello there and thx for quick reply... Its weird but I only have 4 hdd's in my pc so dont know why theres 5 options. I will have a look at you how to, also hopes it helps.

Re: Grub 1.97 not loading Win7 partition

PostPosted: Sun Aug 08, 2010 3:21 pm
by Wurnman
OK, ive gone through the Grub How to's but well, gonna take me awhile.

Ive managed to nail down the problem and really thinking its a simple change in the grub.cfg file that should fix things for me, currently this is the line which I needs changing BUT i cannot save the grub.cfg file

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set aca41baca41b77d2
chainloader +1
}

Ive somehow, cant remember how but typed in some commands in my Terminal and basically discovered the --set aca41baca41b77d2 line should be --set 2cac6f96ac6f597a

I know this should work... can this be done? or must I go a very tough and long way?

Re: Grub 1.97 not loading Win7 partition

PostPosted: Sun Aug 08, 2010 5:16 pm
by Admin-Amir
Hello Wurnman.

If this can be done :D
In Linux you can do allot , but you have to be very careful.
when you Edit Grub to use the root use the :
Code: Select all
gksudo nautilus

Then navigate to the grub.cfg edit and save the file.

Re: Grub 1.97 not loading Win7 partition

PostPosted: Mon Aug 09, 2010 3:33 am
by Wurnman
Good morning Amir

Thank you for your help your last bit of advice did it for me.

Im in Win7 now typing this. Going to reboot soon, Im missing Linux too much now. :P

Re: Grub 1.97 not loading Win7 partition

PostPosted: Mon Aug 09, 2010 4:05 am
by Admin-Amir
Good morning Wurnman.

And you very welcome <BREW> ;)
Hope now you are set to have fun with the U.E System ;)
Thank you for your update on the issue.
If the issue was solved for you - then update the thread as [SOLVED] please.