(masked) services & chroot  [Solved]

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
User avatar
Buck Fankers
Posts: 770
Joined: Sat Mar 10, 2018 8:06 pm

(masked) services & chroot

#1 Post by Buck Fankers »

Short:
Most important question I have, is this guide bellow still current, if I want to Chroot into my system via live USB stick, since it is from 2016.

https://mxlinux.org/wiki/system/chroot/

-----------------------------------------------------------------------------------------------------------------------------------------

Long:
I saw services manager and I got a wonderful idea, to tidy up my system :bawling: :wink:

I disabled these services:
- glances (it is top like terminal app I installed at some point, don't need service to constantly run, disabling it, couldn't hurt)
- cups (don't have printer, this was probably a mistake)
- cups-browsed (also don't use network printer either)

After this system, wouldn't boot into SysVinit. Naturally, boots into systemd

So I tried Chroot commands - adjusted to my: /dev/sda3 - from upper link. Had no errors. After I entered all the commands from upper guide and I was chrooted(?!?), I ran (terminal was already sudo)
service --status-all
and
update-rc.d glances enable (found these commands in some older forum post)

Only problem I had was, I masked cups service some long time ago. I can't recall the command and how to unmask it.
Because cups service is masked, I couldn't enable it. I did enable glances and cups-browsed. Of course I was keep using chrooted terminal for al these commands.

I tried also
update-rc.d cups unmask
update-rc.d cups defaults

What is really strange is, if I later ran: service --status-all , there was still - (minus) in front of glances. Like I didn't enable it.
So I'm curious, what I'm doing wrong and how to properly: chroot, unmask and enable services.

It is a non priority post, more for learning purpose. I can log into systemd and use computer normally.
My guess is, after I executed commands from upper guide, I was probably still not properly chrooted...

My systemd inxi:

Code: Select all

Snapshot created on: 20250322_1857
System:
  Kernel: 6.9.4-1-liquorix-amd64 [6.9-3~mx23ahs] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 clocksource: tsc
    avail: hpet,acpi_pm parameters: audit=0 intel_pstate=disable
    BOOT_IMAGE=/boot/vmlinuz-6.9.4-1-liquorix-amd64 root=UUID=<filter> ro quiet splash
    init=/lib/systemd/systemd
  Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 wm: xfwm4 v: 4.20.0 with: xfce4-panel
    tools: xfce4-screensaver vt: 7 dm: LightDM v: 1.32.0 Distro: MX-23.6_x64 Libretto May 19 2024
    base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Laptop System: ASUSTeK product: N76VZ v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: N76VZ v: 1.0 serial: <superuser required> part-nu: ASUS-NotebookSKU
    uuid: <superuser required> UEFI: American Megatrends v: N76VZ.214 date: 07/09/2013
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse B330/M330/M331 serial: <filter>
    charge: 55% (should be ignored) rechargeable: yes status: discharging
CPU:
  Info: model: Intel Core i7-3610QM bits: 64 type: MT MCP arch: Ivy Bridge gen: core 3 level: v2
    built: 2012-15 process: Intel 22nm family: 6 model-id: 0x3A (58) stepping: 9 microcode: 0x21
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache: L1: 256 KiB
    desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 1362 high: 1600 min/max: 1200/2301 boost: enabled scaling:
    driver: acpi-cpufreq governor: ondemand cores: 1: 1400 2: 1501 3: 1451 4: 1351 5: 1200 6: 1600
    7: 1200 8: 1200 bogomips: 36715
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW; STIBP: conditional; RSB
    filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Vulnerable: No microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: ASUSTeK N56VZ driver: i915 v: kernel
    arch: Gen-7 process: Intel 22nm built: 2012-13 ports: active: LVDS-1 empty: VGA-1 bus-ID: 00:02.0
    chip-ID: 8086:0166 class-ID: 0300
  Device-2: NVIDIA GK107M [GeForce GT 650M] vendor: ASUSTeK N56VZ driver: N/A alternate: nouveau
    non-free: series: 470.xx+ status: legacy-active (EOL~2024-09-xx) arch: Kepler code: GKxxx
    process: TSMC 28nm built: 2012-2018 pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:0fd1 class-ID: 0300
  Device-3: Sunplus Innovation Asus Webcam driver: uvcvideo type: USB rev: 2.0 speed: 480 Mb/s
    lanes: 1 mode: 2.0 bus-ID: 1-1.3:4 chip-ID: 1bcf:2883 class-ID: 0e02
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm4 v: 4.20.0 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: crocus gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 509x286mm (20.04x11.26") s-diag: 584mm (22.99")
  Monitor-1: LVDS-1 model: Chi Mei Opto 0x1720 built: 2011 res: 1920x1080 hz: 60 dpi: 128
    gamma: 1.2 size: 382x215mm (15.04x8.46") diag: 438mm (17.3") ratio: 16:9 modes: 1920x1080
  API: EGL v: 1.5 hw: drv: intel crocus platforms: device: 0 drv: crocus device: 1 drv: swrast
    gbm: drv: crocus surfaceless: drv: crocus x11: drv: crocus inactive: wayland
  API: OpenGL v: 4.2 vendor: intel mesa v: 22.3.6 glx-v: 1.4 es-v: 3.0 direct-render: yes
    renderer: Mesa Intel HD Graphics 4000 (IVB GT2) device-ID: 8086:0166 memory: 1.46 GiB
    unified: yes
  API: Vulkan v: 1.3.239 layers: 3 device: 0 type: integrated-gpu name: Intel HD Graphics 4000
    (IVB GT2) driver: mesa intel v: 22.3.6 device-ID: 8086:0166 surfaces: xcb,xlib device: 1
    type: cpu name: llvmpipe (LLVM 15.0.6 256 bits) driver: mesa llvmpipe v: 22.3.6 (LLVM 15.0.6)
    device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: ASUSTeK 7
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1e20 class-ID: 0403
  Device-2: NVIDIA GK107 HDMI Audio driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s
    lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0e1b class-ID: 0403
  API: ALSA v: k6.9.4-1-liquorix-amd64 status: kernel-api tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.0.6 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Centrino Wireless-N 2230 driver: iwlwifi v: kernel modules: wl pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:0887 class-ID: 0280
  IF: wlan0 state: up mac: <filter>
  Device-2: Qualcomm Atheros AR8161 Gigabit Ethernet vendor: ASUSTeK N56VZ driver: alx v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 04:00.0 chip-ID: 1969:1091
    class-ID: 0200
  IF: eth0 state: down mac: <filter>
  Info: services: NetworkManager, nfsd, wpa_supplicant
Bluetooth:
  Device-1: Intel Centrino Bluetooth Wireless Transceiver driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-1.1:3 chip-ID: 8087:07da class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 1 state: down bt-service: N/A rfk-block: hardware: no
    software: no address: <filter>
  Info: acl-mtu: 310:10 sco-mtu: 64:8 link-policy: rswitch hold sniff park
    link-mode: peripheral accept
Drives:
  Local Storage: total: 1.13 TiB used: 75.87 GiB (6.6%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: PNY model: CS1311 240GB SSD size: 223.57 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: SSD serial: <filter> fw-rev: 1122
    scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s tech: SSD serial: <filter>
    fw-rev: 045 scheme: GPT
Partition:
  ID-1: / raw-size: 39.2 GiB size: 38.29 GiB (97.67%) used: 22 GiB (57.5%) fs: ext4 dev: /dev/sda3
    maj-min: 8:3
  ID-2: /boot/efi raw-size: 2.24 GiB size: 2.23 GiB (99.80%) used: 376.6 MiB (16.5%) fs: vfat
    dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) zswap: yes compressor: lz4
    max-pool: 20%
  ID-1: swap-1 type: partition size: 2.18 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sda6
    maj-min: 8:6
Sensors:
  System Temperatures: cpu: 63.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 2700
Repos:
  Packages: pm: dpkg pkgs: 2587 libs: 1355 tools: apt, apt-get, aptitude, nala, synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
    1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb https://mxrepo.com/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/opera-stable.list
    1: deb https://deb.opera.com/opera-stable/ stable non-free
  Active apt repos in: /etc/apt/sources.list.d/vscodium.list
    1: deb [signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg] https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs vscodium main
  Active apt repos in: /etc/apt/sources.list.d/extrepo_librewolf.sources
    1: deb [arch=amd64 arm64] https://repo.librewolf.net librewolf main
Info:
  Memory: total: N/A available: 15.51 GiB used: 2.17 GiB (14.0%)
  Processes: 328 Power: uptime: 21m states: freeze,mem,disk suspend: deep avail: s2idle
    wakeups: 0 hibernate: platform avail: shutdown, reboot, suspend, test_resume image: 6.17 GiB
    services: upowerd,xfce4-power-manager Init: systemd v: 252 target: graphical (5)
    default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 Client: shell wrapper v: 5.2.15-release inxi: 3.3.35
Boot Mode: UEFI

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

Re: (masked) services & chroot  [Solved]

#2 Post by dolphin_oracle »

usually masking is a systemd concept.

for sysVinit, to reset to defaults in the init scripts, you can do

Code: Select all

sudo update-rc.d $SERVICE remove
sudo update-rc.d $SERVICE defaults
if any symlinks were manually removed, that should restore them.
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
Buck Fankers
Posts: 770
Joined: Sat Mar 10, 2018 8:06 pm

Re: (masked) services & chroot

#3 Post by Buck Fankers »

dolphin_oracle wrote: Wed Jun 11, 2025 7:38 am

Code: Select all

sudo update-rc.d $SERVICE remove
sudo update-rc.d $SERVICE defaults
Ahh, makes sense, remove and add, thank you!
That Chroot guide is still good to follow, correct?

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

Re: (masked) services & chroot

#4 Post by dolphin_oracle »

Buck Fankers wrote: Wed Jun 11, 2025 8:35 am
dolphin_oracle wrote: Wed Jun 11, 2025 7:38 am

Code: Select all

sudo update-rc.d $SERVICE remove
sudo update-rc.d $SERVICE defaults
Ahh, makes sense, remove and add, thank you!
That Chroot guide is still good to follow, correct?
nothing wrong with it. chroot-rescue-scan is a handy option as well.
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
Buck Fankers
Posts: 770
Joined: Sat Mar 10, 2018 8:06 pm

Re: (masked) services & chroot

#5 Post by Buck Fankers »

dolphin_oracle wrote: Wed Jun 11, 2025 8:42 am nothing wrong with it. chroot-rescue-scan is a handy option as well.
Will give it a try. And thanks again for all the information!

Post Reply

Return to “MX Help”