Swap file Problem

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

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

Site Admin
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
Location: Addison, IL

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.

Company Havaldaar Major
Posts: 156
Joined: Thu Aug 08, 2002 4:18 am
Location: lahore

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

Return to “Installation”

Who is online

Users browsing this forum: No registered users and 1 guest