LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-22-2007, 06:40 AM   #1
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Rep: Reputation: 30
How to recover XP after formatting Linux partition from windows


Hi everyone

Suppose there are 2 OSs 1)XP 2)fedora
I have got 2 doubts

i) If i format linux partion from xp How to recover XP again??
ii) If i reinstall XP how to recover linux again ??

Bye

Thanks in advance
 
Old 01-22-2007, 06:42 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if you're actually formatting the same disk sectors, then there will be no way to recovery, possibly outside of forensic IT labs...
 
Old 01-22-2007, 06:49 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Please give us some details about the drive setup and how you boot each OS--eg is GRUB on one drive?

What do you mean by this:
Quote:
i) If i format linux partion from xp How to recover XP again??
Windows will not recognize a Linux partition, much less format it.
 
Old 01-22-2007, 07:07 AM   #4
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pixellany
Please give us some details about the drive setup and how you boot each OS--eg is GRUB on one drive?

What do you mean by this:Windows will not recognize a Linux partition, much less format it.
what i mean is that if we right click the mycomputer in xp it shows an option Manage .In that there is another link for disk management
where it shows linux partition as unknown file type
we can format this drive by right clicking it and selecting format
If we format this partition the grub bootloader will be deleted na?
How to boot XP with out reinstalling xp or repairing xp if i do this ???

Another question is
IF I REINSTALL xp HOW TO RECOVER EXIXTING LINUX
 
Old 01-22-2007, 07:17 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
OK--the terminology is getting us here...In Linux, you create a partition and then format it with a file system. I think Windows blurs these two steps. What you describe swould effectively delete the Linux partition and create a new one. If GRUB is on the MBR, nad it config file is on the linux partition, then you will no longer be able to boot.

The second question is easier: before re-installing XP, put GRUB on a floppy. Then you can still boot Linux from the floppy.

What configuration do you want to have when you are all done?
 
Old 02-12-2007, 01:22 PM   #6
khemchand_glaec
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
Hi

I think u must be getting grub prompt when booting ur system which is something like..

grub >

u can follow the following steps to boot into WinXP

1. rootnoverify(hd0,0)
2.makeactive
3.chainloader +1
4.boot

This will chainload ur WinXP and u will get boot into XP

Cheers
 
Old 02-12-2007, 05:48 PM   #7
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
I think the OP is confusing himself/herself.

Yes one can use right click my computer/Manage/storage/diskmanagement to format a Linux partition but it does "nothing" to the XP partition. The XP is perfectly save and can be booted if you have the right tools.

What the OP has mixed up with is the removal of the Linux partition also destroys the home for Grub which was used to dual boot XP and Linux. Without Grub xp would not boot.

Pixellany has the solution of saving Grub on a floppy but that is only bootable if it is made in accordance with Chapter 3.1 of Grub Manual so that Grub is independent of an operating system. When an ordinary Grub floppy, made by the grub-install command, boots it needs to load the menu.lst which would have been removed if the Linux partition were formatted.

The logical step is to restore XP's MBR using XP installation CD or a Dos floppy (Task B1 and B2 of the last link in my signature refer) so that XP boots just like before Linux was introduced.

Last edited by saikee; 02-12-2007 at 05:51 PM.
 
Old 02-22-2007, 03:24 AM   #8
xandal
LQ Newbie
 
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
Very same problem

I have had (maybe I still have both) two OS on an old laptop. Xp and Debian. Xp is still on first (as primary) and third partition (as extended), and Debian which was boot from floppy was deleted with Computer management console and with Partition manager from second partition. I can not partitioned this "free" area as extended xp partition but only as primary. When I start to partitioned it as primary it stop at 16%.
When I try to boot from floppy I can still see: grub >
1. How can I format second partition as windows extended partition?
Thanks in advance
 
Old 02-22-2007, 03:46 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if you have a new question, please start your own thread.
 
Old 02-22-2007, 04:22 AM   #10
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
In the new thread for assistance to partitioning your hard disk please provide the output of
if you are in root
Code:
fdisk -l
or if you log in as the default user
Code:
sudo fdisk -l
It will show us all the partitions of every disk you have. The command is in Linux and obtainable form booting up any Linux Live CD.
 
Old 02-27-2007, 07:26 AM   #11
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by khemchand_glaec
Hi

I think u must be getting grub prompt when booting ur system which is something like..

grub >

u can follow the following steps to boot into WinXP

1. rootnoverify(hd0,0)
2.makeactive
3.chainloader +1
4.boot

This will chainload ur WinXP and u will get boot into XP

Cheers
Hi khemchand_glaec

Thanks for your reply
I am away from net for many days so i couldnt quote ur reply

I shall surely try the steps that u have mentioned if i encounter this problem from now
once i have have reinstalled Xp to get xp booteed

Have u tried it once before ??

bye
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting a USB partition for use with Windows conn-fused Linux - Hardware 19 02-01-2006 04:40 AM
Formatting failed, now my fat32 windows partition is non-existent. zimzam Mandriva 12 12-28-2004 06:51 PM
How do I recover old partition tables in linux? PsychoFarmer Linux - Software 5 01-04-2004 05:14 PM
Using Linux to recover data on a damaged Windows partition? Korff Linux - General 5 12-29-2003 11:35 AM
Formatting A Linux Partition thebear Linux - General 2 09-16-2003 04:26 PM

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

All times are GMT -5. The time now is 02:29 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
Open Source Consulting | Domain Registration