how can I integrate new partitions into MX?

Message
Author
waldmattis
Posts: 260
Joined: Sat May 28, 2016 6:17 pm

how can I integrate new partitions into MX?

#1 Post by waldmattis »

Good evening.

Since I had first tried several times to prepare the hard disk for a GPT installation of MX without success, I then instructed the MX installer to use the entire disk.

The next step was to shrink the MX partition with gparted (screenshot 1) in order to create a separate home partition and one for swap (screenshot 2).

How can I now integrate as new home and swap partitions into the MX?

I am grateful for any help.

Best regards
Karl

Translated with DeepL.com (free version)


Code: Select all

System:
  Kernel: 6.1.0-18-amd64 [6.1.76-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-amd64 root=UUID=<filter> ro quiet splash
    resume=UUID=<filter> resume_offset=11640832 init=/lib/systemd/systemd
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm v: 4.18.0 vt: 7
    dm: LightDM v: 1.26.0 Distro: MX-23.2_x64 Libretto October 15  2023 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: Hewlett-Packard product: HP ProBook 650 G1 v: A3009DD10203
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Hewlett-Packard model: 2101 v: KBC Version 16.3C serial: <superuser required>
    UEFI: Hewlett-Packard v: L78 Ver. 01.39 date: 09/26/2016
CPU:
  Info: model: Intel Core i5-4300M bits: 64 type: MT MCP arch: Haswell gen: core 4 level: v3
    note: check built: 2013-15 process: Intel 22nm family: 6 model-id: 0x3C (60) stepping: 3
    microcode: 0x28
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 3066 high: 3147 min/max: 800/3300 scaling: driver: intel_cpufreq
    governor: ondemand cores: 1: 3147 2: 2959 3: 3076 4: 3084 bogomips: 20752
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  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
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 4th Gen Core Processor Integrated Graphics vendor: Hewlett-Packard driver: i915
    v: kernel arch: Gen-7.5 process: Intel 22nm built: 2013 ports: active: eDP-1 empty: DP-1, DP-2,
    DP-3, HDMI-A-1, HDMI-A-2, HDMI-A-3, VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0416 class-ID: 0300
  Device-2: Cheng Uei Precision Industry (Foxlink) HP HD Webcam type: USB driver: uvcvideo
    bus-ID: 3-7:3 chip-ID: 05c8:0369 class-ID: 0e02
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.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: 508x285mm (20.00x11.22") s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: AU Optronics 0x34ed built: 2012 res: 1920x1080 hz: 60 dpi: 142
    gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5") ratio: 16:9 modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel HD Graphics 4600 (HSW GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel bus-ID: 00:03.0 chip-ID: 8086:0c0c class-ID: 0403
  Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Hewlett-Packard 8
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20 class-ID: 0403
  API: ALSA v: k6.1.0-18-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 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 Ethernet I217-LM vendor: Hewlett-Packard driver: e1000e v: kernel port: 3080
    bus-ID: 00:19.0 chip-ID: 8086:153a class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Centrino Advanced-N 6235 driver: iwlwifi v: kernel modules: wl pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:088e class-ID: 0280
  IF: wlan0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Centrino Bluetooth Wireless Transceiver type: USB driver: btusb v: 0.8
    bus-ID: 3-12:4 chip-ID: 8087:07da class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 2.1 lmp-v: 4.0
    sub-v: fc00 hci-v: 4.0 rev: 1ebd
  Info: acl-mtu: 310:10 sco-mtu: 64:8 link-policy: rswitch hold sniff park
    link-mode: peripheral accept service-classes: rendering, capturing, object transfer, audio,
    telephony
Drives:
  Local Storage: total: 1.03 TiB used: 57.23 GiB (5.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB block-size:
    physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 043 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 type: USB vendor: SanDisk model: Extreme Pro size: 119.25 GiB
    block-size: physical: 512 B logical: 512 B type: N/A serial: <filter> scheme: MBR
Partition:
  ID-1: / raw-size: 100 GiB size: 97.37 GiB (97.37%) used: 57.23 GiB (58.8%) fs: ext4
    dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat
    dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 5.69 GiB used: 59.2 MiB (1.0%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 57.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2167 pm: dpkg pkgs: 2155 libs: 1089 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 12
  No active apt repos in: /etc/apt/sources.list
  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/google-chrome.list
    1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bookworm main non-free
Info:
  Processes: 256 Uptime: 38m wakeups: 1 Memory: 3.69 GiB used: 2.9 GiB (78.7%) Init: systemd v: 252
  target: graphical (5) default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
You do not have the required permissions to view the files attached to this post.

Charlie Brown

Re: how can I integrate new partitions into MX?

#2 Post by Charlie Brown »

You just need to make entries for them in /etc/fstab to get automounted .

You can use the "Disk Manager" also can see the uuid numbers there,

or:

Code: Select all

lsblk -f
And take the uuid numbers and add something like:

Code: Select all

UUID=b76d5c0f-2e8f-4fe2-9294-f22855eeb62f	/home	ext4	noatime,defaults	1	2

UUID=defc752f-94b7-4d0f-a67a-ed6695306c64	none	swap	defaults	0	0

Charlie Brown

Re: how can I integrate new partitions into MX?

#3 Post by Charlie Brown »

... But you may need to first:

Give the ownership (chown) of sda3 to user, then move the user folder to there (leave an empty home directory in sda2 so that the user folder gets mounted to there )

( At least some of these to be done when on live session ... )

waldmattis
Posts: 260
Joined: Sat May 28, 2016 6:17 pm

Re: how can I integrate new partitions into MX?

#4 Post by waldmattis »

@Charlie Brown
1st: thank you very much for helping me again as you did several times in the past!
2nd: after I added the following lines to fstab the system boots but asks me for a password

UUID=9bc6e647-0c3d-4f91-abe3-beb09a7f27c8 /home ext4 noatime,defaults 1 2

UUID=d96d6231-c202-41e4-bf96-dc787f4e2b24 none swap defaults 0 0

But when I type in my normal password I get into an endless loop.
I am asked for my password again and again......

After I have deleted the inserted lines by using the live system, the old system boots as before the change.

I think I have the problem because I have not managed to make the necessary changes via chown.

And I don't understand the specifications of chown --help.


If I have to pull the emergency brake and reinstall MX into the existing partitioning, will the GPT partitioning be preserved and will I then be
- root
- home
- swap

available?

Thanks again
Karl

Translated with DeepL.com (free version)
You do not have the required permissions to view the files attached to this post.

Charlie Brown

Re: how can I integrate new partitions into MX?

#5 Post by Charlie Brown »

Yep, the partitioning scheme will stay as is, all you need to do is select them under "Use For" column:

sda1 => ESP
sda2 => /
sda3 => /home
sda4 => swap

:)


... As a summary: when you select no separate partitions for /boot and/or /home they are just directories within / (straightforward installation , as you did)

By the way, you can also select to encrypt for just home or both for root and home etc... as you might already know ... (Also (while you're at it) you can select to enable zramswap which will behave faster than and before swap , I'd suggest )


P.S. The wording changed 1-2 times bw. installer versions, so they may also appear as root (rather than / ) home (rather than /home) ... or EFI rather than ESP etc...

User avatar
DukeComposed
Posts: 1315
Joined: Thu Mar 16, 2023 1:57 pm

Re: how can I integrate new partitions into MX?

#6 Post by DukeComposed »

waldmattis wrote: Fri Apr 12, 2024 3:27 pm 2nd: after I added the following lines to fstab the system boots but asks me for a password

But when I type in my normal password I get into an endless loop.
I am asked for my password again and again......

After I have deleted the inserted lines by using the live system, the old system boots as before the change.
I think that prompting for a login password over and over again is one symptom of permissions problems. I've encountered it before when /tmp didn't have the right mode set.

If I were you I'd ignore the swap partition for the time being and focus on making sure that your new /home partition can work correctly. This means that it's mountable in a live session, has the correct mode and ownership -- you really will have to learn how chown works -- and that the line you add to /etc/fstab correctly reflects the partition and matches what you'd see from a "mount" command. From the looks of it your /etc/fstab line was fine, but you need to make sure that your user account can actually access your /home/user directory.

When your /home partition is functional, go ahead and add your swap line. You shouldn't need a live session for that.

Post Reply

Return to “Software / Configuration”