Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
There is less than 12 hours left to vote in the 2015 LinuxQuestions.org Members Choice Awards. Click here to go to the polls. Vote now and make sure your voice is heard!
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 couldn't find this with Search, and I hope that this is the right forum.
I just executed
mke2fs -T largefile4 -j -F /dev/hdb6
ignoring all warnings (how can a single person be so stupid?!). Unfortunately, /dev/hdb6 is/was my home directory (ext3, with ~35 GiB of data), while I had intended to format /dev/hda6.
I immediately rebooted my computer (after mke2fs completed, but without shutdown), and didn't mount /dev/hdb6 since that accident (I'm currently using Knoppix).
Is there any chance to recover at least parts of my filesystem? grep won't help much since many (important) files are/were binary.
I have no experience in recovering data, however a quick google yielded some ext2 (ext2 tools work on ext3) recovery tools: http://www.guzu.net/linux/e2retrieve.php
There are links to other programs on that site if those don't suit your needs.
A bad superblock shouldn't matter, as the data would still be there.
Good luck, and post your results, I'm interested in whether it works out or not!
I have recovered probably 100 % of my data, although there are a lot of directories and files I couldn't associate with their right name (all of them were configuration files of KDE programs).
For those who are interested:
I made a backup of the complete partition, then tried to repair as good as possible:
e2fsck -b 32768 -y backup.copy
mount -o loop backup.copy backup.fs
The file system couldn't be recovered, but all top-level files and directories under my home directory were in lost+found, plus those KDE configuration files.
Thanks for the information about the superblock; unfortunately I couldn't compile e2retrieve.
Cool! Out of interest, what was the problem in compiling e2retrieve? ie. the errors you got, or missing dependancies? It's always good to know the reason why you can't compile something even if you decide not to bother, might help you in the future when you have trouble compiling something else.
'/usr/include/linux/bitmap.h' had undefined preprocessor macros, like BITS_PER_LONG, DECLARE_BITMAP and more. It turned out that these macros were only defined when __KERNEL__ was defined. However, when I defined __KERNEL__, other errors occured (as expected).
Btw. I am using Debian testing.