Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] How to increase swap size
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: How to increase swap size
12th Mar, 2014, 05:21 AM
Post: #2
teekay Offline
Registered
Posts: 20
Joined: Jan 2014
Reputation: 9
RE: How to increase swap size
Assuming your partition layout looks similar to this fdisk -l output
Code:
/dev/mmcblk0p1   *        2048       71679       34816    b  W95 FAT32
/dev/mmcblk0p2           71680    30767103    15347712   83  Linux
/dev/mmcblk0p3        30767104    31268863      250880   82  Linux swap / Solaris
and you use the (default) BTRFS filesystem, you should be able to do

1.) shrink the BTRFS partition with
Code:
mount /dev/mmcblk0p2 /mnt -o subvolid=0
btrfs fi resize -500m /mnt

2.) Stop the zram-swap service (if it's running at all), and run swapoff /dev/mmcblk0p3

3.) then use your favorite partition manager (parted, cfdisk etc..) to resize the partition behind it (mmcblk0p3)

4.) re-create swap
Code:
mkswap /dev/mmcblk0p3
swapon /dev/mmcblk0p3

Now you should have 500MB more swap.
I haven't tested this on Xbian, but it should work that way. Though it might also blow your RPi, burn your house etc etc..
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
How to increase swap size - LeoSum - 12th Mar, 2014, 01:44 AM
RE: How to increase swap size - teekay - 12th Mar, 2014 05:21 AM
RE: How to increase swap size - LeoSum - 12th Mar, 2014, 06:29 AM
RE: How to increase swap size - IriDium - 13th Mar, 2014, 04:32 AM
RE: How to increase swap size - LeoSum - 13th Mar, 2014, 06:07 PM
RE: How to increase swap size - IriDium - 14th Mar, 2014, 02:49 AM
RE: How to increase swap size - LeoSum - 14th Mar, 2014, 03:12 AM
RE: How to increase swap size - mk01 - 16th Mar, 2014, 09:08 AM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 2nd Jun, 2025, 08:39 PM Powered By MyBB, © 2002-2025 MyBB Group.