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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-11-2012, 03:03 AM
|
#1
|
LQ Newbie
Registered: Jun 2012
Posts: 5
Rep: 
|
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!
|
|
|
06-11-2012, 03:47 AM
|
#2
|
LQ Veteran
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,279
|
|
|
|
06-11-2012, 04:13 AM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,335
|
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.
|
|
|
06-11-2012, 04:37 AM
|
#4
|
LQ Newbie
Registered: Jun 2012
Posts: 5
Original Poster
Rep: 
|
Quote:
Originally Posted by syg00
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!
|
|
|
06-11-2012, 04:50 AM
|
#5
|
LQ Newbie
Registered: Jun 2012
Posts: 5
Original Poster
Rep: 
|
Quote:
Originally Posted by rokytnji
|
thanks.. I've tried downloading it, but failed
and now I'm downloading the boot repair disk!
|
|
|
06-11-2012, 05:10 AM
|
#6
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
Boot your linux system
or as root
|
|
|
06-11-2012, 05:12 AM
|
#7
|
LQ Newbie
Registered: Jun 2012
Posts: 5
Original Poster
Rep: 
|
Quote:
Originally Posted by syg00
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
|
|
|
|
06-11-2012, 05:58 AM
|
#8
|
LQ Newbie
Registered: Jun 2012
Posts: 5
Original Poster
Rep: 
|
Quote:
Originally Posted by EDDY1
Boot your linux system
or as root
|
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
|
|
|
|
06-11-2012, 10:41 AM
|
#9
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,221
|
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.
|
|
|
All times are GMT -5. The time now is 09:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|