Sponsored Content
Special Forums Hardware Filesystems, Disks and Memory Recovery of formatted ext3 partition Post 302498711 by al0x on Tuesday 22nd of February 2011 08:54:08 AM
Old 02-22-2011
Recovery of formatted ext3 partition

Hi!

I have a really big problem right now. I (accidently) formatted a ext3 partition with "mkfs.ext3 /dev/sda1". The problem is that I REALLY need some files from there. The partition had a size of about 4GB, after accidently formatting it, I accidently rewrote Grub on it Smilie I hope I didn't permanently deleted important files...
I just need some scripts (.sh scripts) and images (.png) on the partition, I tried PhotoRec and TestDisk. Or I can't figure out how to correctly use them or they can't find any files Smilie
What is the best way to recover files in my case? I tried searching but couldn't find anything usefull, so you are my last hope Smilie

Thanks A LOT for help!!
gr33tz, alex

Last edited by al0x; 02-22-2011 at 10:31 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Deleting an Ext3 partition...

I'm trying to delete my red hat partitions so I can restructure my computer's hard drive. I want to delete the Boot, /, and Swapspace partitions so I can rearrange my drive and install some other systems. In partition magic when I attempt to delete the Ext3 partitions, it reads as not being able to... (4 Replies)
Discussion started by: djtrippin
4 Replies

2. Solaris

recovery partition table from fdisk?

I have two disks on a sun blade 100. I just installed a solaris8 on the first disk. The installation was successful. But the problem is now I lost all data / partition on my second hard disk. The possible reason could be: 1. I used default web start install. During the installation I didn't... (2 Replies)
Discussion started by: motor98
2 Replies

3. UNIX for Dummies Questions & Answers

Formatted Linux partition from Windows

While working in windows, I accidently formatted the Linux partition (I had fedora core 3 dual boot system with Windows XP as the default OS to boot). Now, on starting the comp, I see a grub command line, and I am not able to make any progress from there. Can I do something so that I change it to... (2 Replies)
Discussion started by: amangupta
2 Replies

4. UNIX for Dummies Questions & Answers

I've created a partition with GNU Parted, how do I mount the partition?

I've created a partition with GNU Parted, how do I mount the partition? The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards. Thanks, --Todd (1 Reply)
Discussion started by: jtp51
1 Replies

5. OS X (Apple)

Making a "Recovery Partition" ??

Hiya people.. I was hoping some expert here would share with me some details as I like to make a "System Recovery Partition" on a external drive. I use my MacBookPro on the road all the time and in the past it's known to happen, and often it happens at the worst time. So, my question is: ... (0 Replies)
Discussion started by: Akira
0 Replies

6. Filesystems, Disks and Memory

umount(ing) LVM ext3 partition problem

I am using RHEL4 OS and the problem i have is that when i try to umount an LVM implemented partition after checking the properties of the mounted folder it gives the error of device busy . things iam not doing : iam not in the mounted woulder either by shell or by GUI. thing iam not trying do... (4 Replies)
Discussion started by: Tahir Saleh
4 Replies

7. Filesystems, Disks and Memory

Problem with ext3 partition

I accidentally deleted one of my ext3 partitions from Windows XP. However, since I did not make new partitions over it, or format that area, I guess my data is safe. So I made a new partition with the same cylinder boundary values using fdisk (in Linux). But I cannot access my old data on that... (3 Replies)
Discussion started by: digjam
3 Replies

8. UNIX for Advanced & Expert Users

Linux EXT3 superblock recovery

Is there a way to recover or rebuild the superblock of an ext3 filesystem with out loosing data? Thanks (5 Replies)
Discussion started by: lochraven
5 Replies

9. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies

10. Gentoo

Data recovery of formatted external HDD

accidentally formatted ext3 external hard disk .. im using EAse us tool in windows system to recover the data ... will this works?? if yes ... the another external hard disk have to be formatted in which file system ? is there any other option ..please help me out (1 Reply)
Discussion started by: rajeshz
1 Replies
EXTUNDELETE(1)						      General Commands Manual						    EXTUNDELETE(1)

NAME
extundelete - utility to undelete files from an ext3 or ext4 partition. SYNOPSIS
extundelete [options] device-file... DESCRIPTION
extundelete is a utility that can recover deleted files from an ext3 or ext4 partition extundelete uses the information stored in the partition's journal to attempt to recover a file that has been deleted from the partition. There is no guarantee that any particular file will be able to be undeleted, so always try to have a good backup system in place, or at least put one in place after recovering your files! OPTIONS
--version Prints the version number of extundelete. --help Print a brief usage summary for extundelete. Partition name Name of the partition that has deleted files, such as /dev/sda3. Could also be the file name of a copy of the partition, such as that made with dd. --superblock Prints information about the filesystem from the superblock. --journal --superblock Prints information about the journal from the journal's superblock. --inode # Prints the information from the inode number of the filesystem given, such as "--inode 2". --block # Prints the contents of the block, called as "--block 9652". --restore-file path/to/deleted/file Attempts to restore the file which was deleted at the given filename, called as "--restore-file dirname/filename". --restore-inode # Used to restore inodes by number, called as "--restore-inode 2569". Also accepts a list of inodes separated by only commas, such as "--restore-inode 2569,5692,6925". --restore-files filename Restores a list of files. First, construct a list of files in the same style as would be used in the --restore-file option, and save it to the file "filename". Then, this option may be used to attempt to restore those files with a single call to extundelete. This form also reduces redundancy from multiple calls parsing the journal multiple times. --output-dir path/to/dump/recovered/files Restores files in the output dir 'path'. By default the restored files are created under current directory 'RECOVERED_FILES' --restore-all Restores all files possible to undelete to their names before deletion, when possible. Other files are restored to a filename like "file.NNNN". --restore-directory path/of/directory Restores all files possible to link to specified directory to their names before deletion, when possible. -j journal_dev Specifies the device that is the external journal of the file system. -b block_number Specifies the block number of the backup superblock to be used when opening the file system. -B block_size Specifies the block size of the partition to be used when opening the file system. --before date Only restore files deleted before the date specified, which should be in the form of the number of seconds since the UNIX epoch. Use a shell command like $ date -d "Aug 1 9:02" +%s to convert a human-readable date to the proper format. The conversion from the number of seconds to a readable format may be found by using either of the following: $ date -d@1234567890 $ perl -le "print scalar localtime 1234567890" --after date Only restore files deleted after the date specified, which should be in the form of the number of seconds since the UNIX epoch. See the notes for the --before option for more information. AUTHOR
extundelete was written by Nic Case <number9652@users.sourceforge.net> Copyright (C) 2009, 2010 This manual page was written by Elias Alejandro Ano Mendoza <ealmdz@gmail.com>, for the Debian project (and may be used by others). September 29, 2010 EXTUNDELETE(1)
All times are GMT -4. The time now is 10:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy