Diskussion:Install-Party/Debian
Zur Navigation springen
Zur Suche springen
(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
mirrored boot devices with btrfs raid1[Bearbeiten]
- https://www.complang.tuwien.ac.at/anton/btrfs-raid1.html
- https://mutschler.dev/linux/ubuntu-btrfs-raid1-20-04/
- https://unix.stackexchange.com/questions/647008/debian-is-possible-to-boot-with-a-btrfs-raid1-degraded
https://wiki.debian.org/UEFI#Force_grub-efi_installation_to_the_removable_media_path
dpkg-reconfigure grub-efi-amd64
https://docs.fedoraproject.org/en-US/quick-docs/grub2-bootloader/
dnf reinstall grub2-common
nach einer Installation von PVE[Bearbeiten]
Vergleich zwischen PVE / LMDE (und Debian)[Bearbeiten]
PVE | LMDE | Debian |
---|---|---|
Netzwerk Konfiguration | ||
/etc/network/interfaces | ||
/etc/hosts | ||
Netzwerk Dienst | ||
systemctl status networking.service |
systemctl status NetworkManager.service |
|
Pakete Konfiguration | ||
/etc/apt/sources.list /etc/apt/sources.list.d/ | ||
/etc/apt/sources.list.d/official-package-repositories.list |
||
(ohne Abhaengigkeiten) installierte Pakete apt-mark showmanual apt list --manual-installed | ||
- dpkg --get-selections
auf lmde
- dpkg --set-selections
auf debian (pve)
- apt-get dselect-upgrade
auf debian (pve)
PVE (to Debian) to LMDE[Bearbeiten]
ala https://forum.proxmox.com/threads/133736/ , nur richtig(er)
apt -y install linuxmint-keyring
/etc/apt/sources.list.d/official-package-repositories.list