Swap file Problem

Discussion regarding the installation and configuration of Linux distributions.
Post Reply
usman767
Cadet
Posts: 12
Joined: Fri Jun 06, 2003 4:03 pm
Contact:

Swap file Problem

Post by usman767 »

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
fawad
Site Admin
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
Location: Addison, IL
Contact:

Post by fawad »

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.
newbie
Company Havaldaar Major
Posts: 156
Joined: Thu Aug 08, 2002 4:18 am
Location: lahore

Post by newbie »

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??
Post Reply