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!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.