LinuxQuestions.org
Visit Jeremy's Blog.
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 07-23-2012, 03:26 AM   #1
FLCL
Member
 
Registered: Jan 2009
Posts: 36

Rep: Reputation: 0
Accidental Linux Partition Deletion


I am/was dual booting Debian and Win7 but Windows7 SP1 wasn't installing because it couldn't automount Windows (Grub2 installed) so without thinking I opened disk manager and set the Windows partition to active, which deleted the Linux partition and Grub with it.

Now I cannot boot into either, and am dropped into a grub rescue shell.

Last edited by FLCL; 07-23-2012 at 03:30 AM.
 
Old 07-23-2012, 04:19 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
Why would that delete a partition ?.

If it's merely deleted the partition, testdisk will find it.
If Windoze insisted on reformatting it, you're up for a re-install (Debian)
 
Old 07-23-2012, 04:26 AM   #3
StansSongs
LQ Newbie
 
Registered: Oct 2011
Distribution: Debian Squeeze,Lubuntu11.10,Fedora 16,OpenSUSE 12.1 (asparagus) , Puppy528, and damn Small linux on
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by FLCL View Post
I am/was dual booting Debian and Win7 but Windows7 SP1 wasn't installing because it couldn't automount Windows (Grub2 installed) so without thinking I opened disk manager and set the Windows partition to active, which deleted the Linux partition and Grub with it.

Now I cannot boot into either, and am dropped into a grub rescue shell.
I like boot-repair it has saved me a lot of work lot of times
Boot-Repair , simple tool to recover access to your Operating Systems.

Easy-to-use (repair in 1 click ! )
Free (GPL open-source license)
Helpful (Boot-Info summary to get help by email or on your favorite forum)
Safe (automatic backups)
Can recover access to Windows (XP, Vista, Seven).
Can recover access to Debian, Ubuntu, Linux Mint...
Can recover access to any OS (Windows, MacOS, Linux..) if your PC contains Debian, Ubuntu or derivative.
Can repair MBR-locked OEM computer boot if the original bootsector has been saved by Clean-Ubiquity
Can repair the boot when you have the "GRUB Recovery" error message
Options to reinstall GRUB2 bootloader easily (OS by default, purge, unhide, kernel options..)
and much more ! (EFI, SATA, filesystem repair...)

here is the link:

http://sourceforge.net/p/boot-repair/home/Home/


I hope it works for you
I downloaded it and burnt the .iso to a CD and just boot from it and it has always worked for me nd finds my many partitions and OS'es It has found and enabled bootup of OpenSUSE, Debian, Ububtu, Fedora and Windows, for me so far and.
Back when I was using Ubuntu Maverick 10.10 it came in a package and that's when I discovered it, I tried it for the first time and it worked great, and it will re-install grub legacy or grub2 for you etc.

Last edited by StansSongs; 07-23-2012 at 04:31 AM.
 
Old 07-23-2012, 11:41 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326

Rep: Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919
Quote:
Originally Posted by FLCL View Post
I am/was dual booting Debian and Win7 but Windows7 SP1 wasn't installing because it couldn't automount Windows (Grub2 installed) so without thinking I opened disk manager and set the Windows partition to active, which deleted the Linux partition and Grub with it.

Now I cannot boot into either, and am dropped into a grub rescue shell.
seems like a haruko mistake. i would boot a live-usb with gparted and confirm the partitions are there and mountable.
 
  


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
Repairing /dev after accidental deletion. LauMars SUSE / openSUSE 4 01-12-2012 09:48 AM
[SOLVED] Help! Accidental Deletion need to recover from loss :( heberg21 Linux - Newbie 4 06-19-2010 09:28 AM
accidental deletion of /etc/profile on MDK9.2 lolmc Mandriva 2 05-06-2004 01:49 PM
Accidental Deletion of some /usr/lib files Huddlebum Linux - General 17 03-08-2004 03:05 PM
accidental deletion of /bin/ steve1394 Linux - Newbie 3 11-03-2003 03:06 PM

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

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