Difficulty loading Vista Partition through Grub
Dear Linux Community,
I was hoping you could help me with a problem I have been having. I installed Gentoo using a minimal install CD with a grub bootloader and unfortunately I am having trouble booting my existing windows partition. When grub starts, I get the option to boot through linux (which works as expected) or boot through windows Vista. I select the windows Vista option and I get the following respective window displaying the following error message: Code:
Booting 'Microsoft Windows Vista' When I type rootnoverify(hd0, and use tab completion, I get the following message: Code:
Possible partitions are: Partition 0: Windows vista partition Partition 1: Linux boot partition Partition 2: Linux swap partition Partition 3: Linux root partition At first, I thought that my windows partition might be damaged and the filesystem type cannot be detected by grub. I loaded linux in order to gain some more insight regarding my current partitions and their respective filetypes. I ran the following commands in the linux terminal with the following results: Code:
#fdisk /dev/sda I was hoping someone could help me fix this issue. At this point, recovering the files in my windows partition is my top priority. I am willing to reinstall linux at any time. Please note that I have no preference in terms of using grub as a bootloader. I used to have the default windows boot loader load both windows or Ubuntu at any time and worked perfectly. Any insight regarding on how to solve this problem would be greatly appreciated. Thanks! |
IT seems the active partition option has not been set. Search up on this. The Vista partition needs to be set Active. You get this option when installing grub, I am not sure how to edit the menu.lst file afterwards.
|
Try adding
makeactive between rootnoverify and chainloader |
Looks like an extraneous blank in the rootnoverify - after the comma.
|
Only one partition can be flagged as; "active or boot" for each drive. And so for your drive, the sda1 (ntfs, windows partition) must be marked as the only active boot partition. You can fix that by booting to a Linux tool called; GParted, here; http://gparted.sourceforge.net/ , also here is the grub site; http://www.gnu.org/software/grub/manual/grub.html ,also in your grub boot file for windows Vista you need to have it look like this; title Vista
root (hd0,0) makeactive chainloader +1 You can not use the makeactive option with rootnoverify because that sets the grub's root device without mounting, and the grub needs to mount a partition to make it active. To list all partitions most people use this here; fdisk -l , and windows XP and Vista will show the filesystem type as HPFS/NTFS, so that is correct, but you may need to run that check disk tool from booted to windows disk to repair the Vista NTFS file system. Also for grub every item must be exactly correct, and your; rootnoverify (hd0, 0) has a extra space which can not be there, it must be like this with no spaces; (hd0,0). |
Quote:
This is a legend perpetuated because the Windoze boot-loaders check this flag. grub and lilo don't care - and neither they should. If using either of these, the boot flag is irrelevant. I have found some BIOS code that checks for it though - obviously influenced by Redmond. |
Thank you for all the responses. I tried the following but unfortunately did not succeed. I have listed the results for each attempt to fix my problem.
syg00: You are right. There is an extraneous blank in my initial post. It was a typo I made when copying the information. I actually did not have a blank in my original grub configuration. billymayday: I tried adding the command makeactive between rootnoverify and chainloader. Unfortunately I get the same error as my initial post. That is: Code:
Error 13: Invalid or unsupported executable format Thank you everyone for all the help. Any additional help would be appreciated. |
Let's see your /boot/grub/menu.lst
|
In order to get a clearer picture of your setup, how about downloading the "boot_info_script.txt" to your desktop, and then do the following as root user:
Code:
bash ~/Desktop/boot_info_script.txt |
All times are GMT -5. The time now is 12:29 PM. |