Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

[Solved] Recover from frozen frugal static system?

Help for Current Versions of MX
Message
Author
Antediluvian
Forum Novice
Forum  Novice
Posts: 25
Joined: Sun May 20, 2018 7:42 pm

[Solved] Recover from frozen frugal static system?

#1 Post by Antediluvian » Wed Jun 13, 2018 6:26 pm

I've been using MX 17.1 as LiveUSB frugal static (bootfs & homefs) without shutdown (just suspend) for a little over one week since my last remaster. Yesterday I tried to read a microSD card placed in a USB card reader. The reader froze the system. After trying to close running apps with my custom Xfce panel xkill launcher (that didn't respond) I shut the computer down with REISUB.

Now when I start up the computer I get the MX boot screen with the following choices:
1. Snapshot MX-17.1 x64 Horizon (01 June 2018)
2. Boot from Hard Disk
3. Memory test

Choice 1 boots the snapshot, but that doesn't have my changes for the past week (no surprise).
Choice 2 open the Grub menu where there are three "systems" to choose. Another Linux distro installed on sdb, Windows 7 on sda, and the MX frugal install on a separate partition on sdb. When Choice 2 is selected followed by selecting the frugal install then one of two things happen: (a) the computer freezes on the grub background photo, or (b) the MX boot screen comes up again (as above), that is, it seems like the frugal system refuses to boot and the computer goes back to the opening MX boot screen. Kind of an endless loop.

Any suggestions for fixing this issue, or for recovering the few LO documents I created in the past week?
Last edited by Antediluvian on Wed Jun 13, 2018 9:41 pm, edited 1 time in total.

User avatar
Richard
Posts: 2035
Joined: Fri Dec 12, 2008 10:31 am

Re: Recover from frozen frugal static system?

#2 Post by Richard » Wed Jun 13, 2018 6:39 pm

Do not reformat that USB. or the hard disk.

My understanding is that the folder, */antiX-Frugal-4.15.0-1-amd64, or similar,
contains all files saved. Just exactly how to get data out, will have to come from the builders.
MX171, Lenovo T430-2017: i5-3320M, 8 GBRAM, 4.18.0-1-amd64, intel_pstate, 119GB SSD
MX171, AA1(ZG5) & EeePC-1005ha: DualCore N270, 1 GBRAM, 4.15.0-1-686-pae, 150GB HDD
DC9,LibO61,Dbox,Vivaldi,FFesr,mPDFed,CherryT,Vbox. Linux Counter #208633

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1501
Joined: Wed Apr 11, 2018 5:09 pm

Re: Recover from frozen frugal static system?

#3 Post by fehlix » Wed Jun 13, 2018 7:25 pm

Antediluvian wrote:
Wed Jun 13, 2018 6:26 pm
Any suggestions for fixing this issue, or for recovering the few LO documents I created in the past week?
Within the "1. Snapshot MX-17.1 x64 Horizon (01 June 2018)"
menu option press "E" for edit.
Navigate to the line startin with linux using the arrow keys "<- "->" and up and down.
you see the option perists_static.

1st trial: Now. I assume you rootfs is broken and hopefully your homefs is not broken.
So let's try to start without rootfs but with homefs.
-> change persist_static to persist_home
With this you will try to boot the original MX-Linux without system-updates, but hopefully
with access to the home-folder with you documents.
If that is booting ok : save away your documents.

#----
EDIT: If homefs is ok, you just need to remove "rootfs" and restart
normal with perist_static ( which is here = frugal-satic).
A new rootfs will be created and the exist homefs will be used.
#------

2n trial if homefs is also broken.
-> remove persist_static
With this you will boot the original MX-Linux without system-updates
and with a default home. ( No documents)

Now open MX Tools -> ReamsterCC -> Peristence -> action "Discovery Menu"
-> Discover homefs
This will "try" to open homefs as "root"-user, if it is not too much broken ;=)
If this open Thunar as root with "homefs" find and copy your LO docs onto e.g the dekstop.

After having recovered you'r docs. You might think about creating new rootfs and new homefs.
Hope you can make sense out of the above?

You might review you suspend usage pattern.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Antediluvian
Forum Novice
Forum  Novice
Posts: 25
Joined: Sun May 20, 2018 7:42 pm

Re: Recover from frozen frugal static system?

#4 Post by Antediluvian » Wed Jun 13, 2018 9:40 pm

