LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-2012, 02:03 AM   #1
reagenda
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Rep: Reputation: Disabled
i can't booting my windows xp in grub!


hi, i have any problem here!!
my grub can't boot windows xp..

this is information about my hard disk partitions :

Quote:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x76376bf0

Device Boot Start End Blocks Id System
/dev/sda1 1 1698 13631488 27 Unknown
/dev/sda2 * 1698 14775 105047675+ 7 HPFS/NTFS
/dev/sda3 14776 30402 125518182 f W95 Ext'd (LBA)
/dev/sda5 14776 21435 53496418+ 7 HPFS/NTFS
/dev/sda6 21436 21679 1952768 82 Linux swap / Solaris
/dev/sda7 21679 24110 19529728 83 Linux
/dev/sda8 24110 30402 50536448 83 Linux
reagenda@reagenda:~$
this is my fstab :
Quote:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc nodev,noexec,nosuid 0 0
#Entry for /dev/sda7 :
UUID=d0dca761-84fe-403b-9faf-92ca986fd09b / ext4 errors=remount-ro 0 1
#Entry for /dev/sda8 :
UUID=14bc2ba0-658c-43d1-917d-ecce542a92bc /home ext4 defaults 0 2
/dev/sda1 /media/sda1 ntfs defaults,nls=utf8,umask=0222 0 0
#Entry for /dev/sda5 :
UUID=01CCDFCE5DA456D0 /media/sda5 ntfs defaults,nls=utf8,umask=0222 0 0
/dev/sda1 /media/windows fuseblk defaults,nosuid,nodev,allow_other,blksize=4096 0 0
#Entry for /dev/sda6 :
UUID=eda1daa3-2cf7-41f4-b4ed-e31e1b5c166c none swap sw 0 0
this is my grub.cfg :

Quote:
### BEGIN /etc/grub.d/10_linux ###

menuentry ' My EasyPeasy' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set d0dca761-84fe-403b-9faf-92ca986fd09b
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=d0dca761-84fe-403b-9faf-92ca986fd09b ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set d0dca761-84fe-403b-9faf-92ca986fd09b
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=d0dca761-84fe-403b-9faf-92ca986fd09b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set d0dca761-84fe-403b-9faf-92ca986fd09b
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set d0dca761-84fe-403b-9faf-92ca986fd09b
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

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

menuentry ” (windows xp on /dev/sda2)” {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 12cc6426cc6405f7
drivemap -s (hd0) ${root}
chainloader (hd0,1)+1
}
my windows xp appears in grub.
but, after I select it,. there is a black screen appears for a moment, and then back to the grub!

and /dev/sda2 (xp partition), couldn't mounted.. error 17!

thanks for helping me!
 
Old 06-11-2012, 02:47 AM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,064
Blog Entries: 21

Rep: Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470
Might be worth trying to use to fix your problem maybe. I don't dual boot with Windows much but when I do. I use grub legacy instead of grub2.

http://ubuntuforums.org/showthread.php?p=10871917

http://sourceforge.net/p/boot-repair/home/Home/

http://sourceforge.net/p/boot-repair-cd/home/Home/
 
Old 06-11-2012, 03:13 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Quote:
menuentry ” (windows xp on /dev/sda2)” {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 12cc6426cc6405f7
drivemap -s (hd0) ${root}
chainloader (hd0,1)+1
}
Interesting - says sda2 but points to sda1. Change both the (hd0,1) to (hd0,2). Grub2 counts differently to the old grub.

You may lose your changes anytime an update happens.
 
Old 06-11-2012, 03:37 AM   #4
reagenda
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Interesting - says sda2 but points to sda1. Change both the (hd0,1) to (hd0,2). Grub2 counts differently to the old grub.

You may lose your changes anytime an update happens.
i'll try it!
 
Old 06-11-2012, 03:50 AM   #5
reagenda
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rokytnji View Post
Might be worth trying to use to fix your problem maybe. I don't dual boot with Windows much but when I do. I use grub legacy instead of grub2.

http://ubuntuforums.org/showthread.php?p=10871917

http://sourceforge.net/p/boot-repair/home/Home/

http://sourceforge.net/p/boot-repair-cd/home/Home/
thanks.. I've tried downloading it, but failed
Quote:
Failed to fetch http://ppa.launchpad.net/yannubuntu/...86/Packages.gz 404 Not Found
E: Some index files failed to download, they have been ignored, or old ones used instead.
and now I'm downloading the boot repair disk!
 
Old 06-11-2012, 04:10 AM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Boot your linux system
Quote:
sudo update-grub
or as root
Quote:
update-grub
 
Old 06-11-2012, 04:12 AM   #7
reagenda
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Interesting - says sda2 but points to sda1. Change both the (hd0,1) to (hd0,2). Grub2 counts differently to the old grub.

You may lose your changes anytime an update happens.
i've tried it...
Quote:
error 12 : invalid device requested
 
Old 06-11-2012, 04:58 AM   #8
reagenda
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
Boot your linux system

Quote:
sudo update-grub
or as root
Quote:
update-grub
still does not help

Quote:
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.32-41-generic
Found kernel: /boot/vmlinuz-2.6.32-21-generic
Found GRUB 2: /boot/grub/core.img
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
 
Old 06-11-2012, 09:41 AM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,446

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Are Easy Peasy (Ubuntu and xp the only operating systems you have?
What is on sda1, the partition marked "Unknown" in your fdisk output?
Your fdisk output shows sda2 marked as the active partition so the suggestion above to change your menuentry to (hd0,2) should have worked if you xp boot files are on that partition?

Quote:
search --no-floppy --fs-uuid --set 12cc6426cc6405f7
Run the blkid command to see if you have a partition with the UUID above, the number/letter sequence after set. If so, which partition is it?
Are you running the update-grub command from Easy Peasy? It indicates searching for Grub menu.lst file and at the end it states updating /boot/grub/menu.lst...done. If you're using Grub2, where do you get the menu.lst file. The command should be updating the grub.cfg file. Your output shows there is a core.img file found also which is a Grub2 file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[Panic Mode] GRUB on Windows HDD. Not booting windows. Owndapwn Linux - Desktop 8 07-08-2011 05:50 PM
Booting Windows from grub krimsonking Linux - Newbie 4 08-15-2007 06:04 AM
Booting windows with grub m3tal Linux - General 12 11-07-2006 03:56 PM
GRUB not booting to windows qwert1029in Linux - Newbie 1 07-08-2006 07:00 PM
GRUB windows xp not booting mirage Linux - Newbie 2 05-14-2003 02:10 PM

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

All times are GMT -5. The time now is 09:18 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