Ubuntu :: How To Restore Deleted Truecrypt Partition
Feb 16, 2010
my /dev/sdb was a truecrypt partition that was mounted when I accidentally deleted the partition in gparted (instead of sdc, stupid). I'm pretty sure I haven't overwritten anything since then, but I'm not sure how to go about recovering this one. To confound the problem, the only way I can install stuff to my ubunut machine is by downloading on a windows machine and transferring by memory stick.
I was working on creating a partition on a new hard drive I was planning on using for storage. I wasn't paying attention and chose to delete the partition on my master. I am running a dual boot with Vista and Ubuntu. When I rebooted It will only go to the Grub> prompt. Ive ran TestDisk and though that I had corrected the problem but it didnt. After running TestDisk again here is what It came up with.
Disk /dev/sda - 320 GB / 298 GiB - CHS 38914 255 63 Partition Start End Size in sectors L HPFS - NTFS 0 32 33 28554 254 63 458734027 L Linux 28555 1 1 38585 254 63 161147952 L Linux Swap 38586 1 1 38912 254 63 5253192 Structure: Ok. Use Up/Down Arrow keys to select partition. Use Left/Right Arrow keys to CHANGE partition characteristics: code....
After writing the table above I rebooted. Windows prompted me for my restore disk. I rebooted to the live cd again and ran Fdisk.
I was dicking around today and I deleted an LVM partition, is there anyway I can restore the partition and add it back to my volume group or is it game over?
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 accidentally deleted my root ext4 partition, which I had encrypted. I am unable to log into any os since I am blocked by a Error 17. Is it possible to retrieve an encrypted ext4 partition, does it even matter that it was encrypted.
I accidentally deleted my top panel and am in the process of restoring it. The last thing that was there which is not now is the quick link to Ubuntu Help. It is installed on my PC but I cant find it.
I deleted my panel (where you can see running programs, show desktop shortcut). I know - its stupid to delete panel, but I wanted to try it out. How can I get it back?
To manage it more easy, I tied 2 harddisk in LVM. And I made an logical volume. It used ext4 for it's filesystem.
Today, I wanted to format and reinstall the system. So I booted the system using Ubuntu CD. But managing the partition, I accidently delete the logical volume. Because backup(/etc/lvm) was in itself, I couldn't restore the old config. I just create new logical volume.
As I expected, I couldn't mount it correctly. Mount said that "Mount: Mouting failed A on B! Invalid argument!"
I must recover it, because it has a lot of import data. What should I do?
I have a Laptop where I installed both Fedora 11 and windows 7 dual boot.
While I was upgrading Fedora 11 to Fedora 14 using preupgrade, I tried to edit /boot/grub/menu.lst file to make an option to continue upgrading the system after rebooting.
Accidentally, I deleted the file content and I couldn't restore it
I knew then that I'll face a problem when I reboot the system, and I faced it >> the grub selection menu disappeared , and only the line (grub> ) appeared when I reboot the system.
1- These commands:
Code:
But when I rebooted , nothing changed and the same (grub> ) appeared again.
2- I used the instructions in the PDF attached, but unfortunately nothing changed.
I think that I have to rewrite the menu.lst and grub.cnf files but I'm not expert and I don't know exactly what was there (locations , commands , etc. )
The current system monitor for the file system is shown in the next image:
By naming one of my folders wrong I thought I don't need it anymore and pressed delete button while holding shift. Is there any way I could get that folder back? (I'm actually looking for the file inside that folder - .conky config file to be more precise) I've tried scalpel and extundelete, but none of them worked.
The top right panel item contains the shutdown, time, network icons, etc. I don't use the messaging icon so right-clicked and chose 'remove from panel'. The whole lot disappeared! How can I restore things to their original state?
I accidentally deleted the file called "fstab,v" not "fstab" The files location was /etc/fstab,v if it is very important file and what its used for & how to restore?, as my server seems to be running fine, but I don't want to get into any problems later down the line.
I have carefully made daily backups using rdiff-backup, so in the case of needing to restore I can do so.
But I deleted a directory yesterday, and made a backup in the evening. Therefore, the directory is not in the latest mirror, but in the incremental backup from yesterday.
Now I need to restore the directory. But I cannot figure out how to!
I can see the directory in yesterday's incremental backup; i.e., the following works:
Code:
Where [backupdir] is the backup (mirror) directory, and [nameofdir] is the name of the directory I'm trying to restore.
So, I have tried to restore. This is the type of thing I have tried:
Code:
Where to-restore.lst holds the name of the directory to restore (in rdiff-backup's format) and [restoredir]is where I want the restored directory to go to.
But, I get errors like:
Code:
Useful file specifications begin with the base directory or some pattern (such as '**') which matches the base directory. Well, obviously the file specification doesn't exist in the [restoredir]. That's because I'm trying to restore it! If I try to create an empty directory first, it complains:
Code:
How do I restore a deleted directory from a previous day's backup to a designated destination?
My /boot folder is deleted by an unwanted mistake. I'm using F14 x64. I have updated my OS and I also installed more than 2 GB packages and It is very difficult for me to re install Fedora. Is there any way to fix this problem with out re installing Fedora?
Is any easy way to restore deleted files with Gnome Commander (v1.2.8.2)? I have external drive with two partitions: FAT32 and EXT4. I was using GC on Ubuntu 9.10 and it was working fine, today I installed openSUSE and GC is showing only EXT4 partition. Nautilus is showing both and it is working fine though.
I have system that was cloned from another system hence the user was same in both computer. I changed the computer name - to TANU. Then I added another user - BANU. I gave admin rights to second user. Logged out the first user DON- who is now only the desktop user. Before deleting the account through users and groups - I deleted the folder DON from home folder. I restarted the comp. unable to login. I had created automatic login for both users. How to restore the folder DON while using root shell.
Right now I only have Windows 7 64bit installed. I'd like to keep it installed and have a hidden Truecrypt system partition that holds Ubuntu. I've installed Ubuntu once before, but it was a while ago so I don't remember the details. Also, I'm not entirely sure how to work Truecrypt as I've never used it before. Do I install Ubuntu first and then run Truecrypt, if so, how do I deal with the fact that installing Ubuntu involves many partitions. Does Truecrypt recognize this automatically or do I have to somehow encrypt them all?
I accidentally deleted the default icons in the gnome panel on the top right. I tried to get them back from the add to panel. I went through every program I could, but none of the original programs were found. I'm running fedora 13.
Installed Truecrypt onto openSUSE 11.3 (KDE) and noticed that Truecrypt needed to be started as root.Modified visudo using YAST asusername ALL = NOPASSWD: /usr/bin/truecryptHowever, when copying files from my backup drive into the Truecrypt partition, there is an access problem (couldn't remember actual error message)In Konsole , updated visudo to username ALL = (ALL) NOPASSWD: /usr/bin/truecrypt Copying is allowed and working fine.Question:1. What is the difference between the above two visudo setting?2. How to updated visudo to the second setting in YAST?3. How to change the editor for visudo in konsole using nano instead of vi?
I found a way some times ago to mount a truecrypt volume when opening the session by insertion of the login password in the mounting script instead of putting it in clear in the script. I don't remember to command to read/transfer the password.
I have managed to write a bash script that moves files to the recylce bin instead of being deleted. Then (with a bit of assistance) wrote another bash script that deletes the files from the recycle bin. Now I need to write one that will restore the files preferably to their original location? I am very new to linux and stuggling with where to even begin...any ideas? There seems to be some advice about creating a cloning tree, but I've never heard of them?
I had an Ubuntu desktop 9.04. While I wanted to format my second hard drive with gparted, I have selected my system HD () with all my datas (/home, ...).In fact, my error is I have selected to rebuild my partition table and now I have lost all partitions . I would like to know how to restore my datas.