Discerning USB persistence mode while already booted.

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
pbird
Posts: 13
Joined: Fri May 01, 2020 8:24 am

Discerning USB persistence mode while already booted.

#1 Post by pbird »

My kid has a USB stick with a persistent MX Linux install on it. Occasionally — not sure how — persistence will get un-selected and he'll boot the drive, do some work, and then not realize until it's too late that it wasn't saved on shutdown. I'm wondering if there's any indicator he can look for while already booted into the USB stick of whether he's running a persistent session and/or what persistence mode has been selected (all, static, etc.).

Thanks, all!

User avatar
dolphin_oracle
Developer
Posts: 22398
Joined: Sun Dec 16, 2007 12:17 pm

Re: Discerning USB persistence mode while already booted.

#2 Post by dolphin_oracle »

Quick system info will the boot parameters in use, including the persistence ones.
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.

pbird
Posts: 13
Joined: Fri May 01, 2020 8:24 am

Re: Discerning USB persistence mode while already booted.

#3 Post by pbird »

Thank you so much! Quick follow-on: Is there a handy CLI command I can use to check the same status? Thinking of including it in the Conky display so it’s visible for him at a glance.

User avatar
dolphin_oracle
Developer
Posts: 22398
Joined: Sun Dec 16, 2007 12:17 pm

Re: Discerning USB persistence mode while already booted.

#4 Post by dolphin_oracle »

This command may not be exactly right but close. Maybe

Code: Select all

cat /proc/cmdline
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.

pbird
Posts: 13
Joined: Fri May 01, 2020 8:24 am

Re: Discerning USB persistence mode while already booted.

#5 Post by pbird »

Greatly appreciated!

pbird
Posts: 13
Joined: Fri May 01, 2020 8:24 am

Re: Discerning USB persistence mode while already booted.

#6 Post by pbird »

Just as an aside, this seems like something that would be super handy for all persistent USB users to have in the Conky display. Any chance of it becoming a default or pre-installed config option for USB stick installations? Happy to share my modified Conky config if/when I get it working.

User avatar
dolphin_oracle
Developer
Posts: 22398
Joined: Sun Dec 16, 2007 12:17 pm

Re: Discerning USB persistence mode while already booted.

#7 Post by dolphin_oracle »

I don’t remember if our “antiX” conky had that info, but the default theme on actual antiX isos does display that info.
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.

pbird
Posts: 13
Joined: Fri May 01, 2020 8:24 am

Re: Discerning USB persistence mode while already booted.

#8 Post by pbird »

Will check it out, thanks so much!

User avatar
i_ri
Posts: 1106
Joined: Tue Jun 30, 2015 12:26 am

Re: Discerning USB persistence mode while already booted.

#9 Post by i_ri »

/usr/local/bin/persist-enabled

Post Reply

Return to “MX Help”