-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  >>> On Saturday 17 Jul 2004 9:43 am, sd <santosh dubey> said:
    sd> Dear Admins,
    sd>
    sd> i have upgraded my ram to 194 mb but now a days  i am
    sd> getting error like, on booting,
    sd>
    sd> swapon: /dev/hda5 no such file or device [failed]
    sd>
    sd> pls suggest me what should i do to activate swap.
    sd>

run this at a bash prompt (assuming your HDD is /dev/hda) :
  fdisk -l /dev/hda | grep swap | cut -f 1 -d " "
you should get something like:
  /dev/hdaXX
if you get nothing, your swap partition is probably missing.

To set up a swap partition you need to do:
# mkswap -f /dev/hdaXX
To activate the swap area, run this:
# swapon /dev/hdaXX

also make sure you have an entry in /etc/fstab for the swap partition:
# cat /etc/fstab | grep swap
/dev/hdaXX      none            swap    sw                      0       0


you can also make a swap file on any partition that has extra space.
To make a 256 MB swapfile 
# dd if=/dev/zero of=swapfile bs=1k count=256k
# mkswap -f swapfile 
# swapon swapfile


                                Bhaskar
- -- 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x01D5671C

iD8DBQFA+LJNN1/UFgHVZxwRAiEnAJ9+6skuQAlv82TW7cnQGQ9Iyxdu+QCdFXHE
XqpoBl5TJ+SHzhxlwiqw9Yk=
=oT4J
-----END PGP SIGNATURE-----

_______________________________________________
ilugd mailinglist -- [EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to