Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
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.
Is it possible to pass from swap to ext3 without formating the partition ?
I had problems with my swap that was on hdc5, and I ran the command 'mkswap' on hdc6, the wrong partition, the one with
'/' label. And now I cannot access to the system, all data including... I wonder if I can do smth with that. Because I don't really want to reinstall the system.
Ahh sh_t. It is just my pet peeve where such a common suggest to any problem is to reinstall the entire system, so STUPIDLY, I did not read the post entirely. :-( Forgive me.
If hdc6 was the root partition and therefore mounted, I am kind of surprised mkswap would run. I will have to test that out (not of course on anything essential).
There is always the possibility of restoring the root partition from the backup (there is a backup is there not). There is also the possibility of booting with a boot disk and running mke2fs to restore the superblocks. See man mke2fs, the -S option. I do not know the actual effects of mkswap, but it may be worth a try.
No problem, i see that answer too much as well.
There may be a way to restore, such as restoring the superblocks, i'm not sure.
I very much doubt there is a backup of the entire root filesystem though.
Hopefully you haven't done anything drastic yet to change the contents on the partition. You may still be able to recover your info. mkswap only overwrites the superblock on the partition, so you should still be able to recover the contents by repairing it with a backup superblock. You have to boot up linux on a different partition or one that resides in memory. Either use a live-cd installation(knoppix), a linux-on-a-floppy(tomsrtbt), or install linux on another partition. After you have it booting in the other linux system, do a e2fsck on /dev/hdc5. Unless the partition is seriously corrupted, you should be able to get back your info.