Diskussion:Install-Party/Debian: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Neuer Abschnitt →mirrored boot devices with btrfs raid1) |
|||
Zeile 107: | Zeile 107: | ||
== mirrored boot devices with btrfs raid1 == | == mirrored boot devices with btrfs raid1 == | ||
https://www.complang.tuwien.ac.at/anton/btrfs-raid1.html | * https://www.complang.tuwien.ac.at/anton/btrfs-raid1.html | ||
* https://mutschler.dev/linux/ubuntu-btrfs-raid1-20-04/ |
Version vom 4. Oktober 2022, 17:24 Uhr
(default) crypted disk layout
- während der Installation
SCSI1 (0,0,0) (sda) | |||||
---|---|---|---|---|---|
#1 | primary | 254.8 MB | F | ext2 | /boot |
#5 | logical | Rest | K | crypto | (sd5_crypt) |
Encrypted volume (sd5_crypt) | |||||
#1 | Rest | K | lvm | ||
LVM VG `hostname`-vg, LV home | |||||
#1 | Rest - root - swap | f | ext4 | /home | |
LVM VG `hostname`-vg, LV root | |||||
#1 | 30.0 GB | f | ext4 | / | |
LVM VG `hostname`-vg, LV swap_1 | |||||
#1 | 4.2 GB | f | ext4 | swap |
- nach der Installation
cat /etc/fstab
/dev/mapper/debian--vg-root / ext4 errors=remount-ro 0 1 /dev/sda1 /boot ext2 defaults 0 2 /dev/mapper/debian--vg-home /home ext4 defaults 0 2 /dev/mapper/debian--vg-swap_1 none swap sw 0 0
cat /etc/crypttab
sda5_crypt /dev/sda5 none luks
anders
cat /etc/default/grub
####GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX_DEFAULT="quiet splash kopt=root=/dev/mapper/debian--vg-root"
cat /etc/crypttab
cat /etc/fstab
####/dev/mapper/debian--vg-root / btrfs subvol=@,defaults,noatime 0 0 /dev/mapper/debian--vg-home / btrfs subvol=@,defaults,noatime 0 0 /dev/sda1 /boot ext2 defaults 0 2 ####/dev/mapper/debian--vg-home /home ext4 defaults 0 2 UUID=69b9bfbd-51fa-451a-b687-5d5bf7f2a404 /home btrfs subvol=@home,defaults,noatime 0 0 UUID=69b9bfbd-51fa-451a-b687-5d5bf7f2a404 /var btrfs subvol=@var,defaults,noatime 0 0 UUID=69b9bfbd-51fa-451a-b687-5d5bf7f2a404 /.snapshots btrfs subvol=@snapshots,defaults,noatime 0 0 /dev/mapper/debian--vg-swap_1 none swap sw 0 0 # UNCONFIGURED FSTAB FOR BASE SYSTEM proc /proc proc defaults 0 0
sudo btrfs subvolume list -p /target
btrfs subvolume set-default VOL-ID /target
chroot in ein debian mit lvm und btrfs
sudo mkdir /mnt/3b sudo mkdir /mnt/3b/boot sudo mount /dev/sda2 /mnt/3b/boot sudo mkdir /mnt/3b/home sudo mount /dev/lap-vg/home /mnt/3b/home sudo mount /dev/lap-vg/root /mnt/3b sudo mkdir /mnt/3b/boot/efi sudo mount /dev/sda1 /mnt/3b/boot/efi sudo mount -t proc none /mnt/3b/proc sudo mount -o bind /dev /mnt/3b/dev sudo mount -o bind /run /mnt/3b/run sudo chroot /mnt/3b /bin/bash
gezielt installierte Pakete
apt list --manual-installed
apt-mark showmanual