Re: partition for lubuntu from previous ubuntu

Mark Griffith

Raspbian, the default OS for the Raspberry Pi, does not use a swap partition, it uses a swap file on the regular file system.  If your memory usage is not too much, it will never swap.  I always create my systems with no swap at all, and in the years I have been using them, I have never encountered a problem.  Of course, these devices are just used to process email and things like that.  No memory intensive video or other type of memory hungry apps.  My applications use less then 20% of the available memory so it never swaps.

However, if you will be using memory intensive applications, you might want to create a swap file.


On Thursday, October 17, 2019, 11:11:44 AM CDT, Marty Hartwell <mhartwe@...> wrote:


If this is a Rpi 4 I think I saw a response that swap is not needed, or is a real small amount. So

you may be good to go.

You probably should review the instructions for the pi 4 though, as I have not ordered one yet.

It is in my future though.

Marty kd8bj

On 10/17/19 7:09 AM, Don - KM4UDX wrote:
Yes, you are right.  I got the USB bootable with gparted live,  and it would boot to the gparted selection screen, but then no matter what option i picked, including gparted safeboot, the sequence would never actually start gparted. 

So I've given up for now.  I'm going to try to make my USB3 port and usb3 stick a swap file with the following process.

1) Make sure your USB stick is connected. In a terminal type:
sudo blkid
It will list all your connected drives. Search for your USB stick you want to use as swap and copy the UUID (everything inside these quotes UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX").
This represents the individual name of your device.
Also note the /dev/XXX point of your device.
2) Now unmount your device by typing:
sudo umount /dev/XXX (where XXX represents your device name)
3) Format your USB stick as swap, e.g. by terminal
sudo mkswap /dev/XXX (<-- be sure to use the correct device name here or you'll probably end up formatting the wrong drive!)
or simply use GParted.
4) Now you have to edit your /etc/fstab file, so type
gksudo gedit /etc/fstab
and enter the following
(for all the Xs, use the UUID number you got by typing sudo blkid)
5) Now type
sudo swapon -a
That's it, this should already work

Join to automatically receive all group messages.