LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2011, 12:57 PM   #1
p3ini
LQ Newbie
 
Registered: Jun 2011
Location: Australia
Posts: 7

Rep: Reputation: Disabled
Unhappy Help me with Arch Linux and Windows XP dualboot, grub.cfg messed!!


Hi.

I have problems with booting Windows XP.

I can boot to Arch Linux, but not to Windows XP, because Windows XP isn't in the Grub OS selection list.

I have tried to edit the grub.conf file, but the Windows XP doesn't come to the list.

And, I don't have a menu.lst file, is it normal?

Here's what I have inside my grub.conf file:

Quote:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
set menu_color_normal=light-blue/black
set menu_color_highlight=light-cyan/blue

insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set a149e390-609b-44d3-81cf-fa51dbbfee20
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768x32
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 44c9993a-0f79-4f19-b445-cd8cee211a39
set locale_dir=($root)/grub/locale
set lang=fi
insmod gettext
set timeout=5

insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 44c9993a-0f79-4f19-b445-cd8cee211a39
set locale_dir=($root)/grub/locale
set lang=fi
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Arch Linux, with Linux vmlinuz26-ice" --class archlinux --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 44c9993a-0f79-4f19-b445-cd8cee211a39
echo Loading Linux vmlinuz26-ice ...
linux /vmlinuz26-ice root=/dev/disk/by-uuid/a149e390-609b-44d3-81cf-fa51dbbfee20 ro console=tty1 splash=silent,fadein,fadeout,theme:arch-black-spin quiet
echo Loading initial ramdisk ...
initrd /kernel26-ice.img
}
menuentry "Arch Linux, with Linux vmlinuz26-ice Fallback" --class archlinux --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 44c9993a-0f79-4f19-b445-cd8cee211a39
echo Loading Linux vmlinuz26-ice ...Loading Linux Fallback ...
linux /vmlinuz26-ice root=/dev/disk/by-uuid/a149e390-609b-44d3-81cf-fa51dbbfee20 ro console=tty1 splash=silent,fadein,fadeout,theme:arch-black-spin quiet
echo Loading initial ramdisk ...
initrd /kernel26-ice-fallback.img
}
menuentry "Arch Linux, with Linux vmlinuz26-ck" --class archlinux --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 44c9993a-0f79-4f19-b445-cd8cee211a39
echo Loading Linux vmlinuz26-ck ...
linux /vmlinuz26-ck root=/dev/disk/by-uuid/a149e390-609b-44d3-81cf-fa51dbbfee20 ro console=tty1 splash=silent,fadein,fadeout,theme:arch-black-spin quiet
echo Loading initial ramdisk ...
initrd /kernel26-ck.img
}
menuentry "Arch Linux, with Linux vmlinuz26-ck Fallback" --class archlinux --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 44c9993a-0f79-4f19-b445-cd8cee211a39
echo Loading Linux vmlinuz26-ck ...Loading Linux Fallback ...
linux /vmlinuz26-ck root=/dev/disk/by-uuid/a149e390-609b-44d3-81cf-fa51dbbfee20 ro console=tty1 splash=silent,fadein,fadeout,theme:arch-black-spin quiet
echo Loading initial ramdisk ...
initrd /kernel26-ck-fallback.img
}
menuentry "Arch Linux, with Linux vmlinuz26" --class archlinux --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 44c9993a-0f79-4f19-b445-cd8cee211a39
echo Loading Linux vmlinuz26 ...
linux /vmlinuz26 root=/dev/disk/by-uuid/a149e390-609b-44d3-81cf-fa51dbbfee20 ro console=tty1 splash=silent,fadein,fadeout,theme:arch-black-spin quiet
echo Loading initial ramdisk ...
initrd /kernel26.img
}
menuentry "Arch Linux, with Linux vmlinuz26 Fallback" --class archlinux --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 44c9993a-0f79-4f19-b445-cd8cee211a39
echo Loading Linux vmlinuz26 ...Loading Linux Fallback ...
linux /vmlinuz26 root=/dev/disk/by-uuid/a149e390-609b-44d3-81cf-fa51dbbfee20 ro console=tty1 splash=silent,fadein,fadeout,theme:arch-black-spin quiet
echo Loading initial ramdisk ...
initrd /kernel26-fallback.img
}
{
title Windows XP
root (hd0,1)
savedefault
makeactive
chainloader +1
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
And "Arch Linux, with Linux vmlinuz26-ck" is the only thing what works in the selection list. So, no Windows XP in the list.

I tried to find solution to this problem with Google, but I didn't found :S

Please help me and answer fast!

(And I'm new in this forum & sorry for bad english!)


- p3ini
 
Old 06-11-2011, 01:07 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,542

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
The file you posted is the grub.cfg file which Arch is apparently now using. The entry you have for your windows installation on sda1 would probably work in Grub Legacy. You have Grub 2 so it won't work. You need an entry for windows which is similar to your Arch entry. For windows 7 on sda1, the entry below should work. You haven't posted partition information but your entry points to the first disk, first partition for windows
.
Quote:
menuentry "Windows 7 " {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set a0a03a5ca03a395c
chainloader +1
}
You will need to change the entry after set in the fifth line above to whatever your windows UUID is which you should be able to get by using the "blkid" command. If you can't do that, run the command: fdisk -l (lower case Letter L) as root in Arch terminal and post it here.
 
Old 06-11-2011, 01:47 PM   #3
p3ini
LQ Newbie
 
Registered: Jun 2011
Location: Australia
Posts: 7

Original Poster
Rep: Reputation: Disabled
Unhappy

Oh okay, I don't have Windows 7, are those commands only to Windows 7?

But I did as you said, I wrote those commands to the grub.conf file, then I used blkid command and copied the code on the grub.conf file. So that's okay, no need for fdisk -l command?

BUT, then I restarted the computer, and it didn't have a choice for Windows XP!!

Did I do something wrong? Here's a little piece what I changed in the grub.conf file:

Quote:
...
}
menuentry "Windows XP"
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)
search --no-floppy --fs-uuid --3EE634C514F8A15B
chainloader +1
}
### END /etc/grub.d/10_linux ###
...
Help Please!

- p3ini
 
Old 06-11-2011, 02:02 PM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
...
}
menuentry "Windows XP"
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)
search --no-floppy --fs-uuid --3EE634C514F8A15B
chainloader +1
}
### END /etc/grub.d/10_linux ###

You did not copy as Yancek suggested, please recheck

menuentry "Windows XP" {
 
1 members found this post helpful.
Old 06-11-2011, 02:22 PM   #5
p3ini
LQ Newbie
 
Registered: Jun 2011
Location: Australia
Posts: 7

Original Poster
Rep: Reputation: Disabled
Oops Stupid me.

Now I wroted exactly as yancek suggested, and it's working!

Thanks for yancek and Larry Webb! =)

- p3ini
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Arch Linux messed something up with my HDD? theif519 Arch 3 06-01-2011 09:36 PM
Fonts look messed up in Arch Linux + Screen Shot Irad Linux - General 5 04-29-2011 04:00 AM
[Ubuntu 9.10] Installed windows 7, grub is messed up Michio Linux - Newbie 4 11-25-2009 02:31 PM
Dualboot/Grub question. Installing windows AFTER linux? Zaskar Linux - Software 9 09-09-2007 03:51 AM
grub+dualboot with xp/linux linuxtesting2 Linux - General 5 11-15-2004 11:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration