LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   grub2 , does not find the windows XP ... (https://www.linuxquestions.org/questions/linux-general-1/grub2-does-not-find-the-windows-xp-848490/)

Xeratul 12-05-2010 01:20 PM

grub2 , does not find the windows XP ...
 
sda2 is normally xp windows, but it installs a wrong partition type, and when I apply the mbr.bin, it works again :(
with grub2, nope, it says:
Code:

autochk not found
Code:

# fdisk  -l

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 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: 0x0005c9c1

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        784    6290896+  83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2            784        2823    16382976  af  HFS / HFS+
/dev/sda3            2823        7296    35929089    5  Extended
/dev/sda5            2823        6659    30809088  83  Linux
/dev/sda6            6659        7296    5118976  82  Linux swap / Solari

and when I mount /dev/sda2, I get something completely all right:
Quote:

ls /mnt/windows/
AUTOEXEC.BAT CONFIG.SYS IO.SYS NTDETECT.COM pagefile.sys System Volume Information
boot.ini Documents and Settings MSDOS.SYS ntldr Program Files WINDOWS
Quote:

/dev/sda2 on /mnt/windows type fuseblk (rw,allow_other,blksize=4096)
If I put the mbrofxp.bin (bs=512 count=1), then xp boots well :) but no grub2 :( so no linux :(

aus9 12-05-2010 04:08 PM

hi

Have you used some kind of partition tool on that hard drive or a special boot manager in the past?

IMHO windows should not be on a hfs partition

http://en.wikipedia.org/wiki/HFS_Plus

which may explain why grub2 does not use os-prober on it.

2) That you can do something and then get xp to boot? suggests its your MBR that is faulty probably from a third party software interference.

3) The general consensus is to have windows on first partition....=c and install linux on later editions.

4) Try editting your /etc/grub.d/40_custom using root powers and add an entry something like

menuentry "Chainload partititon 2" {
set root=(hd0,2)
chainloader +1
}

then run, with root powers

Code:

update-grub


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