Static Persistence Live USB

Message
Author
rmcg
Posts: 8
Joined: Sun Oct 14, 2018 11:31 pm

Static Persistence Live USB

#1 Post by rmcg »

I am running a live USB with antiX 17 on it, I use static persistence with retains updates, software installed and documents saved in the Home folder. The problem I have is when I update the repos as I did recently as seen below due to issues with the non free repo, the changes in /etc/apt/sources.list.d/antix.list are not retained after a reboot or shutdown. Can anyone help me with making these repo changes permanent I used sudo nano /etc/apt/sources.list.d/antix.list and used ^O - Write Out in nano to save and ^X - Exit to exit changes. The changes are retained in session but as soon as you reboot they are overwritten with the original repo file.

Using static persistence I thought would retain the editing of /etc/apt/sources.list.d/antix.list but it appears otherwise, could anyone advise me on the way to retain changes in /etc/apt/sources.list.d/antix.list on a live usb with persistence.

To get rid of repo error
As a result of a request from one of our users, we have moved non free packages out of the antiX main folder to its own nonfree one. The new nonfree section applies to antiX stretch, testing and sid repos.

As you can see in the stretch nonfree repo antiX stretch/nonfree debs this includes a few packages, but for testing and sid only adobe-flashplugin.

Users should change their /etc/apt/sources.list.d/antix.list if you want to upgrade non-free debs to this:


# Use with Debian Stable/stretch repositories. Set as default for antiX-17. Note new repos
deb http://repo.antixlinux.com/stretch stretch main nosystemd nonfree

# Use with Debian Testing repositories.
#deb http://repo.antixlinux.com/testing testing main nosystemd nonfree

# Use with Debian Sid repositories.
#deb http://repo.antixlinux.com/stretch stretch main nosystemd nonfree

Of course, if you want to be clean/libre than do not use nonfree nor non-free in debian.list in the repo lists.

User avatar
Adrian
Developer
Posts: 8248
Joined: Wed Jul 12, 2006 1:42 am

Re: Static Persistence Live USB

#2 Post by Adrian »

If you remaster does it preserve that change?

rmcg
Posts: 8
Joined: Sun Oct 14, 2018 11:31 pm

Re: Static Persistence Live USB

#3 Post by rmcg »

I will try a remaster still learning the process of remastering but will give it a go thanks for the tip.

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

Re: Static Persistence Live USB

#4 Post by dolphin_oracle »

I cannot duplicate the OP's experience. for me, with static persistence, any change to the .list files is maintained across reboots.

I think there are 2 possibilities. 1. the changes didn't actually save to the .list files, or 2. that some other persistence mode, perhaps /home persistence only, was used and such changes to the root filesystem were only live.
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.

rmcg
Posts: 8
Joined: Sun Oct 14, 2018 11:31 pm

Re: Static Persistence Live USB

#5 Post by rmcg »

I tried a remaster but still changes to /etc/apt/sources.list.d/antix.list are not retained after reboot, the changes must be saved because when I exit /etc/apt/sources.list.d/antix.list and apt-get update the new repos function correctly. It is only after reboot or shutdown the changes are lost. With reference to dolphin_oracle - '2. that some other persistence mode, perhaps /home persistence only, was used and such changes to the root filesystem were only live' I tried to check on my persistence state, as far as i can tell I'm using static_persistence with persist root enabled so those file system changes should be retained. Still have same problem in repo update not being retained on a live usb with persistence. Check out a screencast of my live system issue here https://youtu.be/FXP-7ANg5ts

User avatar
fehlix
Developer
Posts: 10304
Joined: Wed Apr 11, 2018 5:09 pm

Re: Static Persistence Live USB

#6 Post by fehlix »

rmcg wrote: Tue Oct 16, 2018 1:13 am I tried a remaster but still changes to /etc/apt/sources.list.d/antix.list are not retained after reboot,....
To change antiX repos do use Control Center from the menu: -> Control Center -> Maintenance -> Manage APT Repos
After changing repos do show the output of this command line:
(copy & paste into the terminal command line )

Code: Select all

inxi -Fxrz; cat /proc/cmdline  ; head /etc/live/persist-config.conf /etc/apt/sources.list.d/antix.list ;
Do reboot and show the output of the command line again.
Note: Do wrap the text-output between code-tags [code] here [/code] for better readability by pressing the code-tag icon </> above the editor window or type manually [code] ... [/code]
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

rmcg
Posts: 8
Joined: Sun Oct 14, 2018 11:31 pm

Re: Static Persistence Live USB

#7 Post by rmcg »

Here is the output:

Code: Select all

demo@antix1:~
$ inxi -Fxrz; cat /proc/cmdline  ; head /etc/live/persist-config.conf /etc/apt/sources.list.d/antix.list ;
System:
  Host: antix1 Kernel: 4.9.87-antix.1-amd64-smp x86_64 bits: 64 compiler: gcc v: 6.3.0 
  Desktop: IceWM 1.4.2 Distro: antiX-17.1_x64-full Heather Heyer 17 March 2018 
  base: Debian GNU/Linux 9 (stretch) 
