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
ADVERTISEMENT
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
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
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
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
Mar 17, 2011
a 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?
View 2 Replies
View Related
Aug 6, 2010
Is there a difference between using GPT partition table when formating hard drives and MS-DOS partition table? What are the advantages/disadvantages of using either?
View 2 Replies
View Related
Oct 30, 2010
Recordedseek became corrupted and couldn't be fixed no matter what I tried, so I went in, truncated the table and rebuilt it with mythcommflag. I also did some myisamchk repairs on a couple of other tables (settings and eit_cache). Now myisamchk tells me all the tables are fine. But when I restart the database I'll get an error like: ERROR 126 (HY000) at line 1: Incorrect key file for table '/tmp/#sql_2506_0.MYI'; try to repair it
In terms of the effect, I have lost all my recordings. Listings seems fine (although it has crashed a couple of times, I think I've fixed whatever was wrong), recording schedules seems fine, but even though there is stuff due to record upcoming recordings is empty. Mysqlcheck isn't showing any problems, I'm at a loss as to where to go from here.
View 2 Replies
View Related
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
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
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
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
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
Feb 16, 2011
This must be a server related question, so i decided to give it a try!I installed the defaults of:
apt-get install apache2 php5 mysql-server
Then i installed Moodle 2.0 blá, blá ... It's working fine from localhost. When try to access this server from other host i get:
"incorrect access detected, this server may be accessed only through [URL] address,"
Apache is working fine because i get the "It work's!" message.
View 1 Replies
View Related
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
Mar 27, 2010
I want to change my sda2 partition to ntfs type. i have installed GParted but it is returning a strange type of error. Here is the error dump file...
[Code]...
WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot. WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot.
View 9 Replies
View Related
Feb 5, 2010
Is there a program that will reread the partition table and update the kernel even if one of the unmodified partitions is mounted? I installed my system on one partition, then I added another with free space. Now I want to format the second partition, but the kernel doesn't know about it yet. I tried sfdisk -R /dev/sda, but it refuses while the root partition is mounted. Is there anyway I can avoid rebooting?
View 2 Replies
View Related
Oct 5, 2010
What I believe has happened is that I've corrupted the partition table. Essentially one of my partitions' ending point exceeds the maximum number of cylinders/sectors on my drive.
Essentially I have the same problem as on the thread @ [url] but do not know how to fix this and am afraid to reformat/partition based on sectors without really knowing what I'm doing here.
[code]...
When I try to look at SDA in GParted everything shows up as unallocated (though it's obviously not) and it says
[code]...
View 2 Replies
View Related
Jul 29, 2011
In my efforts to resize my BTRFS Partition, I accidentally unmarked my BTRFS partition as being BTRFS, and can't mark it back as I can't find the numeric ID for BTRFS and how to apply.
View 1 Replies
View Related
May 20, 2010
I was installing opensuse 11.2 in parallel with windows xp.but during installation suddenly power has gone and after that opensuse is giving me the error message corrupt partition.i am also not able to login in xp. so I decide to reinstall windows, I got the error saying "invalid partition table" after the first restart of windows xp installation.
I tried to use windows system recovery console and committing fixmbr and fixboot commands, but didn't work.
i have 2 window partition(1 for windows and 1 for data).i do,nt want to format 2,nd partition.
How can I installed windows?My plan was first to install windows xp, then opensuse again.
View 2 Replies
View Related
Jan 26, 2011
I have tried to automate the configuration of a usb drive with not much success.
The problem that I have is that I have a large amount of usb drives that have a partition table of type "loop" and I need to change them to "msdos". The size of the drives vary and I need to use FAT32 or FAT16 file system.
I've tried various partitioning commands and gui applications but cant find one that I can give a one line command to to set the partition table, maximum partition size and file system.
View 9 Replies
View Related
Feb 8, 2010
I was reading another thread about someone with a bad partition table and I decided to join this forum. I'm not going to take any drastic actions with the partition (/dev/sda3) in question. I am going to wait for instructions on what to do first. I am not very good with Linux and need some hand holding. System: DELL 4550 Dual-Booted with XP and Ubuntu. Works OK, just no swap. Well, here's what I did: I deleted a partition for Windows XP Pro because it was a trial, and it ran out. I then decided to slide the swap partition for the Ubuntu Linux that I dual-boot into over. (If this was successful, I was going to try expanding the root partition to take up the unused space.) I used Gparted on a CD to do this, as I figured it was safe to do.
I now cannot mount the swap space at bootup (and have to go into a backup version of the OS), although I can use Gparted in Linux to execute the "swapon" command, and it appears that it worked because I now see "swapoff" as an option on the context menu. (I actually don't even need a swap partition, except to hibernate.) If I highlight the swap partition and click on "Drive" on Gparted's menu bar and select "Create Partition Table", it will erase all data on /dev/sda, so how do I fix the bad partition table non-destructively?
View 14 Replies
View Related
Apr 24, 2010
Everything is installed and setup on my system, but when I setup my partitions I chose my Windows partition to be bootable. Can I just use cfdisk to toggle the bootable flag so my linux partition is bootable and rewrite the partition table?
View 2 Replies
View Related
Feb 17, 2011
USB flash disk partition disappeared as well as partition table I'm not sure about the cause
Code:
root@u# less /var/log/syslog
usb 5-1: New USB device found, idVendor=058f, idProduct=1234
usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[code]....
Where did the partition table go? The device had one ext3 partition something around 4GB(size of USB storage device). I need to restore few files from this device.
View 3 Replies
View Related
Nov 19, 2009
I'm trying to clone a Linux install to a different laptop. It's made a little complicated by two facts:
1) The 'new' laptop I'm trying to copy my Linux installation to is actually older and has a smaller hard drive then the computer I'm copying from
2) The computer I'm copying from has both a windows and Linux installation; I only care about the Linux partition.
I figured I would copy only the Linux partition from my primary computer to the laptop, sense the laptop doesn't have a large enough hard drive to copy everything. So I used the DD commands to copy SDA3 (main Linux partition) from my main computer to SDA2 of my laptop. When I came back a few hours later I was surprise to find my laptop trying to reboot itself (I never turned it off). It would keep starting to reboot, failing, and restarting itself. Not too surprising sense its boot partition wasn't changed so it's trying to boot into centos when I copied a redhat partition to it.
The problem is that when I used a redhat boot disk the rescue mode was unable to find a Linux partition to mount. /dev/sda2 exists, but trying to mount it gets the complaint "No such file or directory". "fdisk -l" lists sda1 (the boot sector) and sda2. Sda2 is the correct size and reports Linux LVM for its system. But "fdisk -l /dev/sda2" gives the error message "Disk /dev/sda2 doesn't contain a valid partition table" Did I not clone the drive correctly, or was an error caused due to the boot sector not being copied yet (the laptops boot sector is smaller then my old computers, so I can't copy from old computer to laptop)? Can I salvage the laptops partition table somehow, or do I have to repeat the cloning process? And if I do have to re-clone my computer can anyone tell me what I did wrong the first time so it works this time? I don't care if I copy just the Linux partition or both windows and Linux. Even though my main computer has a larger hard drive I'm only using about half of its available space so it should be possible to copy both partitions if I could ignore the unused sections of the harddrive.
Edit: I used DD to copy a tiny part of the Linux partition from my laptop so I could look at it. Most of it is illegible binary of course, but I scrolled through till I found some text right near the beginning:
Code:
VolGroup00 {
id="F2MWxh-....-BidcLe"
seqno = 1
[code]....
So it seems that the DD command did copy everything over to the laptop, which is good to know. I noticed that it says device="/dev/sda3" right in the middle of the code I just posted. The Linux section of my original computer was SDA3 but I copied it to partition SDA2 of my laptop. So is the problem because the boot partition is for the wrong device? I don't suppose if I modified that one line to say SDA2 it would be able to load correctly? (Not that I know how I would modify the line, short of using the DD command again).
View 8 Replies
View Related
Nov 26, 2010
i have create a Custom ubuntu cd with the guide [URL]But when i try to install i have this error: "Incorrect CD-ROM Detected".
View 2 Replies
View Related
Jan 29, 2010
I have googled and looked around on the forums but I couldn't find anything that directly answers my question. I have a dual boot set up with Vista and Ubuntu 9.10. My hard drive is partitioned into dev/sda1 (where Vista resides) and dev/sda2 (where Ubuntu resides) and /dev/sda4 which I use as a shared hard drive for the two operating systems.
When I first installed Ubuntu on dev/sda2 I used gparted to make /dev/sda2 a 10 GB partition becuase I wanted to try putting ubuntu on a very small partition. Since then I used gparted to expand /dev/sda2 to 32GB. But when I use System Monitor (System--->Adminstrative----->System Monitor) it shows only that the /dev/sda2 space is 10GB (and says that there are only 2.9 GB) remaining unused. Yet when I use gparted to look at the partitions, it says that /dev/sda22 is 32 GB with 3.9 GB remaining unused.
I am wondering if anyone knows why they show two different sizes and what I can do to fix the size being shown. When I tried to make a tar gz back up of my system iit returned a message warning me that my /dev/sda2 partition was almost full because it put the 1.5 GB tar gz file in my home drive (which I suppose the system monitor only sees as a 10 GB space that already has 7 GB in it).
View 1 Replies
View Related
Aug 23, 2010
I installed Ubuntu as shown in the wiki and when I went to restart it gave me a lovely blinking cursor and nothing else. So I held down option, loaded into osx, reinstalled rEFIt and got my menu on startup. Unfortunately, the partition sync tool doesn't seam to be working, it gives me an error: Status: MBR partition table is invalid, partitions overlap. Error: Not Found returned from gptsync.efi
View 9 Replies
View Related
Jun 13, 2010
I am using Kubuntu Amd64 Lucid on my desktop and I have allocated 08.03 GB partition for swap. But today I have noticed that system monitor is showing this as 09.90GB which is incorrect.
I tried deactivating the swap from KDE Partition manager. Even after deactivating swap it still shows the swap as 1.9 GB. So there is clearly 1.9 GB swap added to my system. I am not sure how. Attached screen shot clearly shows the system monitor issue. One possibility is, I have 4 GB (3.7 asper system) RAM comprising two units of 2 GB cards. Is this 1.9 GB read from one of these? I tried to boot the system from Kubuntu AMD64 live CD and then it showed only 8 GB as expected. So not sure whats causing this issue in my installation.
View 2 Replies
View Related
Aug 15, 2009
Initially I had vista and redhat 9 due to some reasons i had to re instal my vista again.. since then the dual boot menu disappeared.. i tried to re install redhat and changing the boot configuration of redhat 9 but i am not getting both the OS back .. I am not aboe to boot linux redhat 9 .. please check the attached screenshots for details .. Vista is getting on fine but no redhat .. every time i try to fix the issue i get an error message "Unable to align partition properly..incorrect BIOS geometry .plz check the attached files.
View 5 Replies
View Related