1.9 KiB
Executable File
1.9 KiB
Executable File
author | date | title | tags | uuid | |
---|---|---|---|---|---|
Alvie Rahman | \today | Linux |
|
8ef11516-4afd-4f80-abb8-bdce045e8b65 |
user stuff
add user to group
usermod -a -G group user
change primary user group
usermod -g group user
help i think my device shut down after deleting the current kernel and before installing the second (no entries in systemd-boot/grub/)
-
boot into a live usb of current disto
-
mount the root partition to
/mnt
and the boot partition to the appropriate folder (check fstab which should be in/mnt/etc/fstab
, if it says/efi
, mount it to/mnt/efi
) -
chroot into the mounted filesystem:
on arch based systems you can simply run:
arch-chroot /mnt
on non arch based systems1:
mount -t proc /proc /mnt/proc/ mount -t sysfs /sys /mnt/ys/ mount --rbind /dev /mnt/dev/ # only if using uefi mount --rbind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars/ # for internet access cp /etc/resolv.conf /mnt/etc/resolv.conf chroot /mnt /bin/bash
-
the system can now be force updated/kernel images can be generated
on arch based systems2:
# reinstall all current packages pacman -Qqen > /root/pkgs.txt # list all installed packages pacman -S $(< /root/pkgs.txt) # reinstall all installed packages rm /root/pkgs.txt # clean up # reinstall dependencies (if there are issues) pacman -Qqdn > /root/deps.txt # list all installed dependencies pacman -S $(< /root/deps.txt) # reinstall all installed dependencies rm /root/deps.txt # clean up