LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-23-2008, 06:16 AM   #1
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 312

Rep: Reputation: 32
partitioning problem with windows


Dear All,
i have a special scenario , my hard disk of the lab top divided as follows . :

1.) primary partition C -> formated as fat32
2.) one extended partition - > include D , E -> formated fat32 also

i set up windows XP on D and i found a strange case happened the boot screen of the XP was like follows : -

Undefied operating system on C:
Windows Xp professional

after that i made installation for Fedora 8 on C: , after installation i found that windows gone !! i tried to edit grub.conf to set it at the first extended partition at (hd0,4) but it didn't succeeded .. any one can advise about that issue .
 
Old 02-23-2008, 07:20 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 97
For grub you'll need lines like this in /boot/grub/menu.lst:
Quote:
title Windows XP
root (hd0,4)
chainloader +1
I don't recall if you need to also do something special with
the boot.ini file in Windows. It's possible that you'll have
problems, because Windows was installed on the 5th partition
when it was the D: drive. Now the 5th partition will be known
as the C: drive.
 
Old 02-23-2008, 07:32 AM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Not a Windows expert, but doesn't Windows put some boot files into drive C even when installed elsewhere? You had your first partition formatted to fat32 (i.e. something Windows recognizes), so Windows put it's boot stuff there. This was later overwritten by Linux install. In short, I think having the first partition formatted when installing Windows was an unlucky idea.
 
Old 02-23-2008, 07:51 AM   #4
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 312

Original Poster
Rep: Reputation: 32
so ,, thanks to your replies by the way i did the same edit at the grub.conf .. and i said it failed .. so do you think that performing new windows installation on D: and then make a grub fix by rescue , well be a good idea ?.
 
Old 02-23-2008, 08:40 AM   #5
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 97
Yes, if it's not a problem to reinstall Windows, that's
what I would recommend. Start by backing up any needed
files. Next boot into Linux and run fdisk to delete
every partition. Install Windows first and let it take
the first partition. Install Linux and let grub install
to the MBR. Everything should go smoothly.
 
Old 02-23-2008, 08:57 AM   #6
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Windows will install just fine to the second partition if it does NOT recognize the the first one.
 
Old 02-23-2008, 09:11 AM   #7
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 97
Quote:
Originally Posted by Emerson View Post
Windows will install just fine to the second partition if it does NOT recognize the the first one.
That's true, but he may run into issues later if he
changes the type of the first partition. If he's
planning to do a clean install, I'd suggest putting
Windows on the first partition to prevent other problems
later.
 
Old 02-23-2008, 11:08 AM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Here is my explanation to what might have happened.

When the OP installed XP in drive D, which is a logical partition sda5 (or Hd0,4) in Grub's convention) in an extended partition, XP installer would have to leave the XP boot loader NTLDR's system files in the "C" drive. The reason is that all MS systems up to XP share a common MBR that boots any of the 4 primaries as long as there is one with a booting flag switched on. In other word one can ask a XP (its MBR to be precise) to boot a Linux if the Linux is in a primary partition and has the booting falg made active. I have frequently edited XP to boot up Grub instead of itself.

Anyway when the OP installed Fedora into the first partition "C" the NTLDR system files, there are about 3 of them, there are gone and XP will not boot.

The easy cure is to install XP again.

If XP is to be installed in a logical partition again then the same rule applies and that means there must be a primary partition XP can recognise and deposit the NTLDR files there.

Every MS system can be installed and booted from any of the 4 primaries. Users prefer the first partition are based on the common practice. If a MS system is installed in a partition other than the first one and a bug is discovered they believe it is an issue of not placing it in the partition.

Don't think I have run into a problem yet of placing a MS system in any of the sda1, sda2, sda3 and sda4.

Last edited by saikee; 02-23-2008 at 11:14 AM.
 
Old 02-23-2008, 12:02 PM   #9
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 312

Original Poster
Rep: Reputation: 32
thanks for the all ,,
i think iam going to repartitioning my hard and take a backup to prevent any data loose .

Thanks again ,
 
  


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
Partitioning with Windows... chiefreborn Linux - General 6 06-22-2005 07:02 PM
Partitioning and Windows help please Lyko Linux - General 7 03-21-2005 09:00 PM
partitioning in windows XP mufy General 11 02-21-2005 04:46 AM
dual boot windows xp and suse linux 9.0 partitioning problem spodops Linux - Newbie 3 10-31-2004 04:38 PM
Partitioning drives to split Linux and windows with windows already on computer. linuxnoub Linux - Hardware 5 10-16-2003 01:21 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration