UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Before I go to far here is the output of mke2fs -n
sudo mke2fs -n /dev/sda1
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
16285696 inodes, 32561739 blocks
1628086 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
994 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
So try the superblock that is stored at 32768 and see what happens.
Actually, the partition IS recovered. What is not recovered at this point is the directory structure, and you say you already recovered the files. If the alternate superblocks are also clear, then the directory structure on the partition is gone. I don't know of any tools that will rebuild the directory structure by scanning the disk; I don't think this can be done.
If forcing e2fsck to run with an alternate superblock isn't working, then you'll just have to be satisfied with the recovery you already have.
Actually, the partition IS recovered. What is not recovered at this point is the directory structure, and you say you already recovered the files. If the alternate superblocks are also clear, then the directory structure on the partition is gone. I don't know of any tools that will rebuild the directory structure by scanning the disk; I don't think this can be done.
If forcing e2fsck to run with an alternate superblock isn't working, then you'll just have to be satisfied with the recovery you already have.
I will give the other superblocks a try. This would have worked yesterday but chances are with the lack of knowledge on my part concerning this, between then and now, I more then likely just messed something up.
Thanks again for walking me through this. I know how hard it is to try and walk someone through something on a forum or a phone when they are new to it. As I said I am going to save this thread for future reference if this ever happens again. All my knowledge from computers comes from hands on experiences. Sometimes the learning process is more then a little painful, lol.
EDIT: To sum this up. If I ever accidentally do a mkswap on a partition, which I will NEVER do again, what you where walking me through would get it back?
I tried other superblocks, with the same result. I am going to consider what I could save a small victory. But....
What I am going to do now is learn EVERYTHING about partitions, file systems, etc. I am not going to let this happen again. So can anyone recommend some good links for me to start at?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.