LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-05-2010, 01:20 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,330

Rep: Reputation: 83
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

Last edited by Xeratul; 12-05-2010 at 01:23 PM.
 
Old 12-05-2010, 04:08 PM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
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

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


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 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


All times are GMT -5. The time now is 12:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration