LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-25-2018, 02:59 PM   #1
5HR33H4R
LQ Newbie
 
Registered: Jul 2018
Posts: 7

Rep: Reputation: Disabled
I had accidentally deleted my partition table while trying to install Phoenix OS...need help to recover it...


It started out like this...

My laptop had Windows 8.1 pre-installed in it and I have been using it for almost 3.5 years now..
Last month i installed Ubuntu 16.04 alongside win8.1 and thought that I should have done this in the first place because the experience was so good..
Everything was going fine until I heard about Phoenix OS.I wanted to install and try it so badly..
And i installed(triple boot) it without any difficulty (thanks to my experience with Ubuntu installation) and it worked very well (i chose to use it for a while after installing without rebooting when it prompted me).Then I rebooted my laptop and I didn't saw an option in grub to boot into Phoenix OS..only Ubuntu and Windows was there..So i booted into Ubuntu and i saw the partition i created for Phoenix OS with some folders in it.I thought it was because of triple boot that the option to boot into Phoenix OS was not shown in the grub menu, so I deleted the partitions i created for Ubuntu and Phoenix OS.And then I tried to install Phoenix OS but this time I followed an online tutorial (https://www.makeuseof.com/tag/android-pc-phoenix-os/), i created a new partition table (i didn't knew what it will do to my laptop) using gparted live cd as mentioned in step 4.And that's it ..EVERYTHING WAS GONE
It turned off itself ..when i turned it on it went straight into BIOS and reverts back to it after exiting it.
I lost about 200 GB of personal files which includes 5 linux OS images (Ubuntu 16.04,18.04,Linux Mint 18,Kali Linux,Parrot OS) ,Many video tutorials about Linux and Cyber security (I was just getting started to learn those) and my collection of favourite movies and songs)
Please help me recover my files

Laptop : Asus X450LD i3-4030U GT820M 2GB Ram 500GB Storage 2 USB 3.0 ports ( 1 occupied by Usb Keyboard because some keys in my laptop are not working)

What other tech I have right now which may help to recover: A low end samsung j2 prime smartphone with HirenBootCD iso image downloaded in it,two 16GB pendrives (one of which has puppy linux in it) , A 5Mbps internet connection with daily limit of 2.8GB-not unlimited)

Thanks for reading this tragic story of mine and sorry for my bad English,I am not a native English speaker...
 
Old 07-25-2018, 08:34 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
, i created a new partition table (i didn't knew what it will do to my laptop) using gparted live cd as mentioned in step 4.And that's it ..EVERYTHING WAS GONE

it destroys everything ...
 
Old 07-25-2018, 09:02 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,141

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
No, it only destroys the partition table; the data are safe - usually.
That said, the OP was given two warnings - one at the top of the tutorial, and a more specific one from gparted.

There are a few things not said:
- did you change from UEFI to "legacy" mode in the firmware (step 3) ?
- was the disk originally gpt ?.

I'm not sure if you can attempt recovery from puppy, been too many years since I looked at it.
 
Old 07-25-2018, 09:23 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
what version of puppy do you have?
 
Old 07-25-2018, 11:11 PM   #5
Terry Coats
Member
 
Registered: Mar 2017
Posts: 122

Rep: Reputation: 54
testdisk has worked for me in the past to successfully recover lost partitions and data.
https://www.cgsecurity.org/wiki/TestDisk
 
Old 07-26-2018, 01:38 AM   #6
5HR33H4R
LQ Newbie
 
Registered: Jul 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
No, it only destroys the partition table; the data are safe - usually.
That said, the OP was given two warnings - one at the top of the tutorial, and a more specific one from gparted.

There are a few things not said:
- did you change from UEFI to "legacy" mode in the firmware (step 3) ?
- was the disk originally gpt ?.

I'm not sure if you can attempt recovery from puppy, been too many years since I looked at it.
Yes I did change it from uefi to legacy

tbh i still don't know what's gpt,mbr...when I clicked "create new partition" in gparted live disk..it prompted me with an option with msdos as default

Now I am using puppy linux from live usb..it had gparted preinstalled in it ..when i checked it ..i saw my hard drive as one unallocated partition (two partitions before)
 
Old 07-26-2018, 01:40 AM   #7
5HR33H4R
LQ Newbie
 
Registered: Jul 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
what version of puppy do you have?
XernialPup ,.i didn't know the version no.
 
Old 07-26-2018, 01:48 AM   #8
5HR33H4R
LQ Newbie
 
Registered: Jul 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post

it destroys everything ...
I figured it out when I saw my laptop with nothing it
Too bad i destroyed everything...even Thanos left half the universe to stay alive
 
Old 07-26-2018, 04:08 AM   #9
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,506

Rep: Reputation: Disabled
You have a number of super blocks spread out over your disk, take a read here.

http://www.linfo.org/superblock
 
Old 07-26-2018, 05:31 AM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
boot the puppy usb in uefi mode, open a terminal, run
Code:
gdisk /dev/sda
see if it gives an option to recover the gpt partition table.

Last edited by colorpurple21859; 07-26-2018 at 05:33 AM.
 
Old 07-26-2018, 08:34 AM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by 5HR33H4R View Post
I figured it out when I saw my laptop with nothing it
Too bad i destroyed everything...even Thanos left half the universe to stay alive
I've always just chalked it up as oh well, as I have two HDDs that I had all my mp3's had basically just gotten them organized made a back up of them, on the other one, then when I plugged it in to use it months later it told me it lost the partition, and the other back up HDD said the same.

So I just deleted the partitions tables, because in what I've experienced that with recovery software not only does it take forever, it does not get the files back with what they use to me, it attaches some funny name to it so that more time needing to be spent to figure out which file was what. So I've accepted to just write it off as a loss and move on whenever something like that happens to me.

but as I failed to say (perhaps as a result of my conviction for recovery of a HDD) that if you can get your partition table back, provided you have not written to it after the change, their is a chance to gain back what you've lost. as someone pointed out.
 
Old 07-26-2018, 07:28 PM   #12
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I'd just restore it from a backup. Assuming the data was backed up, that is.
 
  


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
recover deleted/corrupted partition table. xmlnoob Linux - Hardware 9 07-24-2013 04:27 AM
accidentally deleted: libqtcore4 how do i recover SIQKO Linux - Software 11 10-15-2012 09:57 AM
Oops, I accidentally deleted my NTFS partition!!! How to recover? WindowBreaker Linux - Newbie 1 07-03-2009 07:28 PM
Accidentally Deleted Partition Table jani_fedora Linux - Hardware 3 03-27-2008 05:24 PM
I have deleted a folder accidentally? How do I recover it? srikanth_dhondi Linux - Software 2 02-19-2008 06:38 PM

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

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