Bearbeiten von „Diskussion:Install-Party/Linux Mint Debian Edition

Zur Navigation springen Zur Suche springen
Warnung: Du bist nicht angemeldet. Deine IP-Adresse wird bei Bearbeitungen öffentlich sichtbar. Melde dich an oder erstelle ein Benutzerkonto, damit Bearbeitungen deinem Benutzernamen zugeordnet werden. Ein eigenes Benutzerkonto hat eine ganze Reihe von Vorteilen.

Die Bearbeitung kann rückgängig gemacht werden. Bitte prüfe den Vergleich unten, um sicherzustellen, dass du dies tun möchtest, und veröffentliche dann unten deine Änderungen, um die Bearbeitung rückgängig zu machen.

Aktuelle Version Dein Text
Zeile 108: Zeile 108:
== LMDE 6 "anderes Dateisystem" ==
== LMDE 6 "anderes Dateisystem" ==


==== Vorkenntnisse vor LMDE 6 ====
----


standardmäßige Installation mit Verschlüsselung
: [[website:members/PaulRiegel/os/lmde/installation-lmde-3-mit-verschluesslung]]
: [[website:members/PaulRiegel/os/lmde/installation-lmde-3-mit-verschluesslung]]
==== Untersuchung Installation LMDE 6 ====
===== standardmäßige Installation mit Verschlüsselung ext4 LMDE 6 =====
; nach dem Neustart in die Installation:


: <code>cat /etc/crypttab</code>
: <code>cat /etc/crypttab</code>
Zeile 146: Zeile 141:
</pre>
</pre>


===== standardmäßige Installation ohne Verschlüsselung btrfs LMDE 6 =====
----
 
; während der Installation:
 
: <code>mount</code>
<pre>
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=3743316k,nr_inodes=935829,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=757356k,mode=755,inode64)
/dev/sdb1 on /run/live/medium type iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8)
/dev/loop0 on /run/live/rootfs/filesystem.squashfs type squashfs (ro,noatime,errors=continue)
tmpfs on /run/live/overlay type tmpfs (rw,noatime,mode=755,inode64)
overlay on / type overlay (rw,noatime,lowerdir=/run/live/rootfs/filesystem.squashfs/,upperdir=/run/live/overlay/rw,workdir=/run/live/overlay/work,redirect_dir=on)
tmpfs on /usr/lib/live/mount type tmpfs (rw,nosuid,nodev,noexec,relatime,size=757356k,mode=755,inode64)
/dev/sdb1 on /usr/lib/live/mount/medium type iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8)
/dev/loop0 on /usr/lib/live/mount/rootfs/filesystem.squashfs type squashfs (ro,noatime,errors=continue)
tmpfs on /usr/lib/live/mount/overlay type tmpfs (rw,noatime,mode=755,inode64)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12771)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
ramfs on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-tmpfiles-setup-dev.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-sysctl.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,inode64)
ramfs on /run/credentials/systemd-tmpfiles-setup.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=757356k,nr_inodes=189339,mode=700,uid=1000,gid=1000,inode64)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/loop0 on /source type squashfs (ro,relatime,errors=continue)
/dev/sda3 on /target type btrfs (rw,relatime,ssd,space_cache=v2,subvolid=256,subvol=/@)
/dev/sda3 on /target/home type btrfs (rw,relatime,ssd,space_cache=v2,subvolid=257,subvol=/@home)
/dev/sda2 on /target/boot type btrfs (rw,relatime,ssd,space_cache=v2,subvolid=5,subvol=/)
</pre>
 
; nach dem Neustart in die Installation:
 
: <code>cat /etc/crypttab</code>
<pre>
# <target name> <source device> <key file> <options>
</pre>
 
: <code>cat /etc/fstab</code>
<pre>
#### Static Filesystem Table File
proc /proc proc defaults 0 0
# /dev/sda3
UUID=b84bec73-29b9-4e62-a830-5069650680af / btrfs defaults,subvol=@ 00
UUID=b84bec73-29b9-4e62-a830-5069650680af /home btrfs defaults,subvol=@home 0 0
# /dev/sda2
UUID=dea84151-1736-439a-8127-a45f2a7feb75 /boot btrfs defaults 0 0
# /dev/sda1
UUID=FDD2-C26F /boot/efi vfat defaults 0 1
</pre>
 
: <s><code>cat /etc/default/grub.d/61_live-installer.cfg</code></s>
 
==== Erarbeitung Verschlüsslung und btrfs ====


https://forums.linuxmint.com/viewtopic.php?t=100659
https://forums.linuxmint.com/viewtopic.php?t=100659
Zeile 229: Zeile 154:
: <code>sudo mount -o subvol=@ /dev/mapper/lvmlmde-root /mnt/target</code>
: <code>sudo mount -o subvol=@ /dev/mapper/lvmlmde-root /mnt/target</code>
: <code>sudo mkdir /mnt/target/home</code>
: <code>sudo mkdir /mnt/target/home</code>
: <code>sudo mount -o subvol=home /dev/mapper/lvmlmde-root /mnt/target/home</code>
: <code>sudo mount -o subvol=home /dev/mapper/lvmlmde-root /mnt/target/home
 
: <code>sudo rsync -avz /run/live/medium/casper/filesystem.squashfs/ /mnt/target/</code>
:: <code>/dev/loop0</code>


: <code>sudo rsync -avz /run/live/rootfs/filesystem.squashfs/ /mnt/target/</code>
: <code>sudo mkdir /mnt/target/dev</code>
: <code>sudo mkdir /mnt/target/dev</code>
: <code>sudo mount --bind /dev /mnt/target/dev</code>
: <code>sudo mount --bind /dev /mnt/target/dev</code>
Zeile 251: Zeile 174:


: <code>chroot /mnt/target</code>
: <code>chroot /mnt/target</code>
==== Installation Debian ====
und dann Wechsel zu [[LMDE]]
https://forums.linuxmint.com/viewtopic.php?t=404823
== (bevorzugte) Verwendung von zram aktivieren ==
Bei einer standardmäßigen Installation (ohne Verschlüsselung) mit btrfs wird anscheinend keine Partition (und keine Datei) für SWAP erstellt. (Gut! Stattdessen kann - zeitgemäßer - [[wikipedia:en:zram|zram]] verwendet werden.)
: <code>apt install zram-tools</code>
<pre></pre>
: <code>systemctl status zramswap.service</code>
<pre></pre>
: <code>systemctl is-enabled zramswap.service</code>
<pre>
enabled
</pre>
: <code>systemctl is-active zramswap.service</code>
<pre>
active
</pre>
== LMDE 6 meets OpenZFS ==
https://linuxmint.com/download_lmde.php
: meets
https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Bookworm%20Root%20on%20ZFS
==== LMDE 6 meets OpenZFS Annahmen ====
===== Verwendung mehrerer Geräte für Massenspeicher =====
: nicht notwendig
Für einen hohen Ansprch, soll die Konfiguration 2 Geräte für Massenspeicher vorsehen, um darzustellen, dass ein (nahezu) beliebiger Verbund an Geräte für Massenspeicher verwendet werden kann.
===== Deaktivierung Secure Boot =====
in der Verwaltung vom Gerät [[wikipedia:de:Unified Extensible Firmware Interface#Secure Boot]] deaktivieren
: wegen der nachträglichen Installation ist der Schlüssel für das Modul für den Kernel für ZFS nicht valide, weswegen das Modul nicht benutzt werden kann
: <code>sudo modprobe zfs</code>
<pre>
modprobe: ERROR: could not insert 'zfs': Key was rejected by service
</pre>
==== LMDE 6 OpenZFS Vorbereitung ====
mit dem Internet verbinden
----
: <code>whoami</code>
<pre>
mint
</pre>
: <code>uname -a</code>
<pre>
Linux mint 6.1.0-12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.52-1 (2023-09-07) x86_64 GNU/Linux
</pre>
==== LMDE 6 OpenZFS Einrichtung Umgebung Installation ====
: <code>apt update</code>
<pre></pre>
: <code>sudo apt -y install ssh</code>
<pre></pre>
: <code>sudo systemctl status ssh</code>
<pre></pre>
Ersetzen vom nicht gesetzen Passwort
: <code>passwd</code>
<pre></pre>
: <code>ip a</code>
<pre></pre>
----
: <code>ssh mint@321.321.321.321</code>
<pre></pre>
----
: <s><code>sudo nano /etc/apt/sources.list</code></s>
<pre>
#/etc/apt/sources.list
deb http://deb.debian.org/debian bookworm main contrib non-free-firmware
</pre>
: <code>apt update</code>
<pre></pre>
: <code>gsettings get org.gnome.desktop.media-handling automount</code>
<pre>
true
</pre>
: <code>gsettings set org.gnome.desktop.media-handling automount false</code>
<pre>
</pre>
: <s><code>apt -y install debootstrap gdisk zfsutils-linux</code></s>
: <code>apt -y install gdisk zfsutils-linux</code>
<pre>
</pre>
==== LMDE 6 OpenZFS Einrichtung Geräte für Massenspeicher ====
In diesem Abschnitt sollte
  mnt
durch
  target
ersetzt werden,
weil das Programm für die Installation von LMDE erwartet das Ziel zur Installation am Ort <code>/target/</code>.
: <code>ls -la /dev/disk/by-id/</code>
<pre>
total 0
</pre>
<pre>
lrwxrwxrwx 1 root root  9 May 28 23:25 ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R -> ../../sda
</pre>
<pre>
lrwxrwxrwx 1 root root  9 May 28 23:25 ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M -> ../../sdb
</pre>
<pre>
lrwxrwxrwx 1 root root  9 May 28 23:25 usb-Kingston_DataTraveler_3.0_4CEDFB74A418B320F9950BCC-0:0 -> ../../sdc
lrwxrwxrwx 1 root root  10 May 28 23:25 usb-Kingston_DataTraveler_3.0_4CEDFB74A418B320F9950BCC-0:0-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  10 May 28 23:25 usb-Kingston_DataTraveler_3.0_4CEDFB74A418B320F9950BCC-0:0-part2 -> ../../sdc2
</pre>
<pre>
lrwxrwxrwx 1 root root  9 May 28 23:25 wwn-0x5002538d41306eb7 -> ../../sdb
</pre>
<pre>
lrwxrwxrwx 1 root root  9 May 28 23:25 wwn-0x5002538d702e43f9 -> ../../sda
</pre>
: <code>DISK0=/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R</code>
: <code>DISK1=/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M</code>
: <code>swapoff -a</code>
: <code>cat /proc/mdstat</code>
<pre>
Personalities :
unused devices: <none>
</pre>
: <code>sudo wipefs -a $DISK0</code>
<pre>
/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R: 8 bytes were erased at offset 0x7470c05e00 (gpt): 45 46 49 20 50 41 52 54
/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R: calling ioctl to re-read partition table: Success
</pre>
: <code>sudo wipefs -a $DISK1</code>
<pre>
/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M: 8 bytes were erased at offset 0x7470c05e00 (gpt): 45 46 49 20 50 41 52 54
/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M: calling ioctl to re-read partition table: Success
</pre>
: <code>sudo blkdiscard -f $DISK0</code>
<pre>
blkdiscard: Operation forced, data will be lost!
</pre>
: <code>sudo blkdiscard -f $DISK1</code>
<pre>
blkdiscard: Operation forced, data will be lost!
</pre>
: <code>sudo sgdisk --zap-all $DISK0</code>
<pre>
Creating new GPT entries in memory.
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
</pre>
: <code>sudo sgdisk --zap-all $DISK1</code>
<pre>
Creating new GPT entries in memory.
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
</pre>
: <code>sudo sgdisk -n2:1M:+512M -t2:EF00 $DISK0</code>
<pre>
Creating new GPT entries in memory.
The operation has completed successfully.
</pre>
: <code>sudo sgdisk -n2:1M:+512M -t2:EF00 $DISK1</code>
<pre>
Creating new GPT entries in memory.
The operation has completed successfully.
</pre>
: <code>sudo sgdisk -n3:0:+1G -t3:BF01 $DISK0</code>
<pre>
The operation has completed successfully.
</pre>
: <code>sudo sgdisk -n3:0:+1G -t3:BF01 $DISK1</code>
<pre>
The operation has completed successfully.
</pre>
: <code>sudo sgdisk -n4:0:0 -t4:BF00 $DISK0</code>
<pre>
The operation has completed successfully.
</pre>
: <code>sudo sgdisk -n4:0:0 -t4:BF00 $DISK1</code>
<pre>
The operation has completed successfully.
</pre>
: <code>
<pre>
sudo zpool create \
    -o compatibility=grub2 \
    -o ashift=12 \
    -o autotrim=on \
    -o cachefile=/etc/zfs/zpool.cache \
    -O devices=off \
    -O acltype=posixacl\
    -O xattr=sa \
    -O compression=lz4 \
    -O normalization=formD \
    -O relatime=on \
    -O canmount=off \
    -O mountpoint=/boot -R /target \
    bpool mirror \
    ${DISK0}-part3 \
    ${DISK1}-part3
</pre>
</code>
<pre>
</pre>
: <code>
<pre>
sudo zpool create \
    -O keylocation=prompt \
    -O keyformat=passphrase \
    -o ashift=12 \
    -o autotrim=on \
    -O encryption=on \
    -O acltype=posixacl \
    -O xattr=sa \
    -O dnodesize=auto \
    -O compression=lz4 \
    -O normalization=formD \
    -O relatime=on \
    -O canmount=off \
    -O mountpoint=/ -R /target \
    rpool mirror \
    ${DISK0}-part4 \
    ${DISK1}-part4
</pre>
</code>
<pre>
</pre>
: <code>sudo zfs create -o canmount=off -o mountpoint=none rpool/ROOT</code>
: <code>sudo zfs create -o canmount=off -o mountpoint=none bpool/BOOT</code>
: <code>sudo zfs create -o canmount=noauto -o mountpoint=/ rpool/ROOT/debian</code>
: <code>sudo zfs mount rpool/ROOT/debian</code>
: <code>sudo zfs create -o mountpoint=/boot bpool/BOOT/debian</code>
: <code>sudo zfs create                    rpool/home</code>
: <code>sudo zfs create -o mountpoint=/root rpool/home/root</code>
: <code>sudo chmod 700 /target/root</code>
: <code>sudo zfs create -o canmount=off    rpool/var</code>
: <code>sudo zfs create -o canmount=off    rpool/var/lib</code>
: <code>sudo zfs create                    rpool/var/log</code>
: <code>sudo zfs create                    rpool/var/spool</code>
: <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/cache</code>
: <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/lib/nfs</code>
: <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/tmp</code>
: <code>sudo chmod 1777 /target/var/tmp</code>
: <code>sudo zfs create rpool/srv</code>
: <code>sudo zfs create -o canmount=off rpool/usr</code>
: <code>sudo zfs create rpool/usr/local</code>
: <code>sudo zfs create rpool/var/lib/AccountsService</code>
: <code>sudo zfs create rpool/var/lib/NetworkManager</code>
: <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/lib/docker</code>
: <s><code>sudo zfs create rpool/var/snap</code></s>
: <code>sudo zfs create rpool/var/lib/flatpak</code>
: <s><code>sudo zfs create rpool/var/www</code></s>
: <code>sudo zfs create -o com.sun:auto-snapshot=false  rpool/tmp</code>
: <code>sudo chmod 1777 /target/tmp</code>
----
: <code>sudo mkdir /target/run</code>
: <code>sudo mount -t tmpfs tmpfs /target/run</code>
: <code>mkdir /target/run/lock</code>
: <s><code>sudo debootstrap bookworm /target/</code></s>
<pre>
I: Target architecture can be executed
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id 4D64FEC119C2029067D6E791F8D2585B8783D481)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
^CE: Interrupt caught ... exiting
</pre>
==== LMDE 6 OpenZFS Installation LMDE GUI I ====
: <code>sudo ls /target/</code>
<pre>
boot  debootstrap  home  root  run  srv  tmp  usr  var
</pre>
: <code>sudo rm -rf /target/</code>
<pre>
rm: cannot remove '/target/srv': Device or resource busy
rm: cannot remove '/target/tmp': Device or resource busy
rm: cannot remove '/target/root': Device or resource busy
rm: cannot remove '/target/boot': Device or resource busy
rm: cannot remove '/target/var/log': Device or resource busy
rm: cannot remove '/target/var/tmp': Device or resource busy
rm: cannot remove '/target/var/www': Device or resource busy
rm: cannot remove '/target/var/snap': Device or resource busy
rm: cannot remove '/target/var/lib/NetworkManager': Device or resource busy
rm: cannot remove '/target/var/lib/AccountsService': Device or resource busy
rm: cannot remove '/target/var/lib/docker': Device or resource busy
rm: cannot remove '/target/var/lib/nfs': Device or resource busy
rm: cannot remove '/target/var/spool': Device or resource busy
rm: cannot remove '/target/var/cache': Device or resource busy
rm: cannot remove '/target/run': Device or resource busy
rm: cannot remove '/target/usr/local': Device or resource busy
rm: cannot remove '/target/home': Device or resource busy
</pre>
: <s><code>sudo ln -s /mnt /target</code></s>
: <code>ls /boot/</code>
<pre>
config-6.1.0-12-amd64  grub  initrd.img-6.1.0-12-amd64  System.map-6.1.0-12-amd64  vmlinuz-6.1.0-12-amd64
</pre>
: <code>ls /target/boot/</code>
: <code>ls /target/</code>
<pre>
boot  home  root  run  srv  tmp  usr  var
</pre>
: <code>ls /target/</code>
<pre>
boot  home  root  run  srv  tmp  usr  var
</pre>
----
GUI
----
===== LMDE 6 OpenZFS Konfiguration nach der Installation LMDE =====
: <code>ls /target/</code>
<pre>
bin/            home/          lib32/          mnt/            run/            target/        vmlinuz       
boot/          initrd.img      lib64/          opt/            sbin/          tmp/            vmlinuz.old   
dev/            initrd.img.old  libx32/        proc/          srv/            usr/           
etc/            lib/            media/          root/          sys/            var/           
</pre>
: <code>ls /target/home/</code>
<pre>
vater
</pre>
: <code>ls /target</code>
<pre>
bin  dev  home        initrd.img.old  lib32  libx32  mnt  proc  run  srv  target  usr  vmlinuz
boot  etc  initrd.img  lib            lib64  media  opt  root  sbin  sys  tmp    var  vmlinuz.old
</pre>
: <code>ls /target/boot/</code>
<pre>
config-6.1.0-12-amd64  grub  initrd.img-6.1.0-12-amd64  System.map-6.1.0-12-amd64  vmlinuz-6.1.0-12-amd64
</pre>
: <code>ls /target/etc/</code>
<pre>
Display all 240 possibilities? (y or n)
</pre>
: <code>sudo mkdir /target/etc/zfs</code>
: <code>sudo cp /etc/zfs/zpool.cache /target/etc/zfs/</code>
: <code>cat /target/etc/hostname</code>
<pre>
localhost.localdomain
</pre>
: <code>sudo hostname lab</code>
: <code>sudo nano /target/etc/hostname</code>
<pre>
lab
#localhost.localdomain
127.0.1.1      lab   
#127.0.1.1      lab.domain.tld
</pre>
: <code>ip a</code>
<pre>
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
      valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
      valid_lft forever preferred_lft forever
2: wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 4c:d5:77:af:61:f1 brd ff:ff:ff:ff:ff:ff
    inet 172.20.79.164/23 brd 172.20.79.255 scope global dynamic noprefixroute wlp1s0
      valid_lft 62sec preferred_lft 62sec
    inet6 2a0f:5382:acab:1403:c3d2:c3d2:c3d2:7759/128 scope global dynamic noprefixroute
      valid_lft 97sec preferred_lft 52sec
    inet6 2a0f:5382:acab:1403:288e:f14d:6a6e:8477/64 scope global dynamic noprefixroute
      valid_lft 1797sec preferred_lft 597sec
    inet6 fd23:42:c3d2:583:6111:98ea:402d:afcf/64 scope global dynamic noprefixroute
      valid_lft 1797sec preferred_lft 597sec
    inet6 fe80::35b5:bbbc:9e8d:4443/64 scope link noprefixroute
      valid_lft forever preferred_lft forever
</pre>
: <code>ls /target/etc/network/interfaces.d/</code>
: <code>sudo nano /target/etc/network/interfaces.d/wlp1s0</code>
<pre>
auto wlp1s0
iface wlp1s0 inet dhcp
</pre>
: <s><code>sudo nano /target/etc/network/interfaces.d/enp0s31f6</code></s>
<pre>
auto enp0s31f6
iface enp0s31f6 inet dhcp
</pre>
: <code>sudo cat /target/etc/apt/sources.list.d/official-package-repositories.list</code>
<pre>
# Do not edit this file manually, use Software Sources instead.
deb http://packages.linuxmint.com faye main upstream import backport #id:linuxmint_main
deb https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://security.debian.org bookworm-security main contrib non-free non-free-firmware
deb https://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware
</pre>
: <code>sudo mount --make-private --rbind /dev  /target/dev</code>
: <code>sudo mount --make-private --rbind /proc /target/proc</code>
: <code>sudo mount --make-private --rbind /sys  /target/sys</code>
===== LMDE 6 OpenZFS Installation der Programme für das Dateisystem nach der Installation LMDE vor dem Neustart nach der Installation LMDE =====
: <s><code>sudo chroot /target /usr/bin/env DISK0=$DISK0 bash --login</code></s>
: <code>sudo chroot /target /usr/bin/env DISK0=$DISK0 DISK1=$DISK1 bash --login</code>
: <code>apt update</code>
<pre></pre>
(verleichsweise zeitlich lange (mehrere Minuten) andauernde) Aktualisierung der Pakete auf dem Ziel der Installation
: <code>apt upgrade -y</code>
<pre></pre>
: <code>apt search console-setup</code>
<pre>
Warning: Invalid locale (please review locale settings, this might lead to problems later):
  locale::facet::_S_create_c_locale name not valid
i  console-setup                    - console font and keymap setup program     
</pre>
<pre></pre>
: <code>apt search locales</code>
<pre>
Warning: Invalid locale (please review locale settings, this might lead to problems later):
  locale::facet::_S_create_c_locale name not valid
</pre>
<pre></pre>
<pre>
i  locales                                            - GNU C Library: National Language (locale) data [support]   
</pre>
<pre></pre>
: <s><code>apt install --yes console-setup locales</code></s>
<pre>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
console-setup is already the newest version (1.221).
The following additional packages will be installed:
  libc-bin libc-dev-bin libc-l10n libc6 libc6-dev
Suggested packages:
  glibc-doc libnss-nis libnss-nisplus
Recommended packages:
  libc-devtools
The following packages will be upgraded:
  libc-bin libc-dev-bin libc-l10n libc6 libc6-dev locales
</pre>
<pre></pre>
: <s><code>dpkg-reconfigure locales tzdata keyboard-configuration console-setup</code></s>
<pre>
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
</pre>
<pre>
Current default time zone: 'Etc/UTC'
</pre>
<pre></pre>
: <s><code>apt -y install dpkg-dev linux-headers-generic linux-image-generic</code></s>
<pre></pre>
: <code>apt search dpkg-dev</code>
<pre>
Warning: Invalid locale (please review locale settings, this might lead to problems later):
  locale::facet::_S_create_c_locale name not valid
i  dpkg-dev                                          - Debian package development tools                           
</pre>
<pre></pre>
: <code>apt search linux-headers-generic</code>
<pre>
Warning: Invalid locale (please review locale settings, this might lead to problems later):
  locale::facet::_S_create_c_locale name not valid
v  linux-headers-generic                              -                                                             
v  linux-headers-generic:i386                        -                                                             
</pre>
: <code>apt -y install linux-headers-generic</code>
<pre></pre>
<pre>
Note, selecting 'linux-headers-amd64' instead of 'linux-headers-generic'
linux-headers-amd64 is already the newest version (6.1.90-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
</pre>
: <code>apt search linux-image-generic</code>
<pre>
Warning: Invalid locale (please review locale settings, this might lead to problems later):
  locale::facet::_S_create_c_locale name not valid
v  linux-image-generic                                -                                                             
v  linux-image-generic:i386                          -                                                             
</pre>
: <code>apt -y install linux-image-generics</code>
<pre></pre>
<pre>
Note, selecting 'linux-image-amd64' instead of 'linux-image-generic'
linux-image-amd64 is already the newest version (6.1.90-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
</pre>
: <code>apt search zfs-initramfs</code>
<pre>
Warning: Invalid locale (please review locale settings, this might lead to problems later):
  locale::facet::_S_create_c_locale name not valid
p  zfs-initramfs                                      - OpenZFS root filesystem capabilities for Linux - initramfs 
</pre>
: <code>apt -y install zfs-initramfs</code>
<pre></pre>
<!--
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libnvpair3linux libuutil3linux libzfs4linux libzpool5linux python3-distutils python3-lib2to3 zfs-dkms zfs-zed
  zfsutils-linux
Suggested packages:
  debhelper nfs-kernel-server
The following NEW packages will be installed:
  libnvpair3linux libuutil3linux libzfs4linux libzpool5linux python3-distutils python3-lib2to3 zfs-dkms
  zfs-initramfs zfs-zed zfsutils-linux
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 4751 kB of archives.
After this operation, 26.5 MB of additional disk space will be used.
Get:1 https://deb.debian.org/debian bookworm/main amd64 python3-lib2to3 all 3.11.2-3 [76.3 kB]
Get:2 https://deb.debian.org/debian bookworm/main amd64 python3-distutils all 3.11.2-3 [131 kB]
Get:3 https://deb.debian.org/debian bookworm/contrib amd64 zfs-dkms all 2.1.11-1 [2304 kB]
Get:4 https://deb.debian.org/debian bookworm/contrib amd64 libnvpair3linux amd64 2.1.11-1 [58.4 kB]
Get:5 https://deb.debian.org/debian bookworm/contrib amd64 libuutil3linux amd64 2.1.11-1 [51.3 kB]
Get:6 https://deb.debian.org/debian bookworm/contrib amd64 libzfs4linux amd64 2.1.11-1 [232 kB]
Get:7 https://deb.debian.org/debian bookworm/contrib amd64 libzpool5linux amd64 2.1.11-1 [1285 kB]
Get:8 https://deb.debian.org/debian bookworm/contrib amd64 zfsutils-linux amd64 2.1.11-1 [502 kB]
Get:9 https://deb.debian.org/debian bookworm/contrib amd64 zfs-zed amd64 2.1.11-1 [75.6 kB]
Get:10 https://deb.debian.org/debian bookworm/contrib amd64 zfs-initramfs all 2.1.11-1 [34.0 kB]
Fetched 4751 kB in 5s (894 kB/s)   
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "C.UTF-8",
LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package python3-lib2to3.
(Reading database ... 506865 files and directories currently installed.)
Preparing to unpack .../0-python3-lib2to3_3.11.2-3_all.deb ...
Unpacking python3-lib2to3 (3.11.2-3) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../1-python3-distutils_3.11.2-3_all.deb ...
Unpacking python3-distutils (3.11.2-3) ...
Selecting previously unselected package zfs-dkms.
Preparing to unpack .../2-zfs-dkms_2.1.11-1_all.deb ...
Unpacking zfs-dkms (2.1.11-1) ...
Selecting previously unselected package libnvpair3linux.
Preparing to unpack .../3-libnvpair3linux_2.1.11-1_amd64.deb ...
Unpacking libnvpair3linux (2.1.11-1) ...
Selecting previously unselected package libuutil3linux.
Preparing to unpack .../4-libuutil3linux_2.1.11-1_amd64.deb ...
Unpacking libuutil3linux (2.1.11-1) ...
Selecting previously unselected package libzfs4linux.
Preparing to unpack .../5-libzfs4linux_2.1.11-1_amd64.deb ...
Unpacking libzfs4linux (2.1.11-1) ...
Selecting previously unselected package libzpool5linux.
Preparing to unpack .../6-libzpool5linux_2.1.11-1_amd64.deb ...
Unpacking libzpool5linux (2.1.11-1) ...
Selecting previously unselected package zfsutils-linux.
Preparing to unpack .../7-zfsutils-linux_2.1.11-1_amd64.deb ...
Unpacking zfsutils-linux (2.1.11-1) ...
Selecting previously unselected package zfs-zed.
Preparing to unpack .../8-zfs-zed_2.1.11-1_amd64.deb ...
Unpacking zfs-zed (2.1.11-1) ...
Selecting previously unselected package zfs-initramfs.
Preparing to unpack .../9-zfs-initramfs_2.1.11-1_all.deb ...
Unpacking zfs-initramfs (2.1.11-1) ...
Setting up libnvpair3linux (2.1.11-1) ...
Setting up libuutil3linux (2.1.11-1) ...
Setting up python3-lib2to3 (3.11.2-3) ...
Setting up python3-distutils (3.11.2-3) ...
Setting up libzfs4linux (2.1.11-1) ...
Setting up zfs-dkms (2.1.11-1) ...
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Loading new zfs-2.1.11 DKMS files...
Building for 6.1.0-12-amd64 6.1.0-21-amd64
Building initial module for 6.1.0-12-amd64
Done.
zavl.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
znvpair.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
zunicode.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
zcommon.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
zfs.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
icp.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
zlua.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
spl.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
zzstd.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-12-amd64/updates/dkms/
depmod....
Building initial module for 6.1.0-21-amd64
Done.
zavl.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
znvpair.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
zunicode.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
zcommon.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
zfs.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
icp.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
zlua.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
spl.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
zzstd.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/6.1.0-21-amd64/updates/dkms/
depmod...
Setting up libzpool5linux (2.1.11-1) ...
Setting up zfsutils-linux (2.1.11-1) ...
Running in chroot, ignoring command 'daemon-reload'
Running in chroot, ignoring request.
Running in chroot, ignoring command 'show'
Running in chroot, ignoring command 'daemon-reload'
Running in chroot, ignoring request.
Running in chroot, ignoring command 'show'
Running in chroot, ignoring command 'daemon-reload'
Running in chroot, ignoring request.
Running in chroot, ignoring command 'show'
Running in chroot, ignoring command 'daemon-reload'
Running in chroot, ignoring request.
Running in chroot, ignoring command 'show'
Created symlink /etc/systemd/system/zfs-import.target.wants/zfs-import-cache.service → /lib/systemd/system/zfs-import-
cache.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-import.target → /lib/systemd/system/zfs-import.target.
Created symlink /etc/systemd/system/zfs-mount.service.wants/zfs-load-module.service → /lib/systemd/system/zfs-load-mod
ule.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-load-module.service → /lib/systemd/system/zfs-load-module.ser
vice.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-mount.service → /lib/systemd/system/zfs-mount.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-share.service → /lib/systemd/system/zfs-share.service.
Created symlink /etc/systemd/system/zfs-volumes.target.wants/zfs-volume-wait.service → /lib/systemd/system/zfs-volume-
wait.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-volumes.target → /lib/systemd/system/zfs-volumes.target.
Created symlink /etc/systemd/system/multi-user.target.wants/zfs.target → /lib/systemd/system/zfs.target.
Running in chroot, ignoring command 'daemon-reload'
Running in chroot, ignoring command 'is-active'
Running in chroot, ignoring command 'is-active'
zfs-import-scan.service is a disabled or a static unit, not starting it.
Running in chroot, ignoring command 'is-active'
Running in chroot, ignoring command 'is-active'
Running in chroot, ignoring command 'is-active'
Running in chroot, ignoring command 'is-active'
Running in chroot, ignoring command 'is-active'
Running in chroot, ignoring command 'is-active'
Running in chroot, ignoring command 'is-active'
Running in chroot, ignoring command 'start'
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-21-amd64
cryptsetup: ERROR: Couldn't resolve device rpool/ROOT/debian
cryptsetup: WARNING: Couldn't determine root device
Processing triggers for libc-bin (2.36-9+deb12u7) ...
Processing triggers for man-db (2.11.2-2) ...
Setting up zfs-zed (2.1.11-1) ...
Running in chroot, ignoring command 'daemon-reload'
Running in chroot, ignoring request.
Running in chroot, ignoring command 'show'
Created symlink /etc/systemd/system/zed.service → /lib/systemd/system/zfs-zed.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-zed.service → /lib/systemd/system/zfs-zed.service.
Running in chroot, ignoring command 'daemon-reload'
Running in chroot, ignoring command 'is-active'
Running in chroot, ignoring command 'start'
Setting up zfs-initramfs (2.1.11-1) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-21-amd64
cryptsetup: ERROR: Couldn't resolve device rpool/ROOT/debian
cryptsetup: WARNING: Couldn't determine root device
-->
<pre></pre>
: <code>apt search systemd-timesyncd</code>
<pre>
i  systemd-timesyncd                - minimalistic service to synchronize local ti
p  systemd-timesyncd:i386            - minimalistic service to synchronize local ti
</pre>
: <code>apt search dosfstools</code>
<pre>
i  dosfstools                        - utilities for making and checking MS-DOS FAT
</pre>
<pre></pre>
===== LMDE 6 OpenZFS Konfiguration vom Dateisystem nach der Installation LMDE vor dem Neustart nach der Installation LMDE =====
: <code>cat /etc/fstab</code>
<pre>
#### Static Filesystem Table File
proc    /proc  proc    defaults        0      0
</pre>
: <code>mkdosfs -F 32 -s 1 -n EFI ${DISK0}-part2</code>
<pre>
mkfs.fat 4.2 (2021-01-31)
</pre>
: <code>mkdosfs -F 32 -s 1 -n EFI ${DISK1}-part2</code>
<pre>
mkfs.fat 4.2 (2021-01-31)
</pre>
: <code>mkdir /efi0</code>
: <code>mkdir /efi1</code>
: <s><code>echo /dev/disk/by-uuid/$(blkid -s UUID -o value ${DISK1}-part2) /boot/efi vfat defaults 0 0 >> /etc/fstab</code></s>
: <code>echo ${DISK0}-part2 /efi0 vfat defaults 0 0 >> /etc/fstab</code>
: <code>echo ${DISK1}-part2 /efi1 vfat defaults 0 0 >> /etc/fstab</code>
: <s><code>echo ${DISK0}-part2 /efi vfat defaults 0 0 >> /etc/fstab</code></s>
: <s><code>echo ${DISK1}-part2 /efi vfat defaults 0 0 >> /etc/fstab</code></s>
: <s><code>cat /etc/fstab</code></s>
<pre>
#### Static Filesystem Table File
proc    /proc  proc    defaults        0      0
/dev/disk/by-uuid/A7AA-5E96 /boot/efi vfat defaults 0 0
</pre>
: <code>nano /etc/fstab</code>
<pre>
#### Static Filesystem Table File
proc    /proc  proc    defaults        0      0
/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2    /efi0 vfat defaults 0 0
/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M-part2 /efi1 vfat defaults 0 0
/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2    /efi vfat defaults 0 0
/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M-part2 /efi vfat defaults 0 0
</pre>
: <s><code>mount /boot/efi</code></s>
<pre>
mount: (hint) your fstab has been modified, but systemd still uses
      the old version; use 'systemctl daemon-reload' to reload.
</pre>
: <code>mount /efi0</code>
<pre>
mount: (hint) your fstab has been modified, but systemd still uses
      the old version; use 'systemctl daemon-reload' to reload.
</pre>
: <code>mount /efi1</code>
<pre>
mount: (hint) your fstab has been modified, but systemd still uses
      the old version; use 'systemctl daemon-reload' to reload.
</pre>
==== LMDE 6 OpenZFS Installation LMDE GUI II ====
* …
* Installation Bootloader
==== LMDE 6 OpenZFS Konfiguration nach dem Neustart nach der Installation LMDE ====
: <code>DISK1=/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R</code>
: <code>DISK2=/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M</code>
: <code>ls -l $(cat /etc/fstab | grep efi | awk '{print $1}')</code>
<pre>
lrwxrwxrwx 1 root root 10 May 29 13:09 /dev/disk/by-uuid/A7AA-5E96 -> ../../sdb2
</pre>
: <code>ls -l ${DISK1}-part2</code>
<pre>
lrwxrwxrwx 1 root root 10 May 29 13:09 /dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2 -> ../../sdb2
</pre>
: <code>ls -l ${DISK2}-part2</code>
<pre>
lrwxrwxrwx 1 root root 10 May 29 11:52 /dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M-part2 -> ../../sda2
</pre>
: <code>sudo umount /boot/efi</code>
: <code>sudo dd if=${DISK1}-part2 of=${DISK2}-part2</code>
<pre>
1048576+0 records in
1048576+0 records out
536870912 bytes (537 MB, 512 MiB) copied, 9.31548 s, 57.6 MB/s
</pre>
: <code>
<pre>
sudo efibootmgr -c -g -d ${DISK2}-part2 \
    -p 2 -L "lmde-1" -l '\EFI\debian\grubx64.efi'
</pre>
</code>
: <code>sudo mount /boot/efi</code>
: <code>diff /efi0/EFI/debian/grub.cfg /efi1/EFI/debian/grub.cfg</code>
: <code>cat /efi/EFI/debian/grub.cfg</code>
<pre>
search.fs_uuid cb660849086c6abf root hd0,gpt3 hd1,gpt3
set prefix=($root)'/BOOT/debian@/grub'
configfile $prefix/grub.cfg
</pre>
==== LMDE 6 meets OpenZFS Zusammenfassung ====
: <code>apt update</code>
: <code>sudo apt -y install ssh</code>
----
: <code>passwd</code>
----
: <s><code>ssh mint@321.321.321.321</code></s>
----
: <code>gsettings set org.gnome.desktop.media-handling automount false</code>
: <code>apt -y install gdisk zfsutils-linux</code>
: <code>DISK0=/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R</code>
: <code>DISK1=/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M</code>
: <code>swapoff -a</code>
: <code>sudo wipefs -a $DISK0</code>
: <code>sudo wipefs -a $DISK1</code>
: <code>sudo blkdiscard -f $DISK0</code>
: <code>sudo blkdiscard -f $DISK1</code>
: <code>sudo sgdisk --zap-all $DISK0</code>
: <code>sudo sgdisk --zap-all $DISK1</code>
: <code>sudo sgdisk -n2:1M:+512M -t2:EF00 $DISK0</code>
: <code>sudo sgdisk -n2:1M:+512M -t2:EF00 $DISK1</code>
: <code>sudo sgdisk -n3:0:+1G -t3:BF01 $DISK0</code>
: <code>sudo sgdisk -n3:0:+1G -t3:BF01 $DISK1</code>
: <code>sudo sgdisk -n4:0:0 -t4:BF00 $DISK0</code>
: <code>sudo sgdisk -n4:0:0 -t4:BF00 $DISK1</code>
: <code>
<pre>
sudo zpool create \
    -o compatibility=grub2 \
    -o ashift=12 \
    -o autotrim=on \
    -o cachefile=/etc/zfs/zpool.cache \
    -O devices=off \
    -O acltype=posixacl\
    -O xattr=sa \
    -O compression=lz4 \
    -O normalization=formD \
    -O relatime=on \
    -O canmount=off \
    -O mountpoint=/boot -R /target \
    bpool mirror \
    ${DISK0}-part3 \
    ${DISK1}-part3
</pre>
</code>
: <code>
<pre>
sudo zpool create \
    -O keylocation=prompt \
    -O keyformat=passphrase \
    -o ashift=12 \
    -o autotrim=on \
    -O encryption=on \
    -O acltype=posixacl \
    -O xattr=sa \
    -O dnodesize=auto \
    -O compression=lz4 \
    -O normalization=formD \
    -O relatime=on \
    -O canmount=off \
    -O mountpoint=/ -R /target \
    rpool mirror \
    ${DISK0}-part4 \
    ${DISK1}-part4
</pre>
</code>
----
: <code>sudo zfs create -o canmount=off -o mountpoint=none rpool/ROOT</code>
: <code>sudo zfs create -o canmount=off -o mountpoint=none bpool/BOOT</code>
: <code>sudo zfs create -o canmount=noauto -o mountpoint=/ rpool/ROOT/debian</code>
: <code>sudo zfs mount rpool/ROOT/debian</code>
: <code>sudo zfs create -o mountpoint=/boot bpool/BOOT/debian</code>
: <code>sudo zfs create                    rpool/home</code>
: <code>sudo zfs create -o mountpoint=/root rpool/home/root</code>
: <code>sudo chmod 700 /target/root</code>
: <code>sudo zfs create -o canmount=off    rpool/var</code>
: <code>sudo zfs create -o canmount=off    rpool/var/lib</code>
: <code>sudo zfs create                    rpool/var/log</code>
: <code>sudo zfs create                    rpool/var/spool</code>
: <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/cache</code>
: <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/lib/nfs</code>
: <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/tmp</code>
: <code>sudo chmod 1777 /target/var/tmp</code>
: <code>sudo zfs create rpool/srv</code>
: <code>sudo zfs create -o canmount=off rpool/usr</code>
: <code>sudo zfs create rpool/usr/local</code>
: <code>sudo zfs create rpool/var/lib/AccountsService</code>
: <code>sudo zfs create rpool/var/lib/NetworkManager</code>
: <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/lib/docker</code>
: <s><code>sudo zfs create rpool/var/snap</code></s>
: <code>sudo zfs create rpool/var/lib/flatpak</code>
: <s><code>sudo zfs create rpool/var/www</code></s>
: <code>sudo zfs create -o com.sun:auto-snapshot=false  rpool/tmp</code>
: <code>sudo chmod 1777 /target/tmp</code>
: <code>sudo mkdir /target/run</code>
: <code>sudo mount -t tmpfs tmpfs /target/run</code>
: <code>mkdir /target/run/lock</code>
: <code>sudo mkdir /target/run/lock</code>
----
GUI
----
: <code>sudo mkdir /target/etc/zfs</code>
: <code>sudo cp /etc/zfs/zpool.cache /target/etc/zfs/</code>
: <code>sudo hostname lab</code>
: <code>sudo nano /target/etc/hostname</code>
<pre>
#localhost.localdomain
lab
127.0.1.1      lab   
#127.0.1.1      lab.domain.tld
</pre>
: <code>sudo nano /target/etc/network/interfaces.d/wlp1s0</code>
<pre>
auto wlp1s0
iface wlp1s0 inet dhcp
</pre>
: <s><code>sudo nano /target/etc/network/interfaces.d/enp0s31f6</code></s>
<pre>
auto enp0s31f6
iface enp0s31f6 inet dhcp
</pre>
: <code>sudo mount --make-private --rbind /dev  /target/dev</code>
: <code>sudo mount --make-private --rbind /proc /target/proc</code>
: <code>sudo mount --make-private --rbind /sys  /target/sys</code>
: <code>sudo chroot /target /usr/bin/env DISK0=$DISK0 DISK1=$DISK1 bash --login</code>
----
: <code>apt update</code>
: <code>apt upgrade -y</code>
: <code>apt -y install linux-headers-generic</code>
: <code>apt -y install zfs-initramfs</code>
: <code>mkdosfs -F 32 -s 1 -n EFI ${DISK0}-part2</code>
: <code>mkdosfs -F 32 -s 1 -n EFI ${DISK1}-part2</code>
: <code>mkdir /efi0</code>
: <code>mkdir /efi1</code>
: <code>echo ${DISK0}-part2 /efi0 vfat defaults 0 0 >> /etc/fstab</code>
: <code>echo ${DISK1}-part2 /efi1 vfat defaults 0 0 >> /etc/fstab</code>
: <code>sudo nano /etc/fstab</code>
<pre>
#### Static Filesystem Table File
proc    /proc  proc    defaults        0      0
/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2    /efi0 vfat defaults 0 0
/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M-part2 /efi1 vfat defaults 0 0
#/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2    /efi vfat defaults 0 0
#/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M-part2 /efi vfat defaults 0 0
</pre>
: <code>sudo mount /efi0</code>
: <code>sudo mount /efi1</code>
: <code>sudo mount /efi</code>
----
GUI III
: Stop vor dem Neustart
----
: <code>sudo umount /efi</code>
: <code>sudo umount /efi0</code>
: <code>sudo umount /efi1</code>
: <code>sudo dd if=${DISK0}-part2 of=${DISK1}-part2</code>
: <code>sudo efibootmgr -c -g -d ${DISK0}-part2 -p 2 -L "lmde-0" -l '\EFI\debian\grubx64.efi'</code>
: <code>sudo efibootmgr -c -g -d ${DISK1}-part2 -p 2 -L "lmde-1" -l '\EFI\debian\grubx64.efi'</code>
: <code>sudo mount /efi</code>
: <code>cat /etc/fstab</code>
<pre>
#### Static Filesystem Table File
proc    /proc  proc    defaults        0      0
/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2    /efi0 vfat defaults 0 0
/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M-part2 /efi1 vfat defaults 0 0
/dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2    /efi vfat defaults 0 0
/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_500GB_S33DNX0H809148M-part2 /efi vfat defaults 0 0
</pre>

Bitte beachte, dass alle Beiträge zu Wiki StuRa HTW Dresden von anderen Mitwirkenden bearbeitet, geändert oder gelöscht werden können. Reiche hier keine Texte ein, falls du nicht willst, dass diese ohne Einschränkung geändert werden können.

Du bestätigst hiermit auch, dass du diese Texte selbst geschrieben hast oder diese von einer gemeinfreien Quelle kopiert hast (weitere Einzelheiten unter StuRa HTW Dresden:Urheberrechte). ÜBERTRAGE OHNE GENEHMIGUNG KEINE URHEBERRECHTLICH GESCHÜTZTEN INHALTE!

Bitte beantworte die folgende Frage, um diese Seite speichern zu können (weitere Informationen):

Abbrechen Bearbeitungshilfe (wird in einem neuen Fenster geöffnet)