All, Need help to extend the size of my swap partition. I tried using YAST, but I was unable to find a way to increase the partition. Do I need to del my current swap partition and then create a new one? Be gentle, I'm a newbie. TIA, Daniel N. SuSE 7.0 Pro, PentiumII 266Mhz, 128Mb RAM, 4GB HD, Kernel 2.2.14, KDE 1.1.2 __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
On Mon, Jan 15, 2001 at 03:26:32PM -0800, Dan Navarro wrote:
All,
Need help to extend the size of my swap partition. I tried using YAST, but I was unable to find a way to increase the partition. Do I need to del my current swap partition and then create a new one? Be gentle, I'm a newbie.
Welcome to Linux, Daniel! You can use many swap partitions. No need to delete existing one Just create a new partition using fdisk, change its type to 82 (swap) then run mkswap command pointing it to a partition you created. E.g. if you created /dev/hda6, the command would be ``mkswap /dev/hda6''. To make the system recognize and use your newly added swap you need to add it to /etc/fstab. Open /etc/fstab in your favorite editor (I like vi) and find the line like: /dev/hda2 swap swap defaults 0 2 This one describes /dev/hda2 as a swap partition. All you need to do is add a new line like: /dev/hda6 swap swap defaults 0 2 After that command swapon -a will make all partitions of type swap from /etc/fstab available to system. Your friends in learning swap are man pages for fstab, swapon, and mount. HTH, -Kastus
TIA, Daniel N.
SuSE 7.0 Pro, PentiumII 266Mhz, 128Mb RAM, 4GB HD, Kernel 2.2.14, KDE 1.1.2
__________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
On Mon, Jan 15, 2001 at 03:26:32PM -0800, Dan Navarro wrote:
All,
Need help to extend the size of my swap partition. I tried using YAST, but I was unable to find a way to increase the partition. Do I need to del my current swap partition and then create a new one? Be gentle, I'm a newbie.
I dont think you can increase it's size in place. But you can have more than one swap partition, so you can create a second one from another free partition. You can also create a swap file, instead of a swap device but the performance will suffer when it is used. A swap device is directly access by the kernel, with a swap file it has to go through the regular file system layer in the kernel. Cliff
participants (3)
-
Cliff Sarginson
-
Dan Navarro
-
kastus@tsoft.com