LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2008, 09:50 PM   #1
blitzX
Member
 
Registered: Jul 2004
Location: Canada
Distribution: gentoo
Posts: 37

Rep: Reputation: 15
Dual boot attempt, grub error 13.


Hello, I'm a Linux vet. and have managed dual booting before.
This time I made the attempt to install Windows Xp after Gentoo.
To do this I had to first delete the partition table to overcome
Windows' Linux safeguards, and then rewrite it the same after
the installation was complete.
When all was done and my original MBR was replaced, Grub gives me
Error 13 when trying to boot into Windows, but I can successfully
boot into Linux. If I delete the partition table again and create
only the windows partition, and replace the MBR with that installed
by windows xp, I can boot into it.
The only problem that I can think of causing this is that the windows
partition is not the first one, or possible the new partition are
slightly off what they should be.

also,when I write the partition table to be this:

Code:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          12       96358+  83  Linux
/dev/hda2              13        2444    19535040   83  Linux
/dev/hda3            2445        9605    57520732+   7  HPFS/NTFS
/dev/hda4            9606        9729      996030   82  Linux swap / Solaris
it eventually turn in to this without warnings: (I have no explanation of how)

Code:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1          12       96358+  83  Linux
/dev/hda2              13        2444    19535040   83  Linux
/dev/hda3            2445        9605    57520732+   5  Extended
/dev/hda4            9606        9729      996030   82  Linux swap / Solaris
/dev/hda5   ?       16022      121966   850995205   72  Unknown

Any help, before I attempt a full partition reorder, would be much appreciated.
-Ayron
 
Old 04-09-2008, 10:23 PM   #2
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 582

Rep: Reputation: 31
Why don't u just installed XP first and Linux after ?
 
Old 04-09-2008, 10:38 PM   #3
blitzX
Member
 
Registered: Jul 2004
Location: Canada
Distribution: gentoo
Posts: 37

Original Poster
Rep: Reputation: 15
At the time I didn't want to delete my Linux installation, just so I could run a few programs or games. Currently what I would do is just back up the entire partitions then rewrite the partition table in a more stable way. But that would take some down time I don't really care to have. I thought that since both partitions seem to be accessible one way or the other, that there might be some simple fix to the problem. Also I am just curious.
 
Old 04-09-2008, 10:44 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Can't you dd the gentoo partition off to somewhere else and dd it back after the windows install?
 
Old 04-09-2008, 10:58 PM   #5
blitzX
Member
 
Registered: Jul 2004
Location: Canada
Distribution: gentoo
Posts: 37

Original Poster
Rep: Reputation: 15
This seemed to be a quicker solution at the time, but that is what I may do now. But once again, I am aware of my alternatives, i was just wondering why this didn't work. Also my external hard drive is quite full, which means i would have to sacrifice data, or move content from the ex-hd to my hd then back again, then back again when done. Which I just found to be inconvenient.
 
Old 04-10-2008, 03:26 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,473

Rep: Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453
Did you do the partitioning with Partition Manager by any chance ???.
Doing all the partitioning with gparted is fine - I do it all the time. Same with adding XP to a Linux box. Only thing that needs to be fixed is the bootloader.

Don't know why all the grief.
 
Old 04-10-2008, 02:38 PM   #7
blitzX
Member
 
Registered: Jul 2004
Location: Canada
Distribution: gentoo
Posts: 37

Original Poster
Rep: Reputation: 15
...................

Last edited by blitzX; 04-10-2008 at 02:39 PM.
 
Old 04-10-2008, 02:39 PM   #8
blitzX
Member
 
Registered: Jul 2004
Location: Canada
Distribution: gentoo
Posts: 37

Original Poster
Rep: Reputation: 15
Originally I used cfdisk, then switched to fdisk, after I started noticing a discrepancy in what I was writing and what was being written to the table. I believe this was because of cfdisk forcing partition to end on the end of a cylinder, which is strange because I was only recreating what I had originally created with cfdisk.
The boot loader was never a problem, as I just backed up what I had with dd. As well as the one installed by windows.

It seem to me that I may have, at some point, shifted the partitions by accident, and screwed up the table itself (If that is at all possible). And today I will just reinstall.

I have done something similar to this before without any problems, which is why I am confused about the problem now, but I suppose I will just give up.
 
  


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
Grub Error 21 trying to dual boot THEembodyment Ubuntu 3 08-04-2007 10:00 PM
Grub error 18 on dual boot SpartacusJones Ubuntu 9 06-28-2007 10:56 PM
GRUB dual boot Error 13 Steve Riley Fedora 4 01-25-2007 03:23 PM
Messed up an attempt at dual boot install- GRUB on one, LILO on the other 0mn1z10n Linux - General 4 12-04-2005 12:57 PM
GRUB read error with dual boot with XP gatekeepa Linux - Newbie 1 06-14-2003 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:15 PM.

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