DIGIT-ARC read-only archive · snapshot: July 23, 2026

swap deleted

5 posts · originally from https://geek.digit.in/community/threads/swap-deleted.76839/

P
purujitb Original post #1
Dec 29, 2007 at 11:27 AM
Hi,

I have ubuntu 7.1 installed on my system. Today I accidentally deleted the swap partition for ubuntu. Now every time I boot into ubuntu it asks me to manually repair the file system. Can anyone help me in doing so....

Thanks in advance

P.S.: I had 2 swap partitions, one of which was from the previous installation of ubuntu which was on my old hard disk(the one that got deleted). The 2nd swap is still there.
Rahim
Rahim #2
Dec 29, 2007 at 1:26 PM
You could have used one swap for two or more OS. Maybe use GParted Live CD to repair/create/resize the partitions ,etc.
anantkhaitan
Dec 29, 2007 at 1:38 PM
There is no need to have two swap partitions... append this to your /etc/fstab
Code:
/dev/<partition>         swap                    swap    defaults        0 0
Replace <partition> by your your 2nd swap partition
MetalheadGautham
Dec 29, 2007 at 1:57 PM
and its not Ubuntu 7.1 its 7.10. 7 is for 2007 and 10 is for october.
P
Dec 29, 2007 at 3:52 PM
Thanks everyone I will try that