LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Grub problem. Help! (https://www.linuxquestions.org/questions/linux-newbie-8/grub-problem-help-4175431220/)

icet 10-08-2012 05:44 PM

Grub problem. Help!
 
I installed Linux Mint 13 Cinnamon (Maya) yesterday. I already have Windows XP installed. The first problem I faced was that the grub did not appear. Instead when I started the PC I saw "Frequency out of range - 90 K / 59 HZ" on the monitor and after a while Mint loaded. I posted this problem on the Mint forums and after much efforts and guesses with guidance from the forums I have been successful to bring grub bootloader to choose which OS to use. This was really a very tough problem to resolve. But one thing still remianed unresolved. That is when I select Windows XP it does not boot and the grub boot loader returns.


For your information, this is how I managed to bring the grub bootloader:


I had to switch from graphical display to console display. I did the following:


“Open a terminal and run:

Code: Select all
gksudo gedit /etc/default/grub


Find the following line of text, and remove the # in front of it:

Code: Select all
#GRUB_TERMINAL=console


Save and close the file and then run:

Code: Select all
sudo update-grub2


This should make GRUB be able to display again."



Now the grub is there but I can't boot into Windows XP. Is there some solution to this problem? I am very confused. I have hope that someone here would be able to guide me in this. Kindly help!:)

frankbell 10-08-2012 08:18 PM

Apparently you aren't alone in encountering this issue.

This blog post should help:

http://blog.ffextensionguru.com/2012...er-in-mint-13/

Wim Sturkenboom 10-08-2012 11:49 PM

Thanks for posting your solution; coincidence that I just advised the same in another thread for Ubuntu 12.04. Any distro based on Ubuntu can suffer from it.

Can you please post the contents of /boot/grub/grub.cfg and the output of sudo fdisk -l. Please use code tags as shown below; type the below two words including the square brackets: [code][/code]

Next paste your content or output in between the code tags
[code]paste your stuff here[/code]

The result will be
Code:

your pasted stuff

icet 10-09-2012 08:31 AM

Quote:

Originally Posted by Wim Sturkenboom (Post 4800904)
Thanks for posting your solution; coincidence that I just advised the same in another thread for Ubuntu 12.04. Any distro based on Ubuntu can suffer from it.

Can you please post the contents of /boot/grub/grub.cfg and the output of sudo fdisk -l. Please use code tags as shown below; type the below two words including the square brackets: [code][/code]

Next paste your content or output in between the code tags
[code]paste your stuff here[/code]

The result will be
Code:

your pasted stuff



Hi Wim Sturkenboom,


I tried to paste the commands exactly as you informed like
Code:

/boot/grub/grub.cfg
and
Code:

sudo fdisk -l
. That did not work. Then I pasted the two commands without the code tags. "/boot/grub/grub.cfg" did not work. However "sudo fdisk -l" worked and below is the result:


Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00220022

Device Boot Start End Blocks Id System
/dev/sda1 * 63 122881184 61440561 7 HPFS/NTFS/exFAT
/dev/sda2 122881185 312560639 94839727+ f W95 Ext'd (LBA)
/dev/sda5 122881248 245762369 61440561 e W95 FAT16 (LBA)
/dev/sda6 245766144 250066943 2150400 82 Linux swap / Solaris
/dev/sda7 250068992 312559615 31245312 83 Linux

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
224 heads, 19 sectors/track, 36724 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe273e273

Device Boot Start End Blocks Id System
/dev/sdb1 19 156293087 78146534+ 7 HPFS/NTFS/exFAT

Wim Sturkenboom 10-09-2012 10:26 AM

The code tags are for the forum only; sorry for not being clear. And /boot/grub/grub.cfg is a (text) file, so you need to open it with an editor, copy the contents and paste here (between code tags ;)).

The specific part that we're interested in is the entry for Windows; mine is this
Code:

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

Your one should look about the same.


All times are GMT -5. The time now is 09:57 AM.