swap space on pogo E02 February 03, 2015 07:36AM |
Registered: 9 years ago Posts: 24 |
Re: swap space on pogo E02 February 03, 2015 08:19AM |
Registered: 10 years ago Posts: 70 |
Re: swap space on pogo E02 February 03, 2015 04:25PM |
Admin Registered: 13 years ago Posts: 19,010 |
free
dd if=/dev/zero of=/swapfile1 bs=1024 count=1048576 mkswap /swapfile1 swapon /swapfile1
swapoff -a
Re: swap space on pogo E02 February 04, 2015 07:01AM |
Registered: 9 years ago Posts: 24 |
Re: swap space on pogo E02 February 05, 2015 01:28AM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: swap space on pogo E02 February 05, 2015 06:42AM |
Registered: 9 years ago Posts: 24 |
Re: swap space on pogo E02 February 05, 2015 11:03AM |
Registered: 11 years ago Posts: 165 |
#This will create a 1024MB swap file #Named "swapfile.img" in /media/usb (USB HD). dd if=/dev/zero of=/media/usb/swapfile.img bs=1M count=1024 mkswap /media/usb/swapfile.img #update swap file permissions chmod 0600 /media/usb/swapfile.img #You can now turn the swap file on using: swapon /media/usb/swapfile.img #check if swap is enabled free #turn swap off by using: #swapoff /media/usb/swapfile.img #enable swapfile on reboot echo "/media/usb/swapfile.img none swap sw,nofail 0 0" >> /etc/fstab #reboot and test reboot free
Re: swap space on pogo E02 February 05, 2015 12:32PM |
Admin Registered: 13 years ago Posts: 19,010 |
.... swapon /swapfile1 swapon /swapfile2 ....
Re: swap space on pogo E02 February 05, 2015 12:41PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: swap space on pogo E02 February 06, 2015 03:27PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: swap space on pogo E02 February 08, 2015 03:11PM |
Registered: 11 years ago Posts: 165 |
Re: swap space on pogo E02 February 08, 2015 04:28PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: swap space on pogo E02 February 08, 2015 05:46PM |
Registered: 11 years ago Posts: 165 |
Re: swap space on pogo E02 February 08, 2015 05:50PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: swap space on pogo E02 February 12, 2021 07:19PM |
Registered: 6 years ago Posts: 35 |
mount /dev/sdb1 /media/usb swapon /media/usb/swapfile.img
# <file system> <mount point> <type> <options> <dump> <pass> LABEL=rootfs / ext3 noatime,errors=remount-ro 0 1 tmpfs /tmp tmpfs defaults 0 0 UUID=4d425bde-537c-45c2-9852-13b8fa32481e /media/usb ext3 defaults 0 0 /media/usb/swapfile.img none swap sw,nofail 0 0
Re: swap space on pogo E02 February 12, 2021 08:38PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: swap space on pogo E02 February 13, 2021 05:31AM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: swap space on pogo E02 February 13, 2021 01:11PM |
Registered: 6 years ago Posts: 35 |