Thank you for the detailed directions, fehlix. While starting your process I noticed a line that flashed by that said something like "can't find partition labeled antiX-Frugal". So I booted from the other Linux distro, ran Gparted and entered the label "antiX-Frugal" for the HDD partition where rootfs and homefs should be. Then I booted the LiveUSB, selected the Snapshot from 01 June 2018, pressed F5 (I'm running off BIOS instead of UEFI) and selected frugal_static. Happily MX booted up with my current (yesterday's) rootfs & homefs. So, problem solved! Thanks!

Fehlix, you ended your post with "You might review your suspend pattern." What do you mean by that? Is it better to shut down a LiveUSB (with persistence) between sessions than it is to suspend?

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1501
Joined: Wed Apr 11, 2018 5:09 pm

Re: Recover from frozen frugal static system?

#5 Post by fehlix » Thu Jun 14, 2018 6:27 am

Antediluvian wrote:
Wed Jun 13, 2018 9:40 pm
Fehlix, you ended your post with "You might review your suspend pattern." What do you mean by that? Is it better to shut down a LiveUSB (with persistence) between sessions than it is to suspend?
Well, when you shutdown you might see a rsync activity.
This rsync is the persistence sync,which will write finally all
changes into the "rootfs"-file.
As long as you have not synced yet, like with having not rebooted with suspend,
you never know how much of your current system changes - e.g. through
apt's upgrades - are already written onto rootfs.
Have a look into the persist-sync options with rematerCC
which are automativ, semi-automatic or manual.
You might get an idea, why I do feel it's not a so good idea
with frugal/or live-boot using to intensive suspend mode.
:happybday:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
oops
Forum Regular
Forum Regular
Posts: 304
Joined: Tue Apr 10, 2018 5:07 pm

Re: Recover from frozen frugal static system?

#6 Post by oops » Thu Jun 14, 2018 9:16 am

