Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I need some assistance on recovering data from some ext3 partitions. I accidently formatted two 250gb /dev/sda partitions with reiserfs, when they were already formatted ext3 and full of data during some routine maintenance work. How can I recovery my 500gb of data?
Whatever you do, do not mount those partitions. It can cause data loss. If all you do is mount, the loss will likely be minimal, but best if you can avoid it. Try looking into a tool called foremost. It scans the raw data on the drive and tries to recognize files.
I tried out both pieces of software suggested. Foremost seems to be nice in the fact it sorts files into directories by type, and preserves the original name, but it is limited in the files it recovers.
the photorec software seems to be able to recover all my file types, but the problem is it recovers each file by putting a number and extension, nothing more, and 500gb of 123435324.ext, with mostly organized websites in folders isn't really much of a recovery.
I'm looking for a way to preserve the original directory structure and file names with the recovery.
I'm sorry but that won't work. The file names and folder directories are located at the start of a partition - and that's the part that gets wiped during a format so that space is created for a new "table of contents". You will be able to recover the files but their names are lost.
Depending on how important it is, all may not be lost. Immediately remove the drive from a machine and contact a professional. There exists equipment to read overwritten data on a hard drive. But if this is just your home PC, it's not worth the cost. Expect to pay hundreds of dollars, minimum.
Noticing you talk about websites, renaming could be done if the websites where uploaded to a remote location. Then you could 'md5deep' the remote files and compare hashes with locally recovered files. Just an idea.
i'm getting the same problem, after the disk pressisted to be always full, even when deleted some folders
I decided to delete all the folders except the /home ......
Well now i cant even mount the disk
and e2fsck gives me a bunch of errors, even using the backup superblocks
[admin@myasus root]$ fsck.ext3 -b 32768 /dev/discs/disc0/part5
e2fsck 1.38 (30-Jun-2005)
Inode table for group 0 is not in group. (block 1177535144)
WARNING: SEVERE DATA LOSS POSSIBLE.
e2fsck: e2fsck_read_bitmaps: illegal bitmap block(s) for MyBook
got a 250GB disk full of stuff, dont want to lose it
In my search found this sites, may be helpful for somebody
You can put an ext3 file system back on the two drives, which has a negligible effect on the data, and use fsck.ext3 --rebuild tree /dev/sda. I think the command is a little different than .ext3, but you can look it up, man fsck. Rebuild tree turns all the leaf nodes in the file system back into files, by reading every one of them. I recovered most of a previous installation after I reformatted, and installed linux over an existing installation. Then I remembered I needed something from the old installation, so I used a live cd, and fsck to rebuild everything that wasn't written over. I got the file back, and I just left everything else. It was sweet. Don't worry about mounting. You've really messed up. I don't think a few more lost bytes will hurt you.
Using DiskInternals Linux recovery, i'm able to recover many files...
But no file names or directories.
I want to recover mostly avi files, but when it recovers, the files comes broken.
The metadata (resolution, and length of movie) are correct, but when i play anly has 3 seconds black...
Tried VirtualDub, but no chance
[root@adrock init.d]# dd if=/dev/ida/c0d0p7 of=/big/var.bak.dd
530368+0 records in
Still hosed, but now I have a backup of the burnination. And now for the FIX!!!
mke2fs -S /dev/ida/c0d0p7
mke2fs 1.27 (8-Mar-2002)
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
66528 inodes, 265184 blocks
13259 blocks (5.00%) reserved for the super user
First data block=1
33 block groups
8192 blocks per group, 8192 fragments per group
2016 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185
Writing superblocks and filesystem accounting information: done
That did it! mke2fs re-wrote all of the superblocks and group descriptors and I was able to mount in RO mode and copy off the data. After that I was able to fsck and remount the original parition with no problems!