Aktuelle Version |
Dein Text |
Zeile 277: |
Zeile 277: |
| == LMDE 6 meets OpenZFS == | | == LMDE 6 meets OpenZFS == |
|
| |
|
| https://linuxmint.com/download_lmde.php
| | ==== LMDE 6 OpenZFS Annahmen ==== |
| : 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 ===== | | ===== Verwendung mehrerer Geräte für Massenspeicher ===== |
Zeile 296: |
Zeile 292: |
| modprobe: ERROR: could not insert 'zfs': Key was rejected by service | | modprobe: ERROR: could not insert 'zfs': Key was rejected by service |
| </pre> | | </pre> |
| | |
|
| |
|
| ==== LMDE 6 OpenZFS Vorbereitung ==== | | ==== LMDE 6 OpenZFS Vorbereitung ==== |
| | |
| | |
| | ---- |
|
| |
|
| mit dem Internet verbinden | | mit dem Internet verbinden |
Zeile 332: |
Zeile 332: |
|
| |
|
| : <code>ssh mint@321.321.321.321</code> | | : <code>ssh mint@321.321.321.321</code> |
| <pre></pre> | | <pre> |
| | </pre> |
|
| |
|
| ---- | | ---- |
Zeile 344: |
Zeile 345: |
| <pre></pre> | | <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> | | : <code>gsettings set org.gnome.desktop.media-handling automount false</code> |
| <pre> | | <pre> |
| </pre> | | </pre> |
|
| |
|
| : <s><code>apt -y install debootstrap gdisk zfsutils-linux</code></s> | | : <code>apt -y install debootstrap gdisk zfsutils-linux</code> |
| : <code>apt -y install gdisk zfsutils-linux</code>
| |
| <pre> | | <pre> |
| </pre> | | </pre> |
|
| |
|
| ==== LMDE 6 OpenZFS Einrichtung Geräte für Massenspeicher ==== | | ==== 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> | | : <code>ls -la /dev/disk/by-id/</code> |
Zeile 388: |
Zeile 377: |
| </pre> | | </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>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>swapoff -a</code> | | : <code>swapoff -a</code> |
|
| |
|
| : <code>cat /proc/mdstat</code> | | : <code>cat /proc/mdstat |
| | </code> |
| <pre> | | <pre> |
| Personalities : | | Personalities : |
Zeile 399: |
Zeile 390: |
| </pre> | | </pre> |
|
| |
|
| : <code>sudo wipefs -a $DISK0</code> | | |
| | : <code>sudo wipefs -a $DISK1</code> |
| <pre> | | <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 0x00000200 (gpt): 45 46 49 20 50 41 52 54 |
Zeile 406: |
Zeile 398: |
| /dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R: calling ioctl to re-read partition table: Success | | /dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R: calling ioctl to re-read partition table: Success |
| </pre> | | </pre> |
| : <code>sudo wipefs -a $DISK1</code> | | : <code>sudo wipefs -a $DISK2</code> |
| <pre> | | <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 0x00000200 (gpt): 45 46 49 20 50 41 52 54 |
Zeile 414: |
Zeile 406: |
| </pre> | | </pre> |
|
| |
|
| : <code>sudo blkdiscard -f $DISK0</code> | | : <code>sudo blkdiscard -f $DISK1</code> |
| <pre> | | <pre> |
| blkdiscard: Operation forced, data will be lost! | | blkdiscard: Operation forced, data will be lost! |
| </pre> | | </pre> |
| : <code>sudo blkdiscard -f $DISK1</code> | | : <code>sudo blkdiscard -f $DISK2</code> |
| <pre> | | <pre> |
| blkdiscard: Operation forced, data will be lost! | | blkdiscard: Operation forced, data will be lost! |
| </pre> | | </pre> |
|
| |
|
| : <code>sudo sgdisk --zap-all $DISK0</code> | | : <code>sudo sgdisk --zap-all $DISK1</code> |
| <pre> | | <pre> |
| Creating new GPT entries in memory. | | Creating new GPT entries in memory. |
Zeile 429: |
Zeile 421: |
| other utilities. | | other utilities. |
| </pre> | | </pre> |
| : <code>sudo sgdisk --zap-all $DISK1</code> | | : <code>sudo sgdisk --zap-all $DISK2</code> |
| <pre> | | <pre> |
| Creating new GPT entries in memory. | | Creating new GPT entries in memory. |
Zeile 436: |
Zeile 428: |
| </pre> | | </pre> |
|
| |
|
| : <code>sudo sgdisk -n2:1M:+512M -t2:EF00 $DISK0</code> | | : <code>sudo sgdisk -n2:1M:+512M -t2:EF00 $DISK1</code> |
| <pre> | | <pre> |
| Creating new GPT entries in memory. | | Creating new GPT entries in memory. |
| The operation has completed successfully. | | The operation has completed successfully. |
| </pre> | | </pre> |
| : <code>sudo sgdisk -n2:1M:+512M -t2:EF00 $DISK1</code> | | : <code>sudo sgdisk -n2:1M:+512M -t2:EF00 $DISK2</code> |
| <pre> | | <pre> |
| Creating new GPT entries in memory. | | Creating new GPT entries in memory. |
Zeile 447: |
Zeile 439: |
| </pre> | | </pre> |
|
| |
|
| : <code>sudo sgdisk -n3:0:+1G -t3:BF01 $DISK0</code> | | : <code>sudo sgdisk -n3:0:+1G -t3:BF01 $DISK1</code> |
| <pre> | | <pre> |
| The operation has completed successfully. | | The operation has completed successfully. |
| </pre> | | </pre> |
| : <code>sudo sgdisk -n3:0:+1G -t3:BF01 $DISK1</code> | | : <code>sudo sgdisk -n3:0:+1G -t3:BF01 $DISK2</code> |
| <pre> | | <pre> |
| The operation has completed successfully. | | The operation has completed successfully. |
| </pre> | | </pre> |
|
| |
|
| : <code>sudo sgdisk -n4:0:0 -t4:BF00 $DISK0</code> | | : <code>sudo sgdisk -n4:0:0 -t4:BF00 $DISK1</code> |
| <pre> | | <pre> |
| The operation has completed successfully. | | The operation has completed successfully. |
| </pre> | | </pre> |
| : <code>sudo sgdisk -n4:0:0 -t4:BF00 $DISK1</code> | | : <code>sudo sgdisk -n4:0:0 -t4:BF00 $DISK2</code> |
| <pre> | | <pre> |
| The operation has completed successfully. | | The operation has completed successfully. |
Zeile 479: |
Zeile 471: |
| -O relatime=on \ | | -O relatime=on \ |
| -O canmount=off \ | | -O canmount=off \ |
| -O mountpoint=/boot -R /target \ | | -O mountpoint=/boot -R /mnt \ |
| bpool mirror \ | | bpool mirror \ |
| ${DISK0}-part3 \ | | ${DISK1}-part3 \ |
| ${DISK1}-part3 | | ${DISK2}-part3 |
| </pre> | | </pre> |
| </code> | | </code> |
Zeile 490: |
Zeile 482: |
| : <code> | | : <code> |
| <pre> | | <pre> |
| sudo zpool create \
| | zpool create \ |
| -O keylocation=prompt \ | | -O keylocation=prompt \ |
| -O keyformat=passphrase \ | | -O keyformat=passphrase \ |
Zeile 503: |
Zeile 495: |
| -O relatime=on \ | | -O relatime=on \ |
| -O canmount=off \ | | -O canmount=off \ |
| -O mountpoint=/ -R /target \ | | -O mountpoint=/ -R /mnt \ |
| rpool mirror \ | | rpool mirror \ |
| ${DISK0}-part4 \ | | ${DISK1}-part4 \ |
| ${DISK1}-part4 | | ${DISK2}-part4 |
| </pre> | | </pre> |
| </code> | | </code> |
Zeile 522: |
Zeile 514: |
| : <code>sudo zfs create rpool/home</code> | | : <code>sudo zfs create rpool/home</code> |
| : <code>sudo zfs create -o mountpoint=/root rpool/home/root</code> | | : <code>sudo zfs create -o mountpoint=/root rpool/home/root</code> |
| : <code>sudo chmod 700 /target/root</code> | | : <code>sudo chmod 700 /mnt/root</code> |
| : <code>sudo zfs create -o canmount=off rpool/var</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 -o canmount=off rpool/var/lib</code> |
Zeile 531: |
Zeile 523: |
| : <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/lib/nfs</code> |
| : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/tmp</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 chmod 1777 /mnt/var/tmp</code> |
|
| |
|
| : <code>sudo zfs create rpool/srv</code> | | : <code>sudo zfs create rpool/srv |
|
| |
|
| : <code>sudo zfs create -o canmount=off rpool/usr</code> | | : <code>sudo zfs create -o canmount=off rpool/usr |
| : <code>sudo zfs create rpool/usr/local</code> | | : <code>sudo zfs create rpool/usr/local</code> |
|
| |
|
Zeile 543: |
Zeile 535: |
| : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/var/lib/docker</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/snap</code> |
| : <code>sudo zfs create rpool/var/lib/flatpak</code>
| |
|
| |
|
| : <s><code>sudo zfs create rpool/var/www</code></s> | | : <code>sudo zfs create rpool/var/www</code> |
|
| |
|
| : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/tmp</code> | | : <code>sudo zfs create -o com.sun:auto-snapshot=false rpool/tmp</code> |
| : <code>sudo chmod 1777 /target/tmp</code> | | : <code>sudo chmod 1777 /mnt/tmp</code> |
| | | <!-- |
| ---- | | cannot create 'rpool/ROOT': dataset already exists |
| | | cannot create 'bpool/BOOT': dataset already exists |
| : <code>sudo mkdir /target/run</code> | | cannot create 'rpool/ROOT/debian': dataset already exists |
| : <code>sudo mount -t tmpfs tmpfs /target/run</code> | | cannot mount 'rpool/ROOT/debian': filesystem already mounted |
| | | cannot create 'bpool/BOOT/debian': dataset already exists |
| : <code>mkdir /target/run/lock</code> | | mint@mint:~$ sudo zfs create -o canmount=off -o mountpoint=none rpool/ROOT |
| | | cannot create 'rpool/ROOT': dataset already exists |
| : <s><code>sudo debootstrap bookworm /target/</code></s> | | mint@mint:~$ mkdir /mnt/run |
| <pre>
| | mkdir: cannot create directory ‘/mnt/run’: Permission denied |
| | mint@mint:~$ sudo mkdir /mnt/run |
| | mint@mint:~$ sudo mount -t tmpfs tmpfs /mnt/run |
| | mint@mint:~$ mkdir /mnt/run/lock |
| | mint@mint:~$ sudo debootstrap bookworm /mnt/ |
| I: Target architecture can be executed | | I: Target architecture can be executed |
| I: Retrieving InRelease | | I: Retrieving InRelease |
Zeile 569: |
Zeile 564: |
| I: Resolving dependencies of base packages... | | I: Resolving dependencies of base packages... |
| ^CE: Interrupt caught ... exiting | | ^CE: Interrupt caught ... exiting |
| </pre>
| |
|
| |
|
| ==== LMDE 6 OpenZFS Installation LMDE GUI I ==== | | ==== LMDE 6 OpenZFS Installation LMDE GUI I ==== |
|
| |
|
| : <code>sudo ls /target/</code> | | mint@mint:~$ mint |
| <pre>
| | mintbackup mint-iso-verify mint-remove-application mintupdate-cli |
| | mintBackup mintlocale mintreport mintupdate-launcher |
| | mint-drivers mintlocale-im mintreport-tray mintupdate-tool |
| | mintinstall mintmenu mintsources mintwelcome |
| | mintinstall-fp-handler mint-refresh-cache mintstick mintwelcome-launcher |
| | mintinstall-remove-app mint-release-upgrade mintupdate mint-xfce-delete |
| | mintinstall-update-pkgcache mint-release-upgrade-root mintupdate-automation |
| | mint@mint:~$ mint |
| | mintbackup mint-iso-verify mint-remove-application mintupdate-cli |
| | mintBackup mintlocale mintreport mintupdate-launcher |
| | mint-drivers mintlocale-im mintreport-tray mintupdate-tool |
| | mintinstall mintmenu mintsources mintwelcome |
| | mintinstall-fp-handler mint-refresh-cache mintstick mintwelcome-launcher |
| | mintinstall-remove-app mint-release-upgrade mintupdate mint-xfce-delete |
| | mintinstall-update-pkgcache mint-release-upgrade-root mintupdate-automation |
| | mint@mint:~$ man mintinstall |
| | No manual entry for mintinstall |
| | mint@mint:~$ sudo ls /mnt/ |
| boot debootstrap home root run srv tmp usr var | | boot debootstrap home root run srv tmp usr var |
| </pre>
| | mint@mint:~$ sudo rm -rf /mnt/ |
| | | rm: cannot remove '/mnt/srv': Device or resource busy |
| : <code>sudo rm -rf /target/</code> | | rm: cannot remove '/mnt/tmp': Device or resource busy |
| <pre>
| | rm: cannot remove '/mnt/root': Device or resource busy |
| rm: cannot remove '/target/srv': Device or resource busy | | rm: cannot remove '/mnt/boot': Device or resource busy |
| rm: cannot remove '/target/tmp': Device or resource busy | | rm: cannot remove '/mnt/var/log': Device or resource busy |
| rm: cannot remove '/target/root': Device or resource busy | | rm: cannot remove '/mnt/var/tmp': Device or resource busy |
| rm: cannot remove '/target/boot': Device or resource busy | | rm: cannot remove '/mnt/var/www': Device or resource busy |
| rm: cannot remove '/target/var/log': Device or resource busy | | rm: cannot remove '/mnt/var/snap': Device or resource busy |
| rm: cannot remove '/target/var/tmp': Device or resource busy | | rm: cannot remove '/mnt/var/lib/NetworkManager': Device or resource busy |
| rm: cannot remove '/target/var/www': Device or resource busy | | rm: cannot remove '/mnt/var/lib/AccountsService': Device or resource busy |
| rm: cannot remove '/target/var/snap': Device or resource busy | | rm: cannot remove '/mnt/var/lib/docker': Device or resource busy |
| rm: cannot remove '/target/var/lib/NetworkManager': Device or resource busy | | rm: cannot remove '/mnt/var/lib/nfs': Device or resource busy |
| rm: cannot remove '/target/var/lib/AccountsService': Device or resource busy | | rm: cannot remove '/mnt/var/spool': Device or resource busy |
| rm: cannot remove '/target/var/lib/docker': Device or resource busy | | rm: cannot remove '/mnt/var/cache': Device or resource busy |
| rm: cannot remove '/target/var/lib/nfs': Device or resource busy | | rm: cannot remove '/mnt/run': Device or resource busy |
| rm: cannot remove '/target/var/spool': Device or resource busy | | rm: cannot remove '/mnt/usr/local': Device or resource busy |
| rm: cannot remove '/target/var/cache': Device or resource busy | | rm: cannot remove '/mnt/home': Device or resource busy |
| rm: cannot remove '/target/run': Device or resource busy | | mint@mint:~$ sudo ls /mnt/ |
| rm: cannot remove '/target/usr/local': Device or resource busy | | boot home root run srv tmp usr var |
| rm: cannot remove '/target/home': Device or resource busy | | mint@mint:~$ ln -s /target /mnt/ |
| </pre>
| | ln: failed to create symbolic link '/mnt/target': Permission denied |
| | | mint@mint:~$ sudo ln -s /target /mnt/ |
| : <s><code>sudo ln -s /mnt /target</code></s> | | mint@mint:~$ ln -s /mnt /target |
| | | ln: failed to create symbolic link '/target': Permission denied |
| : <code>ls /boot/</code> | | mint@mint:~$ sudo ln -s /mnt /target |
| <pre>
| | mint@mint:~$ ls /boot/ |
| | 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 |
| | mint@mint:~$ ls /boot/ |
| 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 | | 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>
| | mint@mint:~$ ls /mnt/ |
| | |
| : <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 | | bin/ home/ lib32/ mnt/ run/ target/ vmlinuz |
| boot/ initrd.img lib64/ opt/ sbin/ tmp/ vmlinuz.old | | boot/ initrd.img lib64/ opt/ sbin/ tmp/ vmlinuz.old |
| dev/ initrd.img.old libx32/ proc/ srv/ usr/ | | dev/ initrd.img.old libx32/ proc/ srv/ usr/ |
| etc/ lib/ media/ root/ sys/ var/ | | etc/ lib/ media/ root/ sys/ var/ |
| </pre>
| | mint@mint:~$ ls /mnt/home/ |
| | |
| : <code>ls /target/home/</code> | |
| <pre>
| |
| vater | | vater |
| </pre>
| | mint@mint:~$ ls /target |
| | |
| : <code>ls /target</code> | |
| <pre>
| |
| bin dev home initrd.img.old lib32 libx32 mnt proc run srv target usr vmlinuz | | 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 | | boot etc initrd.img lib lib64 media opt root sbin sys tmp var vmlinuz.old |
| </pre>
| | mint@mint:~$ ls /target/b |
| | | bin/ boot/ |
| : <code>ls /target/boot/</code> | | mint@mint:~$ ls /target/b |
| <pre>
| | bin/ boot/ |
| | mint@mint:~$ ls /target/b |
| | bin/ boot/ |
| | mint@mint:~$ ls /target/boot/ |
| 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 | | 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>
| | mint@mint:~$ ls /target/etc/ |
| | |
| : <code>ls /target/etc/</code> | |
| <pre>
| |
| Display all 240 possibilities? (y or n) | | Display all 240 possibilities? (y or n) |
| </pre>
| | mint@mint:~$ sudo mkdir /mnt/etc/zfs |
| | | mint@mint:~$ cp /etc/zfs/zpool.cache /mnt/etc/zfs/ |
| : <code>sudo mkdir /target/etc/zfs</code> | | cp: cannot create regular file '/mnt/etc/zfs/zpool.cache': Permission denied |
| : <code>sudo cp /etc/zfs/zpool.cache /target/etc/zfs/</code> | | mint@mint:~$ sudo cp /etc/zfs/zpool.cache /mnt/etc/zfs/ |
| | | mint@mint:~$ cat /mnt/etc/hostname |
| : <code>cat /target/etc/hostname</code> | |
| <pre>
| |
| localhost.localdomain | | localhost.localdomain |
| </pre>
| | mint@mint:~$ hostname lab |
| | | hostname: you must be root to change the host name |
| : <code>sudo hostname lab</code> | | mint@mint:~$ sudo hostname lab |
| | | mint@mint:~$ sudo hostname > /mnt/etc/hostname |
| : <code>sudo nano /target/etc/hostname</code> | | -bash: /mnt/etc/hostname: Permission denied |
| <pre>
| | mint@mint:~$ sudo nano /mnt/etc/hostname |
| lab
| | mint@mint:~$ ip addr show |
| #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 | | 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 | | link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 |
Zeile 693: |
Zeile 668: |
| inet6 fe80::35b5:bbbc:9e8d:4443/64 scope link noprefixroute | | inet6 fe80::35b5:bbbc:9e8d:4443/64 scope link noprefixroute |
| valid_lft forever preferred_lft forever | | valid_lft forever preferred_lft forever |
| </pre>
| | mint@mint:~$ cat /mnt/etc/network/interfaces |
| | | interfaces interfaces.d/ |
| : <code>ls /target/etc/network/interfaces.d/</code> | | mint@mint:~$ ls /mnt/etc/network/interfaces.d/ |
| | | mint@mint:~$ sudo nano /mnt/etc/network/interfaces.d/wlp1s0 |
| : <code>sudo nano /target/etc/network/interfaces.d/wlp1s0</code> | | mint@mint:~$ sudo nano /mnt/etc/network/interfaces.d/enp0s31f6 |
| <pre>
| | mint@mint:~$ sudo ls /mnt/etc/apt/sources.list.d/ |
| auto wlp1s0
| | official-package-repositories.list |
| iface wlp1s0 inet dhcp
| | mint@mint:~$ sudo cat /mnt/etc/apt/sources.list.d/official-package-repositories.list |
| </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. | | # Do not edit this file manually, use Software Sources instead. |
|
| |
|
Zeile 719: |
Zeile 685: |
|
| |
|
| deb https://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware | | deb https://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware |
| </pre>
| | mint@mint:~$ sudo mount --make-private --rbind /dev /mnt/dev |
| | mint@mint:~$ sudo mount --make-private --rbind /proc /mnt/proc |
| | mint@mint:~$ sudo mount --make-private --rbind /sys /mnt/sys |
| | mint@mint:~$ chroot /mnt /usr/bin/env DISK=$DISK1 bash --login |
| | chroot: cannot change root directory to '/mnt': Operation not permitted |
| | mint@mint:~$ sudo chroot /mnt /usr/bin/env DISK1=$DISK1 bash --login |
|
| |
|
| : <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> | | : <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> | | <pre></pre> |
|
| |
|
Zeile 742: |
Zeile 702: |
| locale::facet::_S_create_c_locale name not valid | | locale::facet::_S_create_c_locale name not valid |
| i console-setup - console font and keymap setup program | | i console-setup - console font and keymap setup program |
| | v console-setup:i386 - |
| | p console-setup-freebsd - FreeBSD specific part of console-setup |
| | i console-setup-linux - Linux specific part of console-setup |
| | p console-setup-mini - console font and keymap setup program - redu |
| </pre> | | </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> | | : <s><code>apt install --yes console-setup locales</code></s> |
Zeile 795: |
Zeile 747: |
| <pre></pre> | | <pre></pre> |
|
| |
|
| : <s><code>apt -y install dpkg-dev linux-headers-generic linux-image-generic</code></s> | | : <code>apt -y install dpkg-dev linux-headers-generic linux-image-generic</code> |
| <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></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> | | : <code>apt install --yes zfs-initramfs</code> |
| <pre></pre> | | <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> | | : <code>apt search systemd-timesyncd</code> |
Zeile 1.128: |
Zeile 764: |
| <pre> | | <pre> |
| i dosfstools - utilities for making and checking MS-DOS FAT | | i dosfstools - utilities for making and checking MS-DOS FAT |
| </pre>
| | p dosfstools:i386 - utilities for making and checking MS-DOS FAT |
| <pre></pre>
| | </code> |
|
| |
|
| | | : <code>nano /etc/fstab</code> |
| ===== LMDE 6 OpenZFS Konfiguration vom Dateisystem nach der Installation LMDE vor dem Neustart nach der Installation LMDE =====
| |
| | |
| : <code>cat /etc/fstab</code> | |
| <pre> | | <pre> |
| #### Static Filesystem Table File | | #### Static Filesystem Table File |
Zeile 1.140: |
Zeile 773: |
| </pre> | | </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> | | : <code>mkdosfs -F 32 -s 1 -n EFI ${DISK1}-part2</code> |
| <pre> | | <pre> |
Zeile 1.149: |
Zeile 778: |
| </pre> | | </pre> |
|
| |
|
| : <code>mkdir /efi0</code> | | : <code>mkdir /boot/efi</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> |
| : <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> | | <pre> |
| #### Static Filesystem Table File
| | echo /dev/disk/by-uuid/$(blkid -s UUID -o value ${DISK1}-part2) \ |
| proc /proc proc defaults 0 0
| | /boot/efi vfat defaults 0 0 >> /etc/fstab</code> |
| /dev/disk/by-uuid/A7AA-5E96 /boot/efi vfat defaults 0 0 | |
| </pre> | | </pre> |
| | </code> |
|
| |
|
| : <code>nano /etc/fstab</code> | | : <code>cat /etc/fstab</code> |
| <pre> | | <pre> |
| #### Static Filesystem Table File | | #### Static Filesystem Table File |
| proc /proc proc defaults 0 0 | | 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-uuid/A7AA-5E96 /boot/efi 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> | | </pre> |
|
| |
|
| : <s><code>mount /boot/efi</code></s> | | : <code>mount /boot/efi</code> |
| <pre> | | <pre> |
| mount: (hint) your fstab has been modified, but systemd still uses | | mount: (hint) your fstab has been modified, but systemd still uses |
Zeile 1.181: |
Zeile 800: |
| </pre> | | </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 ==== | | ==== LMDE 6 OpenZFS Installation LMDE GUI II ==== |
|
| |
|
| * …
| | <!-- |
| * Installation Bootloader
| | : <code></code> |
| | |
| ==== 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> | | <pre> |
| lrwxrwxrwx 1 root root 10 May 29 13:09 /dev/disk/by-id/ata-Samsung_SSD_750_EVO_500GB_S363NWAH718728R-part2 -> ../../sdb2
| |
| </pre> | | </pre> |
|
| |
|
| : <code>ls -l ${DISK2}-part2</code> | | : <code></code> |
| <pre> | | <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> | | </pre> |
|
| |
|
| : <code>sudo umount /boot/efi</code> | | : <code></code> |
| | |
| : <code>sudo dd if=${DISK1}-part2 of=${DISK2}-part2</code>
| |
| <pre> | | <pre> |
| 1048576+0 records in
| |
| 1048576+0 records out
| |
| 536870912 bytes (537 MB, 512 MiB) copied, 9.31548 s, 57.6 MB/s
| |
| </pre> | | </pre> |
|
| |
|
| : <code> | | : <code></code> |
| <pre> | | <pre> |
| sudo efibootmgr -c -g -d ${DISK2}-part2 \
| |
| -p 2 -L "lmde-1" -l '\EFI\debian\grubx64.efi'
| |
| </pre> | | </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> | | : <code></code> |
| <pre> | | <pre> |
| search.fs_uuid cb660849086c6abf root hd0,gpt3 hd1,gpt3
| |
| set prefix=($root)'/BOOT/debian@/grub'
| |
| configfile $prefix/grub.cfg
| |
| </pre> | | </pre> |
|
| |
|
| ==== LMDE 6 meets OpenZFS Zusammenfassung ====
| | : <code></code> |
| | |
| : <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> | | <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> | | </pre> |
| | --> |