LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   increasing swap (https://www.linuxquestions.org/questions/suse-opensuse-60/increasing-swap-4175475911/)

wiliamvw 09-04-2013 02:44 PM

increasing swap
 
My old laptop with just half a GB of ram will always run slowly, but can keep it from stalling/crashing if can increase its swap partition from 1.4 GB to 3.0 GB [have tested this in past, but forgot when put in new install with this suse 11.4 OS]. Below is my partition set-up, and if anyone has some idea of how to implement such a swap partition increase without full reinstall, please advise.
1 swap 1.4 GB
2 / 7.6 GB
3 /usr 16.0 GB
4 EXTENDED 30.8 GB
5 /home 10.0 GB
6 /local 3.0 GB
7 /root 4.0 GB
8 /opt 3.0 GB
9 /var 4.0 GB
10 /boot 1.0 GB
11 /srv 2.0 GB
12 /tmp 2.0 GB
13 /media 1.0 GB
14 freespace .88 GB

Obviously, the freespace and /media can totally go, but can't get the change into swap. Appreciating any hints, and even flat-out statement that can't be done is useful since will save time trying impossible task.

michaelk 09-04-2013 02:58 PM

linux can use multiple swap partitions... So

1. unmount /media, remove it from your /etc/fstab
2. expand the old /media partition to include the free space.
3. change partition ID to swap, format it as swap
4. Add another swap line to your /etc/fstab.
5. Activate it.

wiliamvw 09-04-2013 06:25 PM

thank you
 
Thanks a million michaelk.


All times are GMT -5. The time now is 01:57 AM.