LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 04-26-2009, 03:10 PM   #1
Abraxis
LQ Newbie
 
Registered: Jan 2009
Posts: 9

Rep: Reputation: 0
Dual Boot windows messed up partition table and bootloader


Okay, So I was previously running my system with Ubuntu 64bit as my primary OS, and dual booted to windows for running some games I couldn't get to work on linux.

The partition table looked like this

Device.........boot....Size......system
/dev/sda1..............7gb.......Linux swap / solaris
/dev/sda2......*.......200mb.....Linux (ext3)
/dev/sda3 .............170gb.....Linux (ext3)
/dev/sda4..............60gb......NTFS (windows partition)

(all primary)

I got a copy of windows xp pro 64bit to upgrade the crappy 32bit. So I go to install it, delete the NTFS partition via the windows xp installation screen. Select the unalocated space and try to make a clean partition in it. I get a message saying I can't format the space because the harddrive has the max number of partitions.

So I figure windows is just a big piece of crap and decide to go back to linux to setup the partition table with fdisk. I exit the installation and reboot. Now it won't boot to linux, it tells me to insert a system disk.

So I'm guessed windows had hijacked the bootloader or whatever when I installed it and that got deleted with the 4th windows partition. I threw in knoppix and added a bootflag to the second partition (the original linux boot partition). That didn't solve anything.

So I figured, whatever, I'll just make the new partition from knoppix, install windows in it and hope windows sorts out the bootloader issue.
Now looking at the partition table in fdisk, I notice something funny. the first three linux partitions show up, but the "start" "end" points seem all messed up. The first partition on the list now starts at 7701 (cylinder?). So it looks like the unpartitioned space is now before the partitions, where it used to be after, is it even possible for them to change??

Anyways, I made an NTFS partition in the free space with fdisk (get a message that disks are out of order; see an option in expert menu to fix order, but I'll leave that till you all educate me a little more). Reboot with windows cd, but it still doesn't like the partition (Windows fault tolerance).

So now I'm stumped, I copied all my files onto my external drive, but I don't want to just wipe the hard-drive and start over. If I could just figure out how to get the system to boot up with linux; whether that means repairing the old boot thing or simply enabling it somehow I have no idea, and why windows setup seems to think 4 primary partitions would be too many. Or if any of you notice some big error in logic with my actions or assumptions that would help to..

If you need more info ask and i'll tell

Last edited by Abraxis; 04-26-2009 at 04:03 PM.
 
Old 04-26-2009, 04:22 PM   #2
eltorodeoro
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 1
Windows does that...

try "SuperGRUBDisk." it's helped me out once or twice. can't give you specifics, but there are some pretty good tutorials out there on how to use it.

good luck!
 
Old 04-26-2009, 04:27 PM   #3
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Here is something that helped me when I ran into a similar problem...

http://www.gnu.org/software/grub/man...2dinstall.html

Basically...boot into a live cd (doesn't matter which one) and do...

Code:
grub-install /dev/hda
OR if you have a SATA drive...

Code:
grub-install /dev/sda
But do yourself a favor and learn to use the grub commands...because this will come up again...trust me...I speak from experience

-C

Last edited by custangro; 04-26-2009 at 04:31 PM.
 
1 members found this post helpful.
Old 04-26-2009, 04:45 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Let's see the output from "fdisk -l" (from Knoppix terminal)
 
  


Reply



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
Partition Table Recovery in Linux/XP Dual Boot PC kumarnine Linux - Software 3 04-19-2006 10:50 PM
Messed up partition table and Windows' partition boot sector pyromithrandir Linux - General 32 04-08-2006 12:26 PM
Windows XP/FC 3 dual boot, bootloader doesn't show up jacksaw Linux - General 2 03-31-2005 11:07 AM
Dual Boot Partition Table inescapeableus Linux - Software 1 10-23-2004 04:44 PM
HELP machine won't boot (partition table messed up???) nfisk Linux - General 7 02-02-2003 05:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:20 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