Machine:
  Type: Laptop System: HP product: HP EliteBook 850 G3 v: N/A serial: <filter> 
  Mobo: HP model: 8079 v: KBC Version 85.77 serial: <filter> UEFI: HP 
  v: N75 Ver. 01.24 date: 01/30/2018 
Battery:
  ID-1: BAT0 charge: 42.8 Wh condition: 44.4/44.4 Wh (100%) 
  model: Hewlett-Packard Primary status: Unknown 
CPU:
  Topology: Dual Core model: Intel Core i5-6300U bits: 64 type: MT MCP arch: Skylake 
  rev: 3 L2 cache: 3072 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19972 
  Speed: 2793 MHz min/max: 400/3000 MHz Core speeds (MHz): 1: 2793 2: 2346 3: 777 
  4: 2755 
Graphics:
  Device-1: Intel HD Graphics 520 driver: i915 v: kernel bus ID: 00:02.0 
  Device-2: AMD Opal XT [Radeon R7 M265] driver: radeon v: kernel bus ID: 03:00.0 
  Display: server: X.Org 1.19.2 driver: ati,modesetting,radeon unloaded: fbdev,vesa 
  resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2) v: 4.5 Mesa 13.0.6 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio driver: snd_hda_intel v: kernel 
  bus ID: 00:1f.3 
  Sound Server: ALSA v: k4.9.87-antix.1-amd64-smp 
Network:
  Device-1: Intel Ethernet I219-LM driver: e1000e v: 3.2.6-k port: efa0 
  bus ID: 00:1f.6 
  IF: eth1 state: down mac: <filter> 
  Device-2: Intel Wireless 8260 driver: iwlwifi v: kernel port: efa0 bus ID: 02:00.0 
  IF: wlan1 state: up mac: <filter> 
Drives:
  Local Storage: total: 353.04 GiB used: 28.87 GiB (8.2%) 
  ID-1: /dev/sda vendor: SanDisk model: SD8SN8U-256G-1006 size: 238.47 GiB 
  ID-2: /dev/sdb type: USB vendor: SanDisk model: Ultra size: 114.56 GiB 
Partition:
  ID-1: / size: 476.2 MiB used: 338.3 MiB (71.0%) fs: overlay dev: ERR-102 
Sensors:
  System Temperatures: cpu: 41.0 C mobo: 40.0 C 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/antix.list 
  1: deb http://repo.antixlinux.com/stretch/ stretch main nosystemd nonfree
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
  1: deb http://mirror.fsmg.org.nz/debian/ stretch-updates main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/debian.list 
  1: deb http://mirror.fsmg.org.nz/debian/ stretch non-free contrib main
  2: deb http://security.debian.org/ stretch/updates non-free contrib main
  No active apt repos in: /etc/apt/sources.list.d/onion.list 
  No active apt repos in: /etc/apt/sources.list.d/various.list 
Info:
  Processes: 213 Uptime: 7h 44m Memory: 7.68 GiB used: 1.25 GiB (16.2%) Init: SysVinit 
  runlevel: 5 Compilers: gcc: 6.3.0 Shell: bash v: 4.4.12 inxi: 3.0.25 
BOOT_IMAGE=/antiX/vmlinuz quiet splash=v disable=lx lang=en_NZ tz=Pacific/Auckland persist_static
==> /etc/live/persist-config.conf <==
AUTOSAVE_MODE="1 Automatic"

==> /etc/apt/sources.list.d/antix.list <==
# Use with Debian Stable/stretch repositories. Set as default for antiX-17. Note new repos
deb http://repo.antixlinux.com/stretch/ stretch main nosystemd nonfree 

# Use with Debian Testing repositories.
# deb http://mx.debian.nz/antix/testing/ testing main nosystemd nonfree 

# Use with Debian Sid repositories.
# deb http://repo.antixlinux.com/stretch/ stretch main nosystemd nonfree 


demo@antix1:~

rmcg
Posts: 8
Joined: Sun Oct 14, 2018 11:31 pm

Re: Static Persistence Live USB

#8 Post by rmcg »

The command line output above was before reboot with repo changes in effect, the output below is following reboot and the repo has reverted to the original settings again, see below for the output:

Code: Select all

demo@antix1:~
$ inxi -Fxrz; cat /proc/cmdline  ; head /etc/live/persist-config.conf /etc/apt/sources.list.d/antix.list ;
System:
  Host: antix1 Kernel: 4.9.87-antix.1-amd64-smp x86_64 bits: 64 compiler: gcc v: 6.3.0 
  Desktop: IceWM 1.4.2 Distro: antiX-17.1_x64-full Heather Heyer 17 March 2018 
  base: Debian GNU/Linux 9 (stretch) 
