Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-05-2010, 01:20 PM   #1
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
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:
autochk not found
# 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:
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
/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

Last edited by Xeratul; 12-05-2010 at 01:23 PM.
Old 12-05-2010, 04:08 PM   #2
LQ Addict
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,291

Rep: Reputation: Disabled

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

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


Last edited by aus9; 12-05-2010 at 04:17 PM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 02:39 PM
[SOLVED] Multi-boot grub2 destroyed on windows 7 reboot hhoyt Linux - Software 5 08-17-2010 03:01 PM
[SOLVED] How to remove GRUB2 & Ubuntu from MacBook Pro with Windows 7, Ubuntu and OS X? lupusarcanus Linux - Newbie 8 07-18-2010 06:38 PM
[SOLVED] How does Grub2 find the grub.cfg file? LenW Linux - Software 8 03-15-2010 03:28 AM
Grub2 and windows menuentries? Jykke Linux - Software 9 01-10-2010 01:48 PM > Forums > Linux Forums > Linux - General

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

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