fehlix wrote:
Thu Jun 14, 2018 6:27 am
Antediluvian wrote:
Wed Jun 13, 2018 9:40 pm
Fehlix, you ended your post with "You might review your suspend pattern." What do you mean by that? Is it better to shut down a LiveUSB (with persistence) between sessions than it is to suspend?
Well, when you shutdown you might see a rsync activity.
This rsync is the persistence sync,which will write finally all
changes into the "rootfs"-file.
As long as you have not synced yet, like with having not rebooted with suspend,
you never know how much of your current system changes - e.g. through
apt's upgrades - are already written onto rootfs.
Have a look into the persist-sync options with rematerCC
which are automativ, semi-automatic or manual.
You might get an idea, why I do feel it's not a so good idea
with frugal/or live-boot using to intensive suspend mode.
:happybday:
Hello fehlix,
FI, I have tried the frugal install (a MX17 x32 under a AMD64 PC) ... and it is not very easy to play with. First had to use the dpkg-reconfigure locales to set again the French language ... second for the keyboard too ... then I had a message "the persistence files are not found or so." ... so maybe I can use the kernel boot parameter option ? : frugal=root,home! (saw here: https://download.tuxfamily.org/antix/do ... al_install ) ... So I have to make some tests again, but frugal is not so easy to use for me ;-)
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1501
Joined: Wed Apr 11, 2018 5:09 pm

Re: Recover from frozen frugal static system?

#7 Post by fehlix » Thu Jun 14, 2018 10:11 am

oops wrote:
Thu Jun 14, 2018 9:16 am
First had to use the dpkg-reconfigure locales to set again the French language ... second for the keyboard too ... then I had a message "the persistence files are not found or so." ... so maybe I can use the kernel boot parameter option ? : frugal=root,home! (saw here: https://download.tuxfamily.org/antix/do ... al_install ) ... So I have to make some tests again, but frugal is not so easy to use for me ;-)
You do not have to mess around with dpkg-reconfigure locales
if you have already setup frugal correctly by booting the first time with the correct local ( in classical
boot menuy by select with F2 the language French ).
Now if you later re-boot into frugal:
With an ISO or LiveUSB, you shall also select the language using F2 in classiacle boot menu.
or
if you boot the GRUB-menu,
you add this boot-paramerters within the linux-boot line for examples:

Code: Select all

kbd=fr kbvar=    kbopt=caps:none lang=fr_FR tz=Europe/Paris persist_static
kbd=fr kbvar=oss kbopt=caps:none lang=fr_FR tz=Europe/Paris persist_static
which wil set French local and keyboard.

Frugal pesistence options could be used like
persist_static persist_home, persist_root or "" (empty) etc
those are shortcurs/alternatives
to persist=static, persist=home, persist=root ... etc.

The boot parameters are whell described here
https://mxlinux.org/wiki/system/boot-parameters

The MX-boot parameters are based on antiX-boot paramters,
which are described here
https://download.tuxfamily.org/antix/do ... al_install
( Thats the link you posted above.)
Not all antiX-boot option are availebl within MX Linux.
But both antiX and MX Linux using the same functionality with live and frugal boots.
Please do ask any specific detailed question ( before you get lost ...) ;)
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
oops
Forum Regular
Forum Regular
Posts: 304
Joined: Tue Apr 10, 2018 5:07 pm

Re: Recover from frozen frugal static system?

#8 Post by oops » Thu Jun 14, 2018 4:57 pm

... Thank you fehlix for your help (as usual)
Into my custom GRUB-menu, I added your boot parameters and that did the trick. (except for the root persist-static item, I still have an issue/warning with a difference between rootfs and linuxfs )
menuentry "0 Frugal Antix MX17-1snapshot juin2018 -on sda10"{
set root=(hd0,10)
# linux /antiX-Frugal-4.17.0/vmlinuz quiet noxorg bdev=sda10 bdir=/antiX-Frugal-4.17.0 antiX=LMX nomodeset
linux /antiX-Frugal-4.17.0/vmlinuz quiet noxorg bdev=sda10 bdir=/antiX-Frugal-4.17.0 nomodeset kbd=fr kbvar=oss kbopt=caps:none lang=fr_FR tz=Europe/Paris persist_static
initrd /antiX-Frugal-4.17.0/initrd.gz
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1501
Joined: Wed Apr 11, 2018 5:09 pm

Re: Recover from frozen frugal static system?

#9 Post by fehlix » Thu Jun 14, 2018 6:38 pm

oops wrote:
Thu Jun 14, 2018 4:57 pm
... Thank you fehlix for your help (as usual)
Into my custom GRUB-menu, I added your boot parameters and that did the trick. (except for the root persist-static item, I still have an issue/warning with a difference between rootfs and linuxfs )
Please show which boot-parameter you entered and what the warning looked like.

Some notes to make you happy:
persist_static :
This is you normal (persistent) use with useing rootfs and homefs , writeable with system-updates /data.

persist_root :
this uses only rootfs (e.g. with all system updates) and a homefs is not used,
for the (non-persitent) home it will use either vanilla user/skeleton home or an existing
home from within linuxfs ( which you would have after a personal remaster)

persist_home: this uses no rootfs (no system updates since last remaster)
but it uses your (write-able and persitent) homefs . with all personal changes an data.

I know it can become confusing, as it so flexible ;)
ttfn
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
oops
Forum Regular
Forum Regular
Posts: 304
Joined: Tue Apr 10, 2018 5:07 pm

Re: Recover from frozen frugal static system?

#10 Post by oops » Fri Jun 15, 2018 3:32 am

fehlix wrote:
Thu Jun 14, 2018 6:38 pm
... Some notes to make you happy:
persist_static :
This is you normal (persistent) use with useing rootfs and homefs , writeable with system-updates /data.

persist_root :
this uses only rootfs (e.g. with all system updates) and a homefs is not used,
for the (non-persitent) home it will use either vanilla user/skeleton home or an existing
home from within linuxfs ( which you would have after a personal remaster)

persist_home: this uses no rootfs (no system updates since last remaster)
but it uses your (write-able and persitent) homefs . with all personal changes an data.

I know it can become confusing, as it so flexible ;)
Hello Fehlix,
... I better see now, and understand the frugal flexibility ;-) ... So I have changed the frugal behavior to meet my needs into the grub boot menu like this now:
linux /antiX-Frugal-4.17.0/vmlinuz quiet noxorg bdev=sda10 bdir=/antiX-Frugal-4.17.0 nomodeset kbd=fr kbvar=oss kbopt=caps:none lang=fr_FR tz=Europe/Paris from=hd persist=root!,home!
... Frugal is very interesting in fact and make me happy to play with ;-)
Thanks,
Have a nice day.
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


Post Reply

Return to “MX Help”