Ubuntu :: Using Testdisk To Recover One Of Lost Partition?
Jan 21, 2010I was using testdisk to recover one of my lost partition and when I rebooted my system it says , "error unknown filesystem ".I am giving a screenshot of gparted
View 7 RepliesI was using testdisk to recover one of my lost partition and when I rebooted my system it says , "error unknown filesystem ".I am giving a screenshot of gparted
View 7 RepliesMy main partition having all my data like movies, music, files,etc has become inaccessible. Its file system was NTFS. Due to some recent resizing using GParted, the partition as well as my WIndows 7 OS has become unbootable due to some errors. The data partition's file system has become unknown. I don't care much about the OS but I would like to recover my drive. I am trying to achieve this using Testdisk and Photorec but haven't met with much success so far. The main problem is I can see my partition and all my files through Testdisk but I am not able to copy them to another drive. When I try to copy the option I get is of copying them to the DVD and not to any other partition.
View 4 Replies View RelatedI had 10.04 installed in parallel with a bad windows OS. Used the 10.04 to pull the documents, pics, etc off of windows. Worked great. Then when I tried to delete the windows partition it screwed grub up an instead of just re-installing grub. I re-installed ubuntu, what the heck it was gonna get wiped anyway. I didn't back up the pics and documents. I did however have them in all the ubuntu folders for my pics etc.
I feel like total crap, anyway, how good of a chance do I have at getting something back with testdisk? After doing a "deeper search" I come up with multiple partitions but it won't let me restore all of them. I really dont care if I can't boot to a single one, just as long as I can get the data back. (always can use a live CD).
I have stupidly and inadvertently formatted my home partition on my other system while trying to 'downgrade' to Ubuntu 9.10. I have isolated the hard drive and am currently using Testdisk to discover the partitions on there. The scan hasn't yet finished however it appears there are two entries of each partition.
Here:
Linux 0 1 1 4012 254 57 64468776
Linux 0 1 1 4012 254 57 64468776
Linux 4013 0 1 14032 254 59 160971296
Linux 4013 0 1 14032 254 59 160971296
Linux 9079 0 1 14032 254 61 79586008 [home]
Linux 9079 0 1 14032 254 61 79586008 [home]
When attempting the downgrade, I was wanting to keep the home folder (and root and swap) all at the same size. I am pretty sure I fouled up by trying to revert the file system type to ext3 from ext4. Which partition out of the two 'home' ones, I should be attempting to keep? I cannot see a difference between them but this is how testdisk has reported the drive. Apart from the standard 'back up everything next time' and more fitting for me 'pack up your PC and never use it again!', does anyone have any specific advice on recovering my original home partition?
I resized my root partition yesterday to make it include the unused 28GB at the end of my drive, but something went wrong and now I can't mount it again.. I think this has to do with the computer coming with Vista preinstalled and the partitions not being aligned to cylinders. This is what the partition table looked like before the resize (according to fdisk):
Code:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdec3533c
[code]....
None of the last two partition schemes works, when I try to mount sda6 I get an error saying that the XFS superblock contains an invalid magic number. I've tried running xfs_repair on it, but even though it found a few secondary superblocks it couldn't verify them. I've tried running testdisk with the "Cylinder boundary" option set to "no", but it would not find my root partition... The log from the search is here I don't really care about the other partitions, all I need is my old root partition so that I can copy all the important stuff to another drive and then start from scratch with a new partition table (and remove the recovery partition aswell since I don't need it).
I need a way to recover my Windows partition that was completely repartitioned when I originally moved to Ubuntu.
When I first moved to Ubuntu 8.04, I somehow overwrote my Windows partition. It happened on a laptop and since then, I've purchased a new one so I can now go back and attempt to unzip the partition holding 10.04 and get to the files I had under Windows.
I was trying to resize to the left the sdb5 partition where ubuntu is/was installed and things got messy. I lost the partition it was unallocated. Next "cleverly" used livecd and reinstall ubuntu (thinking it was just like a repair the system thing) but instead ubuntu install from new...all my data is lost...gone with the wind. I try sadly enough testdisk but it says partition corrupted impossible to recover. Now the whole disk shows as unallocated in gparted.
I am running ubuntu from a second hard drive and strange enough my windows 7 partition with files is save and sound. I wonder if there is anything I can do to recover my files (guess the enitre partition now is lost). I try photorec and no files were able to recover then try scalpel and it says files were not find or couldn't read the partition. Of course "cleverly" I didn't had a recent back up of my files. Now I cant access the new ubuntu partition that still in sdb5 at boot takes me directly to windows 7.
I deleted my hard disk , where I had a triple boot of vista, ubuntu and kubuntu after hours of work , I was not able to recover my ubuntu partition and lost everything .Now I need to recover some of my partitions .I am running a live cd
The output of fdisk -l is
How to use parted to rescue my partition , gparted shows the enitre disk as unallocated.
I installed Ext2fsd from windows XP because I needed access to a text file on my ubuntu install. However, it didn't work because the drive is ext4 and all it listed was the root folders (/home, /var etc..) nothing any deeper.
I closed the app and continued working in windows.
Today I went to start my computer and it loaded the grub-rescue> prompt. I immediately tried to run "help" to find out what happened, however, grub reported the command as unknown.
I then ls and got a partial listing of the partitions.
Code:
(hd0) (hd0,5) (hd0,1) (fd0)
So what do I do? How do I recover my linux partition? If the partition is bad - then how is the bios able to find the grub-rescue> prompt?
By mistake I formatted an ext3 partition on my external hard-drive. Now it has turned into a vfat filesystem. Is their any chance of recovering the lost data?
View 4 Replies View RelatedI am trying to recover data from my blackberry and a USB stick and after some research on the web I came through the Test Disk software which i just downloaded with Ubuntu Software Centre. I was looking to find information on how I could use this and recover files from my Blackberry and USB stick.
View 2 Replies View RelatedBecause a customer of mine is inefficient in doing backups I have to do a recovery if possible. Drive had vista on it and was really bug infested to point of a reload. I reloaded vista from scratch and then my customer says "Oh, I guess I forgot to back those files up...".Is it possible to recover some files even though vista was reloaded? I suppose the basic answer is "As long as they havent been overwritten yet".
Im running testdisk and its made a ton of directories with files in them that I assume it has recovered. Im going to have to write a script I guess to grab the files as there are about 600 directories!I guess what Im asking is 1. What are my chances of success? 2. Has anyone ever recovered files from a vista re-install? 3. Is testdisk the best way of going about it (with photorec).
I tried to recover deleted data using testdisk tool and now my partition table have some errors. Even though i have 3 partitions and 1 unallocated disk fdisk -l shows only 1 partition
Code:
vishnu@vishnu-laptop:~$ sudo fdisk -l
[sudo] password for vishnu:
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x68000000
[Code]...
I messed up a 500GB USB hard drive by confusing it with another drive, accidentally trying to erase it, realizing my error and pulling out the cable in panic. Running Testdisk has found no partitions to fix. Photorec can find most of my files but sorting them out again is going to take weeks. Are there any methods I can use to try and save my folders/file system on the HDD? I'm very much a novice as far as partitions and file systems go.
View 9 Replies View RelatedI'm not sure exactly how, but somehow one of my partitions was corrupted yesterday (GParted showed it as unallocated space). I tried using testdisk. It found the lost partition, so I happily let it rewrite the partition table. The lost partition did return, but then I found out another partition has disappeared (the one most important to me) and in its place there is an empty NTFS partition and an empty ext3 one (the original was an ext4.
The two new partitions seem to be those that were merged to form the ext4 partition). I tried testdisk again. When I run "testdisk /dev/sda" and choose "Analyse" the incorrect partition table is detected. I tried running "testdisk /dev/sda5" (sda5 is the NTFS partition) and it finds a partition labeled "magic" which is the name of the lost partition but testdisk cannot recover it. I get this:
Code:
TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
[URL]
Disk /dev/sda5 - 47 GB / 44 GiB - CHS 5823 255 63
The harddisk (47 GB / 44 GiB) seems too small! (< 75 GB / 70 GiB)
Check the harddisk size: HD jumpers settings, BIOS detection...
The following partition can't be recovered:
Partition Start End Size in sectors
Linux 0 1 1 9137 234 56 146800640 [magic]
EXT4 Large file Sparse superblock, 75 GB / 70 GiB
I tried deleting the second partition and moving the one after it so that there is 75GB available but it didn't help. I have lost worth of a year of my work. The worst thing that could ever happen to me!
I tried to install Ubuntu next to XP. After restart - no XP and no Ubuntu. Something wrong with loader I guess, I see command line prompt (of the loader I guess).
So I restarted from liveCD. But no "Repair Install" option like in XP CD. So, I deleted partition to install again on top of old, then learned a loader possibly could be fixed.
So, the problem is: testdisk cannot restore partition I deleted. I didn't write on disk anything. May be swap space after couple reloads from liveCD corrupted it?
It complains "The harddisk (...) seems to small!", it sees some other partitions and doesn't see what Gparted and Disk Utility.
Let me know the best approach to get back XP running (having Ubuntu would be good too).
Here below are the screen captures for details.
Quich Search results. Can't recover what's found. Why 4 partitions are found? Notice, "The harddisk seems too small !" Could this be a problem? HDD is not Maxtor anymore
The gap is there but no deleted partition shown
Essentially same thing... going for deeper search
Deep Search hasn't recover anything new. And shows same results as Quick Search (2nd testdisc image )Hit "continue"...
Now the partitions shown as deleted because of overlapping. The partition to be recovered is still not in the list.
Anyway, my final goal is to get WinXP back and if possible, install Ubuntu. It's nice that installer still sees the XP. Too bad the loader doesn't. how to get it done.
Unlike during installation of XP, ubuntu doesn't offer to utilize the deleted partition. Is it going to stay empty/unallocated? Forget the empty space, will I get XP running if I continue and install?
I ran testdick on a apple hard drive to find the tables. It looks like it found it, here's the log:
Quote:
Tue Mar 29 12:02:56 2011
Command line: TestDisk
TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
[Code]....
How do I restore the table using fdisk? Gparted doesn't let me check the drive. It just says unallocated space, create a table and erase all data.
I had a tri boot of Win 7 /XP and Mint...I was using EasyBCD 2.0 as a boot manager...I booted Mint by configuring the NeoGrub option in Easy BCD..I wanted to uninstall Win 7 and so what I did was the following
1. Edited BCD bootloader settings ...Marked XP as my default and deleted Win 7 entry...
2. Logged out and wiped my Win 7 partition
With my fingers crossed , i rebooted but Easy BCD booted flawlessly with 2 choices XP and Mint(GRUB)...As Easy BCD is not meant for XP, I thought of restoring original NTLDR of XP so that things would be in place and thinking that this cud avoid problems of detection by other Linux OS I deleted manually the Easy BCD menu.lst file and NeoGrub.mbr in my root...That was it , after I rebooted, I got boot screen of EasyBCD but whichever option I select,I got an error message that address not Valid-NTLDR not found or something like that I booted my XP live CD and like many times before ran
1.Fixmbr
2.Fixboot
3.bootcfg /rebuild
After that , now when I reboot , I am getting "Invalid Partition Table" On booting from a linux CD , I can see the files are in place..I have to get boot sector and partition table fixed...
I was having trouble creating a USB Startup Disk in Ubuntu and used the command:
sudo dd if=/dev/zero of=/dev/sdb bs=1M count=1
This was a mistake as my USB flash drive was on /dev/sdc. If I am understanding this correctly, the command above deleted the MBR and the partition table. This disk had a single "/storage" partition on it. I googled a solution and found that the "testdisk" program seems to be the most popular solution for things like this. I ran it, selected an "Intel/PC partition" type, set the partition to a non-bootable primary Linux partition, wrote it, and rebooted.
Whenever I run:
sudo mount -t ext3 /dev/sdb1 /storage
I get:
mount: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
Dmesg shows the following:
[20246.273941] EXT3-fs error (device sdb1): ext3_check_descriptors: Block bitmap for group 1 not in group (block 0)!
[20246.279376] EXT3-fs: group descriptors corrupted!
When I run:
sudo fdisk -l /dev/sdb
I get:
Disk /dev/sdb: 400.1 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
[code]....
Something bad happened to my partition table,so right now I'm working from a Live CD. My partition table is completely screwed, although the data on the lost partitions hasn't been overwritten. I've been messing around with TestDisk for about an hour, but I still didn't figure out how to fix my problem. Before the crash, I had 5 partitions:
NTFS - 30GB
NTFS - 8GB
ext4 - 20GB
and here comes the extended partition:
linux swap - 8 GB
NTFS - 400GB
TestDisk can see all those five partitions. I can mark swap as Logical, but I can't do so with the 400GB NTFS partition - there is just no selection. Turning on "expert mode" didn't help. I have read about using sfdisk to fix partition table, but I don't think I'm able to do it by myself.
Here's how it looks in TestDisk:
Code:
Disk /dev/sda - 500 GB / 465 GiB - CHS 60802 255 63
Partition Start End Size in sectors
D HPFS - NTFS 0 1 1 3915 254 63 62910477
D HPFS - NTFS 3916 0 1 4959 254 63 16771860 [Windows XP]
[code]....
I've filled sizes according to TestDisk's findings. First 3 partitions were OK, the problem lies in the extended partition holding 2 logical ones. By the way, TestDisk is able to enter the 400gb partition and see the files.
I'm using Xubuntu and have lost my bottom status bar so that if I minimize programs they vanish from the screen and I have no idea if they are running or not and cannot recover them, I cannot use web mail notifier either as I cannot get to the icon which is normally at the bottom of the screen. I suspect one of my kids have altered settings some where.
View 1 Replies View RelatedI woke up this morning to a non-booting 9.10 computer. After my grub screen disappears, I get the familiar Ubuntu b/w logo in the center of my screen. My hard drive cranks for an abnormally long time and then I get the following error:
I booted into a live CD and opened up GPARTED and my sdb4 (my /home location) partition shows up. I do a check on it and it seems ok.
I opened the Palimpsest Disk Utility to see what it said and it shows sdb4 as Unknown or Unused. I can not mount this drive using GUI methods.
I did some research on the forums looking to recover lost partitions. here is the output from fsck
Code:
and the abbreviated output from fdisk -l
Code:
Disk identifier:
This seems ok too.
My next step was to try testdisk. When I ran it, I was able to navigate this partition and apparently see all my files. I then tried to mount the partition manually.
Code:
That also worked.
It seems to me that I practically have this thing where I need it without too many worries.
My question is: What is the next step to get this back booting again? I'm afraid of rewriting the partitions in testdisk until I get some feedback on whether this will really solve my problem. Maybe the partition isn't the problem? Is it something else and I've been going down the wrong path?
I bought a new dell studio 1555 from best buy about a year and a half ago. Got the warranty because I have 4 kids and something is bound to be dropped, spilled or smashed at some point. True to my visions, something did get dropped smashed and spilled, and pennies got stuck in the dvd slot. So I took it in when the screen stopped coming on because of a loose connection in the hinge and they did apparently fix that problem, but also were benevolent enough to wipe out my entire hard drive, operating sytem and all, totally free of charge. I guess they figured since I like accidents so much, I would just LOVE having 18 months of data and programs disappear into thin air. I know all about how I should have backed it up, and I am not whining too much over this. I will roll with the punches. But there are just a FEW things on that hard drive I will really miss. Like a few crucial spreadsheets that I was not able to save to my external drive before the screen went south. Now that windows 7, I am not planning on missing at all. In fact I am loving running my new Ubuntu 11.04 from my usb and knowing that those idiots will not be able to screw this one up next time. But I would really like to be able to recover those files if I can. Is there any way to get those back? And I also cannot figure out how to find device manager. Do I have to install to hard drive to use that? I know these are all probably total newbie questions. But hey, i got here as soon as I could. Everybody has got to start somewhere.
View 9 Replies View RelatedI was backing up my hard drive last night when the backup drive died. Somehow some files are now missing from my hard drive. Any idea how to recover them on the hard drive. I'm using Mint 7, I was preparing to move to Mint
View 3 Replies View RelatedHow to recover a lost password from a rar file?
View 1 Replies View RelatedNow am terribly frustrated because i reinstalled my linux installation(Ubuntu 8.04) after falling prey to an inode error. So i reinstalled stuff under my root partition under which i had some files which i obviously lost.I have tried recovering the files (mostly mp3 files) using photorec and the max file size i managed to recover was 4.0MB. the rest fall in the tune of 300kb.My question is, is there a way to make a full recovery of the above files seeing that they indeed can be recovered?
View 1 Replies View RelatedI was following a tutorial about 6 months ago that I think may have been for a different version of Fedora than I was running. Long story short I screwed up my installation and cannot get past this screen. The login screen has lost all of it's custom GUI theme and I can't log in. For one reason because after 6 months I can't remember my password (which is also strange because I only use the same few passwords for OS logins). I also get this error that pops up and then goes away on it's own.
Install Problem!
The configuration manager defaults for GNOME power manager have not been installed correctly. Please contact your computer administrator. I also get a caution sign icon like this one in the system tray on the login page. When I click on it it tells me that:
Starting Avahi deamon... [FAILED]
I'm not sure I want to spend the time fixing the install as I was planning on giving KDE a spin. I do, however, want to be able to recover some files on the partitions that Fedora was using. Can I just install Fedora KDE on a fresh hard drive and be able to see those partitions automatically and then transfer it to an external? Or will I have to find and mount all of those partitions manually? Also, will I even be able to gain access to those files considering I don't remember my password?
my mother wanted to update her iphone and during the process something happened and all of the phone has been wiped and we don't know what to do, regular recovery tools only work with regular storage media and the iphones file structure is too advanced to the point where you can only do this with a machow can i recover the data if there was no backup on the computer that it was using to upgrade
View 3 Replies View RelatedI have 3 drives in my computer. I installed Fedora 11 on my two biggest one, with the LVM treating them as one single drive. I attempted to install XP on my last drive. As I was installing, I selected my third drive (I'm 100% sure it is the correct drive as it is an 80gb whilst the others are 120 and 200 respectively) and told it to delete the partition on that drive and format. After I did that, it started to format, starting with my 120! I'm fairly sure that it was merely a quick format, as it only took 5-10 seconds for it to format, and that my data is still there. Is there any way to recover my "lost" data, or did I just really screw myself over?
View 6 Replies View Relateda client brought in an 160GB external HDD and wanted to get the files off it, there appeared to be no partitions on the disk but i thought it may have been formatted to use the whole disk. I tried to mount it as the various FS types the client thought it may have been to no avail.
I ran testdisk on it which told me that it previously had a mac partition table and a 210GB partition on it (which is larger than the disk) could anyone enlighten me as to whether or not this is even possible, and if so how could i retrieve the data?