Machine:
  Type: Laptop System: HP product: HP EliteBook 850 G3 v: N/A serial: <filter> 
  Mobo: HP model: 8079 v: KBC Version 85.77 serial: <filter> UEFI: HP 
  v: N75 Ver. 01.24 date: 01/30/2018 
Battery:
  ID-1: BAT0 charge: 42.8 Wh condition: 44.4/44.4 Wh (100%) 
  model: Hewlett-Packard Primary status: Unknown 
CPU:
  Topology: Dual Core model: Intel Core i5-6300U bits: 64 type: MT MCP arch: Skylake 
  rev: 3 L2 cache: 3072 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19972 
  Speed: 514 MHz min/max: 400/3000 MHz Core speeds (MHz): 1: 514 2: 500 3: 528 4: 594 
Graphics:
  Device-1: Intel HD Graphics 520 driver: i915 v: kernel bus ID: 00:02.0 
  Device-2: AMD Opal XT [Radeon R7 M265] driver: radeon v: kernel bus ID: 03:00.0 
  Display: server: X.Org 1.19.2 driver: ati,modesetting,radeon unloaded: fbdev,vesa 
  resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2) v: 4.5 Mesa 13.0.6 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio driver: snd_hda_intel v: kernel 
  bus ID: 00:1f.3 
  Sound Server: ALSA v: k4.9.87-antix.1-amd64-smp 
Network:
  Device-1: Intel Ethernet I219-LM driver: e1000e v: 3.2.6-k port: efa0 
  bus ID: 00:1f.6 
  IF: eth1 state: down mac: <filter> 
  Device-2: Intel Wireless 8260 driver: iwlwifi v: kernel port: efa0 bus ID: 02:00.0 
  IF: wlan1 state: up mac: <filter> 
Drives:
  Local Storage: total: 353.04 GiB used: 28.87 GiB (8.2%) 
  ID-1: /dev/sda vendor: SanDisk model: SD8SN8U-256G-1006 size: 238.47 GiB 
  ID-2: /dev/sdb type: USB vendor: SanDisk model: Ultra size: 114.56 GiB 
Partition:
  ID-1: / size: 476.2 MiB used: 338.3 MiB (71.0%) fs: overlay dev: ERR-102 
Sensors:
  System Temperatures: cpu: 46.0 C mobo: 42.0 C 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/antix.list 
  1: deb http://mx.debian.nz/antix/stretch/ stretch main nosystemd nonfree
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
  1: deb http://mirror.fsmg.org.nz/debian/ stretch-updates main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/debian.list 
  1: deb http://mirror.fsmg.org.nz/debian/ stretch non-free contrib main
  2: deb http://security.debian.org/ stretch/updates non-free contrib main
  No active apt repos in: /etc/apt/sources.list.d/onion.list 
  No active apt repos in: /etc/apt/sources.list.d/various.list 
Info:
  Processes: 214 Uptime: 2m Memory: 7.68 GiB used: 988.2 MiB (12.6%) Init: SysVinit 
  runlevel: 5 Compilers: gcc: 6.3.0 Shell: bash v: 4.4.12 inxi: 3.0.25 
BOOT_IMAGE=/antiX/vmlinuz quiet splash=v disable=lx lang=en_NZ tz=Pacific/Auckland persist_static
==> /etc/live/persist-config.conf <==
AUTOSAVE_MODE="1 Automatic"

==> /etc/apt/sources.list.d/antix.list <==
# Use with Debian Stable/stretch repositories. Set as default for antiX-17. Note new repos
deb http://mx.debian.nz/antix/stretch/ stretch main nosystemd nonfree 

# Use with Debian Testing repositories.
# deb http://mx.debian.nz/antix/testing/ testing main nosystemd nonfree 

# Use with Debian Sid repositories.
# deb http://mx.debian.nz/antix/stretch/ stretch main nosystemd nonfree

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

Re: Static Persistence Live USB

#9 Post by dolphin_oracle »

I think localize-repo is running every live boot.
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
fehlix
Developer
Posts: 10304
Joined: Wed Apr 11, 2018 5:09 pm

Re: Static Persistence Live USB

#10 Post by fehlix »

rmcg wrote: Tue Oct 16, 2018 11:35 pm Drives:
Local Storage: total: 353.04 GiB used: 28.87 GiB (8.2%)
ID-1: /dev/sda vendor: SanDisk model: SD8SN8U-256G-1006 size: 238.47 GiB
ID-2: /dev/sdb type: USB vendor: SanDisk model: Ultra size: 114.56 GiB
Partition:
ID-1: / size: 476.2 MiB used: 338.3 MiB (71.0%) fs: overlay dev: ERR-102
Your SanDisk Ultra shows a partition overlay dev ERR-102. Suggest you use another USB thumb drive and install fresh with Live USB Maker.

EDIT: on antiX use Live USB Maker to create a new LiveUSB.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Post Reply

Return to “antiX”