[SOLVED]LiveEnv only using RAM instead of liveusb Partition

For issues with MX that has been modified from the initial install. Example: adding packages that then cause issues.
Message
Author
User avatar
Nite Coder
Developer
Posts: 61
Joined: Fri Dec 21, 2018 3:28 pm

[SOLVED]LiveEnv only using RAM instead of liveusb Partition

#1 Post by Nite Coder »

Hello, I recently created a MX Linux Live Environment, and I recently discovered that it only uses RAM when booted, it saves everything when I shutdown.
The main changes I made was installing the Qt5 Framework, GLFW3, XI, XRANDR, and OpenGLfrom the repository(All programming related things). I also downloaded GLAD(Another programming related thing, it's for OpenGL). I also deleted the demo user and created another user, nc. I installed CMake(and the GUI). So the problem is, is that I want it to not run everything in RAM, so I am not limited by the amount of RAM there is on the computer.

output of uname -a:

Code: Select all

Linux mx1 4.19.0-1-amd64 #1 SMP Debian 4.19.5-2~mx17+1 (2018-12-12) x86_64 GNU/Linux
Last edited by Nite Coder on Thu Apr 04, 2019 6:51 pm, edited 1 time in total.

User avatar
thomasl
Posts: 414
Joined: Sun Feb 04, 2018 10:26 am

Re: LiveEnv only using RAM instead of liveusb Partition

#2 Post by thomasl »

Apparently you have some sort of persistence enabled, probably dynamic root persistence. Look into static root persistence, this should do what you want.
Frugal installs on Lenovo ThinkPad L14 Ryzen 5 4650U/24GB * HP Pavilion Ryzen 3 3300U/16GB * Toshiba R950 i5-3340M/12GB
I have a reservation... What do you mean it's not in the COMPUTER!

User avatar
dolphin_oracle
Developer
Posts: 20012
Joined: Sun Dec 16, 2007 1:17 pm

Re: LiveEnv only using RAM instead of liveusb Partition

#3 Post by dolphin_oracle »

instead of using the default persistence options, switch to the "persist static" options. that will keep the persistence file loaded from the USB instead of loading into ram.

you don't need to remake any persistence files, just choose the option from the boot menus.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Nite Coder
Developer
Posts: 61
Joined: Fri Dec 21, 2018 3:28 pm

Re: LiveEnv only using RAM instead of liveusb Partition

#4 Post by Nite Coder »

I use that option, but I tried it again but it didn't work.

User avatar
dolphin_oracle
Developer
Posts: 20012
Joined: Sun Dec 16, 2007 1:17 pm

Re: LiveEnv only using RAM instead of liveusb Partition

#5 Post by dolphin_oracle »

Nite Coder wrote: Mon Apr 01, 2019 1:27 pm I use that option, but I tried it again but it didn't work.
what didn't work?
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Nite Coder
Developer
Posts: 61
Joined: Fri Dec 21, 2018 3:28 pm

Re: LiveEnv only using RAM instead of liveusb Partition

#6 Post by Nite Coder »

Sorry, the persist_static option.
I am running it on a computer with 4 GB.
I have the free space checker that checks how much space I have and it says 1.49 GB.
I check my File Manager and it says I have 6.2 MB

User avatar
dolphin_oracle
Developer
Posts: 20012
Joined: Sun Dec 16, 2007 1:17 pm

Re: LiveEnv only using RAM instead of liveusb Partition

#7 Post by dolphin_oracle »

a free space checker wouldn't be checking your ram. but it may give interesting results depending on where you check. for instance, inside the home folder it would pick up the homefs persistence file. out in the rest it will pickup the rootfs file.

how larger a rootfs file did you make?
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Nite Coder
Developer
Posts: 61
Joined: Fri Dec 21, 2018 3:28 pm

Re: LiveEnv only using RAM instead of liveusb Partition

#8 Post by Nite Coder »

My rootfs is 4096megs with 2223megs used
My homefs is 2359 with 2117megs used
Do I need to resize them to get more space?

User avatar
Nite Coder
Developer
Posts: 61
Joined: Fri Dec 21, 2018 3:28 pm

Re: LiveEnv only using RAM instead of liveusb Partition

#9 Post by Nite Coder »

I solved it, I just had to resize the homefs and reboot.
But, I have a question about how to resize the rootfs.
Because, when I tried to, it told me I couldn't because the rootfs was mapped and mounted

User avatar
JayM
Qualified MX Guide
Posts: 6793
Joined: Tue Jan 08, 2019 4:47 am

Re: LiveEnv only using RAM instead of liveusb Partition

#10 Post by JayM »

You can't resize a mounted and running file system. You'd have to boot Linux from something else to resize root on the MX live USB.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

Post Reply

Return to “MX Modified”