Ubuntu Installation :: Use "Testdisk" For Recovering Media On 10.04?
May 10, 2010
I have heard of a program recommended by dino99 "testdisk" Its in repos so to install in terminal:
Quote:
sudo apt-get install testdisk
when installed just type:
Quote:
sudo testdisk
in terminal to run, i've no idea how its used, though "(create) Create a new log file", then select drive seems the way forward how would i use this to recover a corrupted memory card / usb driv
View 3 Replies
ADVERTISEMENT
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
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 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
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
Mar 30, 2011
Well, I was just doing an update, and there was an update for git that was held back. I decided to force this update using 'sudo apt-get dist-upgrade', and installation of git then failed. At this point in Synaptic - I could see versions listed as 'lucid', 'lucid-security', and then this ppa version. Then I barely managed to remove git - but now, if I try to install it again, *only* the ppa version is listed in Synaptic - no more 'lucid' and 'lucid-security' versions!!! Does anyone have an idea how I could recover the 'lucid', 'lucid-security' versions? I will try to salvage as much of the terminal with the problems as I can below...
Code:
/var/lib/dpkg/tmp.ci/preinst: 12: dpkg-maintscript-helper: not found
dpkg: error processing /var/cache/apt/archives/git_1%3a1.7.4.1-3~ppa1~lucid2_i386.deb (--unpack):
[code]....
View 1 Replies
View Related
Jan 12, 2011
A friend's vista laptop is riddled with viruses, errors and general windows doom, and I've said I will rescue their data and replace windows with Ubuntu....I just wondered if there's a way I can rescue their M$ office key fro the liveCD. Windoze can't boot, but the HDD is readable.
View 2 Replies
View Related
May 20, 2011
Trying to follow [URL]
View 9 Replies
View Related
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
Mar 4, 2011
I have 2 hard disks. sda,sdb
In sda, I have 4 partitions, and I have windows 7 in one of the extended partitions [not in the primary partition].
In sdb, I have 3 partitions. 2 for storage, and 1 10GB drive for Ubuntu. Again, Ubuntu is not of a primary partition.
I had ubuntu 10.04 running on that for a long time. However, I wanted to reinstall ubuntu and use 10.10.This is what I did EXACTLY:Booted from Ubuntu install CD
Chose advanced istall
Selected sdb3 for Ubuntu
I installed GRUB2 on the SAME partition as Ubuntu aka sdb3 Installed then rebooted
I can boot into Ubuntu fine, but whenever I select Windows 7 bootloader from the GRUB menu, the screen goes black, and my PC reboots.
Boot Info:
Code:
Boot Info Script 0.55 dated February 15th, 2010 [code]....
ls: reading directory sda6/: Input/output error
I have tried the testdisk/update-grub method, but it didn't work.
View 9 Replies
View Related
Jun 5, 2010
I've just tried installing drivers for my laptop (sis 671) and now my desktop gfx are corrupt. Any idea how I can recover? (eg delete xorg.conf).Recovery mode is corrupted, command prompt boot is really limited and I can't figure it out.
View 1 Replies
View Related
Nov 12, 2010
I installed Xubuntu 10.10 on a 16 GB pendrive with full disk encryption using the alternate installer. The installation process was quite time consuming so I made a backup booting from the standard live CD with something along these lines
dd if=/dev/sdb conv=noerror,sync | pv | gzip -c -9 > foobar.img.gz
The pendrive booted fine for a couple of days and BTW it was quite good performance-wise, but I decided to scrape it off and start from the backup, so I run
gunzip -c foobar.img.gz | pv | dd of=/dev/sdb conv=sync,noerror
Now upon boot I am getting error: hd0,msdos1 write error. After a while the login screen appears: Unlocking the disk /dev/disk/by-uuid/58a8... (sdb5_crypt) Enter passphrase: So I enter it, get the OK message cryptsetup: sdb5_crypt set up successfully only to get the following prompt No init found. Try passing init= bootarg. BusyBox v1.15.3 (Ubuntu 1:1.15.3-1ubuntu5) built-in shell (ash) Enter 'help' for a list of buil-in commands. (initramfs) How to fix it? Is it possible to do backups of encrypted systems this way or do I have to use different tools for backup operating on the filesystem level for example?
View 2 Replies
View Related
Apr 25, 2010
I purchased a larger hard drive to upgrade my HTPC running MythTV and a Samba file server. I put the old hard drive into an e-SATA enclosure and can still boot to it to access my files, but I can't seem to mount it correctly under the new installation to copy over my files even though I have the mount passphrase and encrypted filenames key.I have tried using this howto, but I run into problems with the encrypted filenames.This is how I'm doing it. I replaced the actual key data with A's and B's to protect my keys:
Code:
$ sudo -i
# ecryptfs-add-passphrase --fnek
[code].....
View 2 Replies
View Related
Jul 2, 2010
I have a laptop that I have been running 64bit lucid on after some problems with NFS Samba and SMB the installation got a bit trashed after some workarounds I removed nautilus completely and rebooted and got the looping login screen........ then I tried a suggestion to purge gdm but that left me with a blank grey screen and a mouse pointer. X11 has failed so I have no graphics
I can login properly to the drive from the terminal and can access my drive contents... I cannot load dolphin or nautilus from the terminal. So I have booted from a live cd and have moved some of my data to another partition but some is locked to the owner (me). How can I get my locked data opened so I can copy or move it to another drive, so I can perform a fresh install.
View 2 Replies
View Related
Nov 14, 2010
I had an old PC running as a file server which had been hacked together with old spare parts. There were two hard disks that had several partitions on each and I had combined one partition off each disk into a Volume Group using LVM.I upgraded to a better server (now with one HD dedicated to the system and two 1TB HDs for data and backup).Time passed.... (over a year). The old server is now in Silicon Heaven with all the calculators. (<----Red Dwarf)However, I still have the disks and I now want to try to get the data off the LVs on those two HDs.I just had a look at the disks using LVM2 on an Ubuntu 9.10 system and it sees the partitions formatted as LVs but doesn't seem to let me do anything with them. I had a go with LVM at command line as well but I don't know enough (but I got the name of the VG).
View 2 Replies
View Related
May 26, 2011
I recently accidentally corrupted my windows vista partition whilst trying to extend it via gparted under ubuntu 11.04 and then cancelling it shortly after starting. Resulting in me being unable to boot into vista (I don't have another copy of any windows OS so I'd really like not to have trashed this one )
Looking on gparted now my partition is Fat32(?) and apparently only has 36mb used =/
View 7 Replies
View Related
Jan 7, 2010
I was running the Update Manager when my system froze due to the failure of Karmic to support motherboards using the Intel 845 chipset.
Although the update did not complete when I rebooted and invoked Update Manager it reported that the system was up to date. How do I reset the system so that I can install the updates?
View 1 Replies
View Related
Mar 7, 2010
I installed windows 7 and recover grub from the karmic livecd successfully. Now I can access all the OS in my machine. The only weird issue that I have is that there's no login promote in tty1-6 any more. When I switch to tty1-6, I can only see a flashing underline promote. But I can input anything in tty1-6. How to get tty1-6 back?
View 4 Replies
View Related
Jul 27, 2009
I started some months ago with Fedora 10, installed (on a barebones hardware package) from a DVD I got with a magazine. I liked it, and it worked fine. When 'Update Available' messages arrived, I installed the updates. When Fedora 11 arrived the same way, I installed that, a few weeks ago, and it, too, was working fine. A few days ago another 'Update Available' message arrived, and I installed it, unfortunately without backing up first. There was a message then that said to restart computer (which was still working fine).
I restarted the computer, and it would go as far as the moving blue bar across the bottom, then stop with a blinking cursor on a black screen. After trying several things, including the recovery part of the original DVD, I put a different, clean drive in the computer and reinstalled Fedora 10 from the original DVD. What I was hoping is that I could then install the original drive as a secondary one and get access to the files on it.
View 14 Replies
View Related
Apr 17, 2010
I just got an Acer netbook Aspire One. I put the Ubuntu remix on it successfully, and was using it for several days without problems. Now all of a sudden when I turn on my computer I get a grub error message with a command prompt. I've tried following the direction to restore grub but I'm getting stuck right away on the command to mount my ubuntu partition. After I type "sudo mount /dev/sda4 /mnt", I keep getting the error message "mount: you must specify the filesystem type."
View 3 Replies
View Related
Oct 12, 2014
I have a dual boot machine (Windows 7 and Debian). W7 and debian are on the same HD but on different partitions. The debian partition is an LVM encrypted one.
The W7 needs reinstalling, and as I understand the process will overwrite the debian bootloader (grub).
Question: Is there a way to save the current bootloader and recover it after I've reinstalled W7, so I wont have to reinstall debian from scratch?.
I plan to re-install W7 on the same partition it is now, without overwriting the debian partition.
View 9 Replies
View Related
May 10, 2011
I was installing Ubuntu to the internal disk in my main machine, with all external drives unplugged for safety - then discovered I had accidentally chosen the external drive and it wasn't unplugged. (Seeing three drives not two listed as installation targets should have tipped me off, but I guess my IQ was low that day.)The external drive, in compliance with Murphy's Law, was my backup drive with all vital current files.The last few months of work gone.Now the drive shows only the stuff I normally expect in / on any Linux machine. It mounts showing as ext4, but the disk was (I'm 98.5% sure) originally ext3.However, the installation did not finish.Whatever files got copied, clobbered only a fraction of the disk. df reports only 1% of the space used.Maybe the bulk of my valuable files are okay, and could be recovered with some tool?
There are other questions on this site about file recovery, but many are for Microsoft Windows, or for malfunctioning disks, or some other situation. I'm on Linux with a physically healthy external disk. I'm fairly sure that the more recent and more important files are in multiple copies on that disk, so if one copy is clobbered there's hope to get the second copy.
View 2 Replies
View Related
Nov 4, 2010
I'm running Debian Squeeze AMD64 with full disk encryption and LVM. After reinstalling Windows 7 I lost GRUB from the MBR. I managed to install GRUB after following this guide and using an Ubuntu 10.04 graphical installation disc, but I only get to a GRUB CLI when booting, so I can't actually choose an OS there.
I tried following this guide but I'm stuck after "# Mount the partitions to /mnt/root" and don't know what to do.
Does anyone know how I can fix GRUB so I get to choose between Debian and Windows 7 there?
View 6 Replies
View Related
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
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
View Related
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
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
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
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