Accidentally deleted partitions...

Unofficial support for the KXStudio Linux distribution and applications.
More info at http://kxstudio.linuxaudio.org/

Moderators: MattKingUSA, khz

Post Reply
ironman187
Established Member
Posts: 4
Joined: Sun Aug 12, 2012 7:42 pm

Accidentally deleted partitions...

Post by ironman187 »

Hey all, last night while reformatting my external network drive (via USB) I accidentally deleted both partitions for my KX studio 10.04 on my main hard drive using Windows 7's disk management tool. Is there any way to recover the partitions and my install without re-installing. Thanks!

SR
Established Member
Posts: 218
Joined: Wed May 07, 2008 6:01 pm
Location: Houston, Tx

Re: Accidentally deleted partitions...

Post by SR »


User avatar
Capoeira
Established Member
Posts: 1244
Joined: Tue May 12, 2009 1:01 pm
Location: Brazil

Re: Accidentally deleted partitions...

Post by Capoeira »

this founds everything (if not overwritten) http://www.cgsecurity.org/wiki/TestDisk

ironman187
Established Member
Posts: 4
Joined: Sun Aug 12, 2012 7:42 pm

Re: Accidentally deleted partitions...

Post by ironman187 »

Is Parted like Gparted or Parted magic? because i have both of those on live CDs, but can't find a live CD download for parted anywhere, and being the noob I am, don't know what repository to download, or how to create a live CD from one.

ironman187
Established Member
Posts: 4
Joined: Sun Aug 12, 2012 7:42 pm

Re: Accidentally deleted partitions...

Post by ironman187 »

Sorry for the double post. So I just ran the Gparted live CD and used the test disk utility using this method http://www.google.com/url?sa=t&rct=j&q= ... BlbUJVejQA It saw my swap and main partitions for my KXstudio, but when I reboot my PC I am still getting the "Error: no such partition. <grub rescue> _" message and am unable to boot into either windows 7 or my KX studio.

ironman187
Established Member
Posts: 4
Joined: Sun Aug 12, 2012 7:42 pm

Re: Accidentally deleted partitions...

Post by ironman187 »

Huh, so I followed this http://www.av8n.com/computer/htm/grub-reinstall.htm, it didn't seem like it did anything so I went ahead and made a boot-repair live CD, when I went to boot from the CD, I didn't get to the boot menu fast enough so it booted from the HD, low and behold, grub came up! I am now booting into windows and will try booting into KXstudio next. Thanks for your help guys!

Thad E Ginathom
Established Member
Posts: 369
Joined: Fri Sep 23, 2011 1:03 pm

Re: Accidentally deleted partitions...

Post by Thad E Ginathom »

testdisk, as mentioned above is probably the best for this kind of emergency. It is not very user friendly, but it is a lot more so than obscure command line disk/file-system utilities. As long as you don't give it any instruction to write you can explore it freely to see what it will come up with. It can rewrite a deleted or altered partition table to match what it finds on the disk.

Rule One (in fact, the only rule!) --- do not write anything to your disk. Do not blunder about trying stuff that writes to the disk. In an emergency, it is very hard indeed not to do this. Sometimes we do it before we even realise we have got an emergency.

Some of those obscure command-line utilities can make a backup copy of your partition table. This is well worth doing (of course, an external copy!).

The big problem is that we only look at this stuff when a problem has happened already. We are already in an emergency, and we don't know how to cope, or remember what we did last time. That's why I can post that you can make a backup copy of your partition table, but I can't tell you how :oops: . Then, when we get in there, we are faced with disk and filesystem terminology we never normally have to think about, not to mention the confusing big numbers.

It is often easier to re-install ...assuming one has recent backups.

User avatar
zwenny
Established Member
Posts: 80
Joined: Mon May 17, 2010 12:42 pm
Location: Germany

Re: Accidentally deleted partitions...

Post by zwenny »

Capoeira wrote:this founds everything (if not overwritten) http://www.cgsecurity.org/wiki/TestDisk
TestDisk should be your 1# choice. Just recovered an existing installation on a harddrive which has been accidently initialized by a RAID-Controller.
You may download Hiren's BootCD, boot your PC with it and run TestDisk either in Linux Rescue environment or directly from the CD.
◘~(ô0)==>
Oh my tube, they rocked zwenny! - Let's r0ck 0n!!

Post Reply