Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 08-16-2004, 09:48 PM   #1
Registered: Oct 2003
Location: Oeiras, Portugal
Distribution: Fedora Core 4
Posts: 30

Rep: Reputation: 15
formating without erasing fedora and mbr

hi there,

i really don't know if this is the right place to post this question, but ill try it anyway.

so i have a hard drive that is split up into 5 partitions.
hda1, 5, 6 and 7 are ntfs partitions and windowsXP is installed on hda1.

and hda7 and 8 (swap) are for my fedora system, and i have grub on MBR. unfortunately i have to stick up with dual booting since this computer is not mine only, and now i have a need to format my windows partitions, so my question is, how can i format them and install windowsXP on hd1 without erasing fedora and the MBR because last time i did it, i had to install and config the fedora all over again..

Ive been using this method:

start the computer with win98 boot disk, erase the primary (hda1) partition with fdisk, create a primary one on that space and then after restarting the computer erasing it with the format utility. then i go into the i386 winXP cd directory and run winnt.exe

everything goes just fine, but after the installation, theres no more grub installed.. and so with no boot disk i cant go into my fedora installation, and i think it also erases fedora since it said it couldn't find any system with the explore2f utility for windows neither with partition magic.

Old 08-17-2004, 12:38 AM   #2
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
I'm not a expert at this one but you should be able to install, re-install whatever, windoze and then boot the Redhat, Fedora, CD and go into rescue mode and follow the steps. That should put grub back on the MBR for you. I would copy or print the following.

fdisk -l /dev/hd<your drive here, sounds like b>

cat /boot/grub/grub.conf

Make a note of which one has the boot directory. I !think! it asks for that when you do the rescue. The stuff should be there from what you said. Windoze just hates Linux is all. May be just envy.

Hope that helps or gives a bump to get a real expert.


Old 08-17-2004, 04:57 AM   #3
Senior Member
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
If Fedora uses Reiser or some other fs (other than ext2 or ext3) by default (or you have specified some exotic filesystem type), Partition Magic won't see it, nor will explore2fs (explore2fs only works with ext2 and ext3, and afaik, PM doesn't know anything about working with Reiserfs, much less JFS or XFS or whatever).

Although you'd think that PM would see something, even if it didn't know what it was--- but as much as I like PM, I don't trust it so much when dealing with Linux partitions that I consider the fact that it doesn't see the partitions conclusive evidence that the partitions were erased.

There is no reason that the Fedora partitions should have been erased unless you specifically erased them yourself. The easiest way to make sure that they have not been is to boot from Fedora CD 1 and use the "rescue" function to boot into your installed Fedora. You'll have to do that anyway to restore the bootloader.

There is a remote possiblity that using a Windows FDISK to erase "non-DOS partitions", as you would have to do to erase an XP partition formatted to the NTFS filesystem, could also erase the Fedora partitions, but 1) I don't think Win98 FDISK is even capable of erasing Linux partitions, and 2) you have to specify a partition to be erased, so if you didn't specify the Fedora partition, it should not be touched.

Why don't you just use Linux fdisk, or cfdisk, or parted, or qtparted instead? You could even use the Fedora installer; just go up to the partitioning section, delete the XP partition, create a new partition (it can be FAT32, even; Windows will be happy to reformat it to NTFS during install), write the new partition table, then hit the reset button to get out of the install, and reboot to the XP CD to install XP.

Why do you run winnt.exe, anyway? Is there something wrong with just using setup.exe? On the whole, it seems like you're using an overcomplicated process to do a relatively simple task.

Anyway, hope this helps.

Last edited by motub; 08-17-2004 at 05:00 AM.
Old 08-17-2004, 06:22 AM   #4
Registered: Aug 2002
Posts: 16,144

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
You can not prevent XP from overwriting the MBR and it should ignore your linux partitions.

To restore the MBR boot the Fedora 1st install CD, select rescue mode and then enter the following commands:
chroot /mnt/sysimage
Old 08-17-2004, 12:05 PM   #5
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
You can also, before reinstalling XP, boot into fedora and make a boot floppy. I'd say that the rescue cd option works just as well.


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
mbr died, wheres fedora? sum1else Fedora 2 10-19-2005 09:31 PM
erasing the MBR in linux TheOneAndOnlySM Linux - General 5 02-15-2005 07:48 AM
Problem w/ MBR, GRUB, Fedora Core 2 jmrich Linux - Newbie 4 10-08-2004 03:03 AM
XP and Fedora Core 1 - MBR ? Xris718 Linux - General 4 09-03-2004 02:54 AM
Erasing a Disc on fedora core 2 xcheddar Linux - Software 1 06-14-2004 06:49 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration