Ubuntu :: Why Does Testdisk Say Structure Is Bad?

Feb 7, 2011

I recently installed windows 7 next to my ubuntu installation, I had to mess with partitions a bit to get it all to work, now I finally made it work, I can boot nicely from booth of them, but gparted doesn't show my partitions anymore (just says unallocated space), and when I try TestDisk to rewrite my partition table it says structure bad when I configure it as I like it.

Why is this not possible? Why is this structure bad, everything works ok atm, except that I can't change partitions or create new partitions because they're not recognized.

View 8 Replies


ADVERTISEMENT

Ubuntu :: How To Get Testdisk To Work?

Jan 3, 2010

I'm new to Ubuntu and linux.I've altered the partition on my hard drive. Won't boot into windows. Do not have internet. Heard that testdisk should help. I have downloaded some testdisk files to a usb flash drive via another computer.Have ubuntu 9.10 DVD, so can use this.Step by step, how do I get testdisk to work?

View 9 Replies View Related

Ubuntu Installation :: How To Run Testdisk?

Mar 12, 2010

Recently upon running the palimpsest (in my 9.10 KK) test, i was shocked to be informed of some bad sectors on my toshiba laptop's HDD.i recall someone on this forum once suggested that the most reliable test for checking HDD consistency is the Testdisk application hosted on wikipedia etc.my problem is this- although i have downloaded Testdisk (through wikipedia) i dont really know what to do with it. i.e. how do i go about generating a report which will tell me the number of bad sectors etc and if they can be isolated.

when i ran the application all i could see were various leads about recovering an already corrupted hard drive or an accidently lost partition.so all i want to do is for Testdisk to analyse my HDD and tell me how healthy it is. but i can't seem to find the right steps to do this !

View 8 Replies View Related

Ubuntu :: Possible To Use Testdisk To Rewrite MBR?

Jun 14, 2011

Is it possible or wise to use a program like 'testdisk' running on an Ubuntu 32-bit system to rewrite the MBR of a Windows 64-bit system hard drive? I am only asking because I am cleaning someone's HDD after they got infected with a Trojan called "Dos/Alureon.A. They were worried that they might have to do a re-partition and clean install.

View 4 Replies View Related

Ubuntu :: TestDisk Cannot Find Partition To Fix

Apr 27, 2011

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 Related

Ubuntu :: Using Testdisk To Recover One Of Lost Partition?

Jan 21, 2010

I 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 Replies View Related

Ubuntu :: Delete Recovered Files ( By TestDisk )?

May 1, 2010

I have used TestDisk to recover lost data. But it recover much more than I expect. So I wanna know how to delete those files.

View 2 Replies View Related

Ubuntu :: Testdisk--formatted Memory Stick, Won't Appear Anywhere?

Aug 1, 2010

I am using Ubuntu 10.04. I was having problems with bad sectors on a Sony memory stick--a couple of photos that we couldn't get off. So I installed testdisk and photorec and successfully got the photos off. That's the good news.

I decided I format the stick using testdisk. I unmounted it and formatted it (FAT) I don't know whether I re-mounted it, there was some message about rebooting.

In any event I now can't get the stick to show up *at all*, no matter what I do. testdisk doesn't seem to see it, it doesn't come up on my desktop when I plug the camera in. The camera doesn't recognize that it, my windows boxes don't see it either.

View 4 Replies View Related

Ubuntu :: Using TestDisk Software To Recover Files?

Aug 23, 2010

I 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 Related

Ubuntu :: Possible To Recover Home Partition Using TestDisk?

Aug 30, 2010

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?

View 1 Replies View Related

Ubuntu :: Unable To See NTFS Partitions Even Using Testdisk

Nov 1, 2010

I was running Windows XP SP3 when one of my drives (or partitions) suddenly wasn't accessible. I booted into an old ubuntu Live CD I had (version 8.X) and tried mounting it. I could see the other partitions at this time. I rebooted the machine a couple of times (for normal reasons) and after a particular reboot none of my partitions were present! All seemed to have gone! I didn't do anything except mount the partition from Ubuntu Live CD. Made no write operations .

fdisk -l gives me this:

Code:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

[code]....

to list the files and I get:

Code:

Can't open filesystem. Filesystem seems damaged.

I originally had 6 partitions (including my primary). What do I make of the above screen and how do I proceed? Mot of testdisk documentation says "Choose the paritions to recover..." but I do not have a partition. What do I do to recover my data? I don't mind reformatting my entire HDD, but I need to get some jpegs and movie files off it first.

View 8 Replies View Related

Ubuntu :: Using TestDisk To Recover Lost Partitions?

Nov 16, 2010

I 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).

View 1 Replies View Related

Ubuntu :: NHD / NAS Stopped Working - TestDisk Utility?

Jan 18, 2011

My NHD/NAS stopped working. Hoping it was a problem with the network card I pulled the hard drive out of the NHD case and mounted it in an external case. Windows 7 won't mount it, neither will XP, neither will a Mac. The drive shows up in the device manager but won't mount. It sounds fine spinning. Quiet and no different than before. The NHD was a 250GB Iomega black series. The actual drive inside is a Western Digital. I've been planning on trying Ubuntu for a while on an older laptop that really slowed down with XP SP3. Loaded ubuntu up - all went very smoothly. I'm quickly becoming a huge fan of the OS. I plugged in the drive on my new Ubuntu system and it mounted! The drive shows up as 3 drives which I'm assuming are partitions. I can actually access the middle 66 MB drive. It contains what I suspect is the Linux operating system for the NHD.

If I try to access the other two I get a pop-up per:
For the 66 mb I can't access - "Error mounting" mount /dev/sdc2: can't read superblock"
For the 250 gb I can't access - "Error mounting" mount /dev/sdc4: can't read superblock"

I then tried to run the testdisk utility on the 250 gb drive both using "sudo testdisk /dev/sdc4" and just "sudo testdisk". I've also tried NONE and the INTEL partition. Based on my earlier post and playing around with options I think running it with "sudo testdisk" and INTEL might be the way to go. See the screen shots for the errors and sequence of events. I don't know what to do next - which seems to be something to do with testdisk thinking my drive is a heck of a lot bigger than it is. If testdisk can't fix it - I really need this drive recovered. I had a 2nd drive ready to back up this 250 GB NHD. Never did it. That is a mistake I'll only make once!

View 9 Replies View Related

Ubuntu :: Sudo Apt-Get Upgrade Hangs At Testdisk

Jun 17, 2011

I started with
Code:
sudo apt-get install testdisk

It hung so I hit Ctrl-Z then ps -a and found the process and
Code:
sudo kill -9 PID

I went and deleted the lock file in /var/lib/dpkg/ on the install and ran
Code:
sudo dpkg --configure -a

I rebooted and it is still hanging when I do a sudo apt-get upgrade it still hangs at testdisk:
Code:
Preconfiguring packages ...
(Reading database ...
dpkg: warning: files list file for package `testdisk' missing, assuming package has no files currently installed.
(Reading database ... 159122 files and directories currently installed.)
Preparing to replace testdisk 6.11-1 (using .../testdisk_6.11-1_i386.deb) ...
Unpacking replacement testdisk ...

I tried to uninstall it via the package manager and it hangs there too. I'm in 10.10...and I think this is the only time I've had an install hang...

View 8 Replies View Related

Hardware :: Cannot Launch TestDisk

Jan 16, 2010

I am brand new at Linux and there are still lots of things I have to learn.And, therefore, I prefer to ask.(A friend of mine once said there were more dumb people than persons who ask.)Well, following suggestion from devils casper in a previous thread I installed TestDisk in my Fedora 12 system through the add/remove software tool.Now, I do not see how to launch the program.There is no call in any of the applications menus.

View 3 Replies View Related

Ubuntu :: TestDisk - Incorrect Partition Table Detected

Apr 29, 2010

I'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!

View 5 Replies View Related

Ubuntu :: Recover Deleted Data Using Testdisk Tool?

Jul 28, 2010

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]...

View 2 Replies View Related

Ubuntu Installation :: Testdisk Can't Restore The Partition - Just Deleted

Aug 8, 2010

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?

View 9 Replies View Related

Ubuntu :: Reading Testdisk Log And Restoring Partition Table?

Apr 1, 2011

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.

View 3 Replies View Related

Fedora :: Testdisk Recover Data

Jan 6, 2011

Because 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).

View 4 Replies View Related

General :: Disk Recovery Using Testdisk

Jun 28, 2010

I was installing ubuntu and somehow formatted the D partition on my hdd. I have installed testdisk and have been running quick search and deep search. Testdisk found my partition as a NTFS (I used windows vista). When I press P to list files, testdisk gives me the following message: Cant open filesystem. Filesystem seems damaged.Is it possible to recover any data from the partition or is it lost?

View 2 Replies View Related

Ubuntu :: Grub Rescue Only Detects HD0 (fsck, E2fsck, TestDisk)?

Oct 15, 2010

I (through TeamViewer) helped my mother (who is in Spain) updating her laptop to 10.10. I was of course doing this while doing other things at work, and managed to replace the Grub installation. Now the machine won't boot.
It stops in Grub Rescue.After having a look at the Grub Rescue Mode Megathread I made her type the command

Code:

ls

with the result that it only detects HD0

The previously mentioned thread then says:

Quote:

If all you get is (hd0) you most likely have a partition table or disk error. Seek assistance elsewhere! (fsck, e2fsck, TestDisk, etc.) It used to be (at least) two partitions on the disk, one with Win 7 and one with Ubuntu 10.04. I need to tell her (over the phone) to type in order to make the computer boot again? The laptop is, by the way connected to the Internet. Normally I am so careful when doing stuff like this, but today, I messed it up. And of course it had to be my 2500km's away mothers machine...

View 3 Replies View Related

Hardware :: Help With Testdisk And A Corrupted File System

Aug 1, 2010

I think that my external hard drive was either "unsafely removed" or powered off at a critical moment because when I tried to connect it to any OS Mac, Windows Ubuntu etc. It could not be read. I forget the Windows error message but the Ubuntu one was "mount error 2".In any case I downloaded testdisk asked it to analyze my hd and about half way through it said that the number of heads per cylinder were 128 and it more than likely should be 255 (or the other way around I forget which but I know the numbers are right). So I went and changed the geometry of the external HD such that the number is what testdisk told me was and the result is that my computers can read it but it seems that all the files are missing.

I used photorec and I have recovered all the files (unnamed and disorganized of course)So this leads me to the following question: is there any way I can repair my file system or access the files so that I don't have to go through the 16,000+ files rename and reorganize them again?

View 14 Replies View Related

Ubuntu :: Recover Lost Data From NTFS Partition Using Testdisk/Photorec?

Mar 8, 2010

My 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 Related

Installation :: Utility For Recovering Partition Table - Testdisk?

Oct 8, 2010

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...

View 2 Replies View Related

General :: Restoring Partition Table - 'Testdisk' Not Working?

Jan 27, 2010

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]....

View 4 Replies View Related

Hardware :: Recovering Partition Table Using TestDisk And Sfdisk?

Jul 16, 2010

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.

View 2 Replies View Related

Hardware :: Testdisk Fails To Find Lost Partition?

Jan 12, 2010

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).

View 7 Replies View Related

Ubuntu Installation :: Error: "Unable To Locate Package Testdisk"

May 19, 2011

I am trying to install Photorec / testdisk I am entering this in terminal sudo apt-get install testdisk sudo apt-get install photorec For all these i am getting a message, "E: Unable to locate package testdisk" and similar message for Photorec. I tried this even for Foremost but i am getting same message. how do i get to open and work on these packages?

View 4 Replies View Related

Ubuntu :: Folder Structure And Installations

Dec 20, 2010

Just installed Ubuntu on a Dell M1730 and working my way around the system. Biggest problem I'm struggling with is the folder structure and privileges. I've downloaded a few programs that don't come in DEB format. Consequently I'm not sure how they should be installed. As a windows user my assumption is that there would be a program files like folder but I'm not sure what the Ubuntu equivalent is. I've tried /opt/ but then I run into lots of privilege issues that can only be resolved by chmod. Can you advise which the location that programs should be installed in for manual installations and under which user (Standard or SU)?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved