LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-28-2009, 07:11 AM   #1
sanues
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
Post Accidently deleted the linux partition(root partition) how to recover it?


Once while installing windows 7 my two XP partitions were deleted but i recovered that using the software active partition recovery but during that time i lost my Linux partition which was my root partition.I have a grub disk i tried to recover my Linux boot loader with that but it failed,So will you tell me in detail how to recover my Linux partition from my hard disk


Thanks.....
 
Old 11-28-2009, 07:40 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Since you installed Win 7 after Linux, windows wrote its own bootloader to the MBR of the hard drive. Windows may not tell you that there is LInux installed, nor will it write an entry in the windows boot menu to offer you the opportunity to boot Linux. It may be that Linux is still there.

1) boot a liveCD. in a terminal, run fdisk -l. Do you see a Linux partition listed?

2) if fdisk shows a LInux partition, boot your Linux installation cd. You should see a list of options: install LInux, boot from cd, boot from hard drive, and possibly one or two others. Chosoe 'boot from hard drive'. If Linux boots, then re-install Grub to the MBR (search these boards; that topic has been discussed many times).

3) after re-installing grub to the MBR, edit /boot/grub/menu.lst to add an entry for windows (that topic has also been covered in these boards many times).
 
Old 11-29-2009, 09:39 AM   #3
sanues
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Actually my partition is deleted at the recovery time not by the installing of windows 7.
I didn't find any Linux partition in the terminal when i execute the command fdisk -l,
actually now my partition table don't show any Linux partition(i checked it with windows )in the Linux partition space it shows as free space
Now will you help me to recover my Linux partition,and when tried to install a new copy of Linux then Linux does not shows my hard disk partition at the time of installation but just shows my entire hard disk as free space,so that i can't use Linux now so will you please help with out losing my data in my hard disk
 
Old 11-29-2009, 07:21 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,573

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
[QUOTE]Actually my partition is deleted at the recovery time not by the installing of windows 7.[QUOTE]

Did you use a windows 7 recovery disk to rescue your xp partitions? Are you now able to boot windows 7 and xp?

Which distribution of Linux do you have?
If you 'lost' your Linux partition, where are you running fdisk -l? Do you have an installation or Live CD?

Quote:
actually now my partition table don't show any Linux partition(i checked it with windows
That's correct. windows shows space used by other operating systems as unallocated or free space so you won't learn anything from windows.

How did you try to install a new copy of Linux? How did you try to get partition information using the Linux CD? Also, it would be helpful if you gave the Linux distribution you are trying to use.
 
Old 11-29-2009, 07:44 PM   #5
jiobo
Member
 
Registered: Nov 2008
Posts: 180

Rep: Reputation: 36
If you installed Windows over Linux, it could have overwritten your harddrive and wiped Linux out of your harddrive. Use a Linux rescue cd and at the command prompt run fdisk and see if there are any Linux partitions left.

Windows does not look for Linux partitions usually. It overwrites them. You could be in a situation where you need to reinstall your Linux distribution.

What is your partition output from the command:
Code:
# fdisk
# p
Note that if you have more than one harddrive, that you would need to enter in the correct harddrive parameter for fdisk.
 
Old 11-30-2009, 10:18 AM   #6
sanues
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
I used active partition recovery for recovering my lost windows partition
and now i can boot windows 7 and xp

i am using ubuntu 9.04 and i entered the command using live cd

i tried to install linux using the live cd
 
Old 11-30-2009, 10:33 AM   #7
S.V.
LQ Newbie
 
Registered: Dec 2006
Location: Bengaluru, India
Distribution: Mandriva, Mint, Slackware
Posts: 28

Rep: Reputation: 15
sanues,
You should post the output of 'fdisk -l' here so we can see if there is any linux partition left.

Is it that you know it is gone (say you had installed linux on /dev/sda3, now it is erased/formatted/overwritten) and are asking for kind of data recovery software? I mean in windows if you delete something, you have software to get them back. Are you asking for such 'undelete' software? Not that I know the answer but only to clarify to others who may help you.
 
Old 11-30-2009, 01:55 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,573

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
Quote:
I used active partition recovery for recovering my lost windows partition
and now i can boot windows 7 and xp
When you did that, win 7 overwrote your master boot record. You need to decide how you want to boot, from windows? from Linux? Using Ubuntu Grub is quite a bit easier but for someone to give you specific instructions you should post the output of: sudo fdisk -l, as requested above.

If you're more of a windows user, you might find it easier to download and use EasyBCD software, just google it.
 
  


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
Using testdisk to recover deleted lvm2 partition sstendal Linux - General 2 04-02-2008 09:30 AM
How to recover deleted FAT 32 partition? alan_ri Linux - General 4 02-21-2008 12:06 PM
Accidently Deleted my backup partition....... Dimitriy Linux - Newbie 9 01-04-2006 11:56 AM
Recover deleted files from a Win partition in Linux? PenguinPwrdBox Linux - General 3 08-03-2004 04:05 AM
accidently deleted /boot partition :( aditya_ic Linux - General 7 07-29-2004 02:37 AM

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

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