LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to recover the "swap" (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-recover-the-swap-284392/)

b0nd 01-31-2005 05:01 AM

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
partition.....

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).

regards
ruudra

scuzzman 01-31-2005 05:30 AM

Try repartitionin that space
Code:

man cfdisk

masand 01-31-2005 05:44 AM

hi there

for that

first

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
then

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

regards


All times are GMT -5. The time now is 10:16 AM.