Swap file Problem

Discussion regarding the installation and configuration of Linux distributions.

Swap file Problem

Postby usman767 » Wed Jun 18, 2003 10:27 am

I have added a new hard drive in my system along with the old that is being used by linux.Now somehow the linux doesn't dedect swap partitions which has replaced from/dev/hdc7 to /dev/hda7. Can any one tell me the procedure of letting klinux knows what the address of swap partition is
usman767
Cadet
 
Posts: 12
Joined: Fri Jun 06, 2003 4:03 pm
WLM: musman_2002@hotmail.com
Yahoo Messenger: usmanfcs
AOL: usman767

Postby fawad » Fri Jun 20, 2003 2:10 am

Your /etc/fstab should contain a line like thus:

Code: Select all

/dev/hdc7               swap                    swap    defaults        0 0

fix the first parameter to the new path (/dev/hda7) and run mount -a.
fawad
Site Admin
 
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
ICQ: 17672437
Website: http://www.fawad.net
WLM: fawadhalim@hotmail.com
Yahoo Messenger: fawad2048
AOL: fawadhalim
Location: Addison, IL

Postby newbie » Sat Jun 21, 2003 2:51 am

do as FAWAD bhai told.

and also you can on and off any swap at any time with
swapon and swapoff commands

like swapon /dev/hd??
swapoff /dev/hd??
newbie
Company Havaldaar Major
 
Posts: 156
Joined: Thu Aug 08, 2002 4:18 am
WLM: usman_fool@hotmail.com
Location: lahore


Return to “%s” Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron