LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-07-2003, 08:12 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
how to change partition for swap


hi,
I have a big /home partition ( /dev/hda5 ) followed by swap (/dev/hda6), I reduce the
size of /home and create a new so hda5 is /home, hda6 is /another and hda7 is
a swap.
I correct the file /etc/fstab
problem: the swap is not find, the data in /home is corrupted.


I format /home, now I want to rerun the swap
Is there a procedure or tool does what I did badly.

thanks
bela
 
Old 09-07-2003, 08:23 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Did you format the partition for swap? Take a look at the "mkswp" command. You will need to issue a swapon command afterwards. There is more info in:
man mkswp
 
Old 09-07-2003, 09:04 AM   #3
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Original Poster
Rep: Reputation: 31
hi,
yes that's ok. only
mkswap /dev/hda7
than you
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change the swap size ust Linux - General 11 06-16-2005 11:04 PM
change swap partition from hda3 to hdb ngan_yine Linux - Newbie 1 09-20-2003 08:30 AM
change swap partition name thanhnx Linux - General 1 01-22-2003 05:08 AM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM
change swap partition size? jamaso Linux - General 4 07-03-2002 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:23 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
Open Source Consulting | Domain Registration