LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-31-2005, 06:01 AM   #1
b0nd
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
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
 
Old 01-31-2005, 06:30 AM   #2
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

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

Rep: Reputation: 58
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
 
  


Reply


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 06:19 PM
Mandrake 10.0 Laptop Won't Boot Past "Activating Swap Partitions"? Aaron Josephson Linux - Software 0 06-26-2004 09:02 PM
Recover files after "rm" command on ext2 & fat32 pixelV Linux - Hardware 0 07-14-2003 06: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 11:39 PM
how to recover when getprotobyname("tcp") fails? BrianK Programming 2 10-25-2002 02:37 PM


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

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