Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: GAI on March 31, 2021, 04:52:45 AM

Title: how to expan swap
Post by: GAI on March 31, 2021, 04:52:45 AM
My program can't run on this system. I suspect that the swap partition is too small. How can I expand it
Title: Re: how to expan swap
Post by: bmarkus on March 31, 2021, 05:26:05 AM
You can add one or more new swap partition or file. It is not TC specific, use Google to find how.
Title: Re: how to expan swap
Post by: GAI on March 31, 2021, 05:33:38 AM
ok  thanks  for your  help
Title: Re: how to expan swap
Post by: GAI on March 31, 2021, 05:51:47 AM
You can add one or more new swap partition or file. It is not TC specific, use Google to find how.

tce-load -i gdb.tcz
is ok

gdb -v 

gdb error while load library  libreadline.so.8

what should i  install   ?
Title: Re: how to expan swap
Post by: Juanito on March 31, 2021, 06:15:07 AM
Code: [Select]
$ provides.sh libreadline.so.8
Title: Re: how to expan swap
Post by: GAI on March 31, 2021, 09:36:20 PM
Do you have an offline installation package?
Title: Re: how to expan swap
Post by: Juanito on April 01, 2021, 12:45:53 AM
You seem to be getting off topic - setting up a swap file or partition does not require any extensions.

If you download an extension like gdb manually, you need to download gdb.tcz.dep and gdb.tcz.md5.txt as well. The *dep file will contain details of any other extensions that gdb requires in order to work.
Title: Re: how to expan swap
Post by: windundgeist on May 23, 2021, 07:15:23 PM
@bmarkus

Hallo

I also tried to enlarge the existing swapfile, without success. There is a special function for this. In the first field I entered /dev/sda4 (I also tried it with just sda4), in the second field the desired size. But TC does not take over the value. So can't the default swapfile be enlarged? But then what is the tool for? And the tool only shows me the command to enlarge. But you don't have to first deactivate the swapfile, then enlarge it and then activate it again? Who does chmod, mkswap and swapon? And who makes the entry in fstab? The tool? Or ist this all done bevore?

And an additional question: TC works with zram by default. Can it also work with zswap, or with zcache?

What is your recommendation?