Ubuntu :: Recover Partition /home Formatted By Mistake?
May 2, 2011My hard drive has the following partitions:
/dev/sda1 ntfs (reserved for system)
/dev/sda2 ntfs (win7)
/dev/sda3 extended partition with the following:
[code]....
My hard drive has the following partitions:
/dev/sda1 ntfs (reserved for system)
/dev/sda2 ntfs (win7)
/dev/sda3 extended partition with the following:
[code]....
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 was installing 10.10 x64 today. I wanted to manually partition the disks, since I have a /home partition from a 9.10 installation which I want to keep.Unfortunately, I selected to convert the ext3 /home partition to ext4 and didn't realise it was formatting the partition until it had just begun. In desperation, I pulled the power plug, but now I can't access the partition (using the LiveCD) - comes with an input/output error.What are some strategies to recover the data on the partly formatted partition? I don't think much, if any, was actually formatted.
View 4 Replies View RelatedI just installed suse 11.3 on formatted partitions (5GB swap, 30GB / and 500GB /home). Just after the installation, My computer showed 25.2GB of /home to be used. When I do:
Code:
dyn-0a2a1f40:/ # df -h .....
That seem to be roughly correct because since yesterday I've been running a program that constantly writes logs and other data files and plots, which might have accumulated a few GB's. It is also collaborated by the output of
Code:
dyn-0a2a1f40:/ # du -sk /home
10548452 /home
I'm not hard-up on space right now but storage has been dear until the recent past. Also out of curiosity, the size of the /home partition is shown as 493 instead of the 500GB allocated while the swap also lists only 4GB instead of 5GB. Below is the output for fdisk -l in case anyone needs it:
Code:
dyn-0a2a1f40:/ # fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 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: 0x219b052d .....
I have Linux 2.6.34-12-desktop x86_64 and KDE 4.4.5 (which I had previously used in 11.2 without any problems) and 4.0GB RAM.
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?
While setting up my laptop on a new hard drive (a bad mobo caused writes which pretty much rendered teh old hdd unusable) I was asked if I wanted to encrypt my home partition.
I've been wanting this for several years - even going as far as trying to get a copy of CheckPoint. That's waht my organization uses on all Wintendo laptops and is required.
In any case, I said "yes" and am happily using my laptop with an encrypted home partition. I'm assuming based on this - [URL] - that it is using EncryptFS as the scheme.
if I were to misplace my laptop, how easy would it be for a forensics team to retrieve my data. Let's assume I have a fairly strong passphrase, such as BisZumBitterenEnd3. [URL]
I had some major problems after the recent Ubuntu upgrade and had to boot from a live cd. I have a separate /home partition, but it was encrypted using the default install encryption in the 9.10 install cd. How can I get to my files so I can back them up?
I have tried this but it did not work: http://ubuntuforums.org/showthread.php?t=1337693
i was using 10.10 and this disaster occured when i tried to install 11.04 replacing 10.10. i have a separate home partition, while installing 11.04 i chose one weird option called "encrypt home partition"i didnt chose to format the home partition but once the installation is over, i have all my data lost in home directory.Is ther any chance that i could get the 165 gb junk data or atleast some 200 mb of important data
View 1 Replies View RelatedSo, I wan't completely paying attention to the default partitioning that Red Hat Enterprise 6 does.
I was setting up a base image for VMWare and the disk was 200GB, but for some reason the default is for about 40% to go to the root partition and then the rest of it to go to /home (this doesn't include the 2GB or so in swap).
Is there an easy way to recover the space under /home and expand the root partition? Assume there are no user accounts created.
I cannot boot into by Ubuntu 9.1 machine.... Trying either GUI or rescue mode gives me the following error messages (which i copied by hand since they were in cli)
Code: mount : mounting /dev/disk/by-uuid/64e5cb0d-058a-4a4c-af4b-7afb6427a72e3 on root failed : invalid argument
mount : mounting /sys on /root/sys failed : no such file or directory
mount : mounting /dev on /root/dev failed : no such file or directory
mount : mounting /proc on /root/proc failed : no such file or directory
Target doesnt have /sbin/init The only thing i remember doing before this is deleting some bootloader files... but they were on another disk so I didn't think that it would affect my ubuntu install. Guess I was wrong how I can recover my system?
I accidentally formatted my Win 7 partition. I there any possibility of recovery? Failing that, is there any way to salvage files etc?
View 2 Replies View RelatedI am new to ubuntu. I was on windows 7 32 bit, computer was running slow with viruses and full hard drive so i installed ubuntu 10.10 32 bit as i believe it to be more secure. Before installing Ubuntu OS I made a backup DVD-RW data disk, it had my brothers holiday pics when he went turkey and morroco. Once I installed ubuntu I needed a DVD-RW and quick formatted the wrong disk. Is it possible to recover the data? I've read somewhere that the data is possibly can be recover.
View 9 Replies View RelatedI was docking my laptop wich has 4 or 5 hdd connected and I plugged in a USB stick aswell. I was gonna create a new debian USB but I was to tired to notice I deleted the partition and created a new one on the picture backup hdd and formated I as ext4 and then I dd the image to it. I noises it when the USB did not boot on the other computer and I saw it was the hdd that was containing all the files.
So is it possible to recover all the picture that was formated away and overwritten with dd?
I formatted a thumb drive on Windows (not quick format) that contains files I need (video files). Unfortunately, my attempt to recover them with both PhotoRec and TestDisk failed: neither of them found the files. I know they are still there because I scanned it with some Windows software (File Scavenger) and it detected them. I'd like to try to do this with Linux, to figure out how to do it, and save money at the same time.
View 4 Replies View RelatedI have a laptop with Fedora 12 on it and I accidentally did an dd if=/dev/zero of=/dev/sda (since then I learned to think before I type)
anyway, I stopped it in time (I hope), it only zeroed first 60 MB. So, it killed partition table and boot partition. What I need is home partition, and it should be untouched. home is on a LVM device (fedora default install settings), and I tried testdisk (supposedly handles LVM) but it found only one partition (I guess it's a LVM physical device, as there should be 3 partitions, /, /home and swap) and said it's not recoverable.
Is there a way to get access to files on that partition (partition itself, including file table should be untouched). Partition contains various data (video, audio, and text) I need back (and it's my data, not backed up, and not something I can redownload). Is there any software that can help me with this, and if not, is it theoretically doable (I believe it should be, as the partition itself is not damaged, so it should be possible to read file names and link them with data on disk, am I right)? what is a good way to image the disk, so I can reinstall the laptop while trying to rescue data from image?
I accidentally formatted a drive that was ext4 to NTFS in Windows (using quick format only). I tried TestDisk, it does find a deleted partition but doesn't seem to find any files or be able to recover anything. Is there any way I can recover the files?
View 1 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 RelatedLast night I made the mistake of formatting my media drive. Before the format, it was ext4. then I formatted it to ext4 again because I wasn't paying attention to what I was doing(this mistake only gets made once). Now im looking for away to recover any/all of my data. The drive in question is 1tb. I have not written any new files to this drive.
View 5 Replies View RelatedIs there like EasyRecovery for Linux? Free open source command-line based software strongly preferred.Expecting something like:
$ fat32_recovery --some-arcane-options dump.img dir/
Recovery in progress...
~ILE1.TXT -> dir/XILE1.TXT
[code]....
When installing, I used a hard drive that had a windows installation on it. In an attempt to have it format the whole drive and allow use of all the space on the hard drive, I may have made a mistake. In the end, there was only one partition which was "create volume for ..... /home with ext4." There was no partion for swap volume or root volume. It prompted me if I was sure I wanted to do that... it said I can do it that way but.... and then gave me some info which has since slipped my mind. What effect if any can I expect from having done that? The install went through perfectly and everything seems to be running ok
View 8 Replies View RelatedTrying to clean install 11.2 dual boot with Win xp already installed. How do I create a new home partition, don't want to preserve the existing home partition from a previous attempt. DVD installation and automatic config keeps saving the thing.
View 5 Replies View RelatedDual booting Ubuntu and XP, I've been using ext2fsd for a long time.Recently I did a fresh install of Lucid. Now when I try to run ext2fsd from XP, it tells me that my ext3 partition needs to be formatted.I vaguely recall having had and solved this problem in the past, but I just can't find the solution.
View 8 Replies View RelatedI just installed kubuntu 10.10, replacing an older installation. I have three hard drives one of which had all of the data I wanted to save, about 500gb. I repartitioned and formatted the other two drives and made sure that the data drive would be mounted but not formatted. When I booted into my new installation, the data drive was blank. I'm not sure if it's relevant, but I had just upgraded the file system from ext2 to ext4 before starting the installation.
I've been trying to recover my lost partition with testdisk. The website has instructions for recovering a formatted partition. It looks like it's working until the instructions tell me to choose Boot and RebuildBS, which I don't see as options. Can anyone give me any advice on how to recover? How did this even happen? Has anyone had a similar issue with installation?
I had 3 partitions on my hard dive, Windows 7, Ubuntu, and just junk on the other. I installed Ubuntu in a way where it went to the GRUB filesystem? first, where it ask me to start in linux kernel 2.38.6 (can't really remember the kernel exact name) which was ubuntu, some other options, recovery mode, and at the very bottom was the one to go to Windows 7. I was in Windows and I wanted to get rid of my junk partition but I formatted the Ubuntu partition by mistake.
Now when it boots up it saying:
Error: unknown filesystem. grub rescue>
I hope there is a way to save my files on Windows. I tried to reinstall Windows 7 back on my computer but it wouldn't go through since the grub startup thing is the main one, not the windows one.
My colleague needed a backup for some of his loose media, so I assured him I could back it up on our Lab's Lacie 2TB external. His windows partition was incredibly sluggish, so he booted into ubuntu 11.04 and we partitioned and formatted an NTFS volume for him to transfer his stuff to. The format went fine, space was available, and I left him to transfer all of his stuff from his dell studio1555. He finished and reformatted his computer completely.
The NTFS is not recognizable by any of the OS now. Ubuntu sees it as a single partition without any data, whereas before the transfer, the partition map was clearly visible. Windows does not recognize the drive at all. OS X does recognize the partition, but it shows up as an apple_scratch volume, which is quite a bit frightening, considering a scratch volume is essentially blank. To elaborate, all of the files were in his windows partition, and were transferred within a relatively fresh install of ubuntu (not much had been done on it). The partition was made in diskutility in ubuntu (the GUI), but the rest of the drive was HFS+ formatted.
I need to access my EXT3 formatted partition in Vista. I am using Windows again for this game and my Ubuntu is messed up. EXT2IFS does not work in Vista, even with compatibility mode. When I open my drive it asks me to format it. EXT2FSD works but gives constant BSODs...
View 3 Replies View RelatedI accidentally formatted a 2TB drive of mine (big oops), but have recovered 2 of the 3 partitions using testdisk. My third partition is a LUKS encrypted partition. Testdisk managed to recover a piece of it, but it won't mount as most of it is unallocated. The partition originally occupied all space from sector 2,930,272,065 to the end of the disk -- sector 3,907,024,064. That is about 473 GBs. Currently, the partition only uses space from sector 2,930,272,065 to 2,930,288,129, about 7.84 MB.
The rest of the space is unallocated. Now what I need to do, is to expand the partition so that it occupies all the space that it used to. How would I do this? I cannot resize the partition, cause it would try to recreate the filesystem AFAIK and I don't want that, as it will fry my data. My data is not terribly important, but I would rather have it then not. I attached a screenie of kpartitionmanager. The partition in question is /dev/sdb2.
I was using windows 7 and I decided to install BackTrack 4 as an operation system so that I can have 2 operation system on my machine, during the installation, I accidentally formatted the windows 7 and right now, I am using only the BackTrack 4, now, I want to re-install back the windows 7 as an operation system but whenever I inserted my CD, it display this words under the Default: >/ubnkern initrd=/ubninit
It needed a command from me in other to proceed but am new in Ubuntu and I dont know what I should type or the command I should used in other to finish installing the windows 7.
Dummy me let root run out of space because I didn't know to use logrotate. I was able to compress the system logs but not before the damage was done me thinks; now the computer is unbootable. I booted from a LiveCD and got my old partitions mounted under /media/oldroot to try and recover files; however, I forgot that I had encrypted my home. I found [URL] and was following it; however, I seem to run into a bunch of path issues after I chroot.
The chroot command returns:
bash: groups: command not found
The su command returns:
-su: cut: command not found
-su: getent: command not found
-su: expr: command not found
-su: groups: command not found
Finally, the ecryptfs-mount-private command returns:
-su: ecryptfs-mount-private: command not found
I have separate partitons for /, /home, /tmp, /usr, and /usr/local and bothered to mount the first 2. (If only I had been ambitious enough to create a /var). I was running Ubuntu 10.10.
I have 250 GB HDD, 150 GB has CentOS installed,I have formatted the rest 100 GB in vfat, mounted on /data/ folder, now the issue is only root have the write permission on that folder, i have tried all the commands, however i have reformatted it with ext3 and now issue is resolved, i just want to know that why it is not possible to set the permissin to everyone +w on vfat partition.
View 1 Replies View Related