LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-10-2007, 05:32 PM   #16
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113

You know if it is a XP and hasn't got Service Pack 2 its installer will not be able to see beyond the 137Gb barrier in a hard disk. The hda1 + hda2 definitely took the first 137Gb space.

So could be flogging a dead horse for all we know.
 
Old 01-10-2007, 10:26 PM   #17
eyebrowsoffire
Member
 
Registered: Sep 2004
Location: Goleta, CA
Distribution: Fedora Core 6
Posts: 55

Original Poster
Rep: Reputation: 15
SUCCESS!!

I tried one more time deleting the MBR, and tried starting the Windows installer without rewriting the partition table, and it started up fine! So, I figured that the installer was having issues somehow with the way I was writing the partition table. So I recreated the partition table, but this time labeled the linux partitions "empty" so that the installer would ignore them. The installer booted up fine, so, I used it to format the NTFS partition at the end of my drive. It worked, the installer installed and I had XP working.

When I booted up a Linux LiveCD, though, the partition table had that partition that used to be the third one now listed as the first. So I rewrote the table again making the NTFS partition the third one. The Linux filesystems were now intact and good to go, so I reinstalled grub. Linux booted fine, so I edited grub.conf to add Windows XP to the boot list, as described in the "Dual-Booting Gentoo and Windows" link I posted earlier in the thread. When I tried to boot XP, it didn't work, and I figured because it was trying to access the wrong partition, so I mounted the NTFS partition in Linux and edited boot.ini to make it point to the third partition, and VOILA it works!

Thank you everyone for all your help! I now have a working dual boot of Linux and Windows, and I also know loads more about partitioning and stuff. Thanks!
 
Old 01-11-2007, 06:44 AM   #18
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Great job, eyebrowsoffire!

 
Old 01-19-2007, 01:44 PM   #19
MetalStorm
LQ Newbie
 
Registered: Mar 2003
Location: UK
Distribution: Fedora Core 6
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by eyebrowsoffire
SUCCESS!!

I tried one more time deleting the MBR, and tried starting the Windows installer without rewriting the partition table, and it started up fine! So, I figured that the installer was having issues somehow with the way I was writing the partition table. So I recreated the partition table, but this time labeled the linux partitions "empty" so that the installer would ignore them. The installer booted up fine, so, I used it to format the NTFS partition at the end of my drive. It worked, the installer installed and I had XP working.

When I booted up a Linux LiveCD, though, the partition table had that partition that used to be the third one now listed as the first. So I rewrote the table again making the NTFS partition the third one. The Linux filesystems were now intact and good to go, so I reinstalled grub. Linux booted fine, so I edited grub.conf to add Windows XP to the boot list, as described in the "Dual-Booting Gentoo and Windows" link I posted earlier in the thread. When I tried to boot XP, it didn't work, and I figured because it was trying to access the wrong partition, so I mounted the NTFS partition in Linux and edited boot.ini to make it point to the third partition, and VOILA it works!

Thank you everyone for all your help! I now have a working dual boot of Linux and Windows, and I also know loads more about partitioning and stuff. Thanks!
Okay, this is my EXACT problem and it's been bugging me for a while.
So far I've tried booting a trusty win98 boot disk to fdisk /mbr but no luck there.

How exactly do you go about labeling the linux partitions as empty?

Here is how my partition table looks:
Code:
/dev/hda1  77M   /boot       --ext2    Primary
/dev/hda2  xxG   swap        --swap    Primary
/dev/hda3  12G   /mnt/win    --fat32   Primary
/dev/hda4:
    /dev/hda5  9.2G  /           --ext3    Extended
    /dev/hda6  29G   /home       --ext3    Extended
If I can get Windows XP installed without removing on the partitions on that disk I'd be a happy man

Cheers,
stu.

Last edited by MetalStorm; 01-19-2007 at 01:49 PM.
 
Old 01-20-2007, 08:09 AM   #20
MetalStorm
LQ Newbie
 
Registered: Mar 2003
Location: UK
Distribution: Fedora Core 6
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by MetalStorm
How exactly do you go about labeling the linux partitions as empty?
Ah ha, cfdisk doesn't actually display all the type codes for partitions. For empty it's '0', I used fdisk instead.

This does work, amazing! I haven't gone through the whole XP install process yet but the CD boots up fine now.

Thanks!
 
Old 01-21-2007, 08:39 PM   #21
eyebrowsoffire
Member
 
Registered: Sep 2004
Location: Goleta, CA
Distribution: Fedora Core 6
Posts: 55

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MetalStorm
Ah ha, cfdisk doesn't actually display all the type codes for partitions. For empty it's '0', I used fdisk instead.

This does work, amazing! I haven't gone through the whole XP install process yet but the CD boots up fine now.

Thanks!
Great to hear you got it working! If you have any issues PM me and maybe I can help.
 
Old 01-23-2007, 04:43 AM   #22
MetalStorm
LQ Newbie
 
Registered: Mar 2003
Location: UK
Distribution: Fedora Core 6
Posts: 8

Rep: Reputation: 0
Bit of an update.
It didn't go as cleanly as it should have. XP messed the partition table up so it now looks a bit more like this:
Free Space (where /boot and swap should be)
Fat 32
Free Space (where the logical partitions should be)

I think at this point I'll just accept defeat and do a fresh install of Windows XP and Fedora Core (in that order ).
If I'd thought to write down where all the partitions start and end before installing XP in the way mentioned above I guess the partition table could have been quite easily restored. Anyway, I have tried a few applications that attempt to make a guess at where the partitions were, but I think that since I've been moving the partitions about so much lately they're not coming up with the best results.

stu.
 
Old 01-24-2007, 08:10 PM   #23
eyebrowsoffire
Member
 
Registered: Sep 2004
Location: Goleta, CA
Distribution: Fedora Core 6
Posts: 55

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MetalStorm
Bit of an update.
It didn't go as cleanly as it should have. XP messed the partition table up so it now looks a bit more like this:
Free Space (where /boot and swap should be)
Fat 32
Free Space (where the logical partitions should be)

I think at this point I'll just accept defeat and do a fresh install of Windows XP and Fedora Core (in that order ).
If I'd thought to write down where all the partitions start and end before installing XP in the way mentioned above I guess the partition table could have been quite easily restored. Anyway, I have tried a few applications that attempt to make a guess at where the partitions were, but I think that since I've been moving the partitions about so much lately they're not coming up with the best results.

stu.
Oh, that's too bad. Dang, I should have warned you, because that's what happened to mine too, but I just rewrote the partition table since I had a hand-written backup of it.

The only thing I could think of is if maybe you made the first partition significantly larger than you knew it originally was and then perhaps the filesystem would show up if you booted from a LiveCD. Then you could see the size of the filesystem and resize the partition according to that. If that works, you could do that with both your /boot and swap partitions. And if you had the rest of the space as one physical volume, you could just make that whole space one "Linux LVM" partition and see if LVM recognizes it. Remember though, even if you get all your partitions and filesystems back, the MBR has been wiped so you're going to have to reinstall your bootloader if you want to use that.

Good luck!

EDIT: Even if you're only able to get your LVM partitions working, at least you can recover your data, so at least give it a shot.

Last edited by eyebrowsoffire; 01-24-2007 at 08:13 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
SUSE 10 will no longer recognize my Windows partitions gljubuncic Linux - Software 6 12-23-2005 05:40 PM
New install doesn't recognize/automount all partitions RobF Debian 1 06-23-2005 12:46 PM
Recognize Windows Partitions in Ubuntu LJT Linux - Software 6 10-22-2004 02:06 PM
Win XP Install Overwrites MBR and Linux Rescue Fails to Recognize Linux Partitions carrlane Linux - Software 8 01-14-2004 07:49 AM
windows does not recognize (some) fat32 partitions all of a sudden cmsenthil Linux - General 1 10-09-2002 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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