Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 01-31-2005, 05:01 AM   #1
Senior Member
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
how to recover the "swap"

Hello all,
i have red hat 8 and windows XP on my system.
XP got currupted.........

During reinstallation unfortunately i formatted the swap

its space is still there.......

now i don't know whether there is some way of making it swap againg without
reinstalling the linux......( i know the procedure of recovering the bootloader).

Old 01-31-2005, 05:30 AM   #2
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Try repartitionin that space
man cfdisk
Old 01-31-2005, 05:44 AM   #3
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

for that


fdisk /dev/hda

then see that partiton that u want to make swap
then toggle that partition ID to 82 using't'

and then reboot

mkswap /dev/hda7

where hda7 is ur swap partition and then

swapon /dev/hda7

and then add an entry for that in ur /etc/fstab



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC2 1.521 hangs after "enabling swap space" Oxxide Fedora - Installation 2 10-30-2004 05:19 PM
Mandrake 10.0 Laptop Won't Boot Past "Activating Swap Partitions"? Aaron Josephson Linux - Software 0 06-26-2004 08:02 PM
Recover files after "rm" command on ext2 & fat32 pixelV Linux - Hardware 0 07-14-2003 05:52 AM
How can I recover my RedHat if it BOOTs to a "Kernel Panic" error and stop running? yuzuohong Linux - General 5 12-05-2002 10:39 PM
how to recover when getprotobyname("tcp") fails? BrianK Programming 2 10-25-2002 01:37 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration