Diskussion:Install-Party/Debian

Aus Wiki StuRa HTW Dresden
Wechseln zu: Navigation, Suche

(default) crypted disk layout[Bearbeiten]

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[Bearbeiten]

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[Bearbeiten]

apt list --manual-installed
apt-mark showmanual