Editing
Linux/manual
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
"sudo du -hsx / | sort -rh | head -20" What's the output of `df -h | nc termbin.com 9999` ? And this? sudo du -sh /var /usr /lib du -sh /lib /home ==> check both lib and home as well Your /var is a bit big too, maybe log is a lot; try: du -sh /var/* | sort -h You may continue with `sudo du -sh /var/lib/* | sort -h` if you wish to pinpoint it how to purge and install efi: Okay, let's walk through the full steps start to finish to get your system booting properly again: Boot from a Debian live USB/CD in UEFI mode. Use fdisk or gdisk to verify your partition table - make sure you have partitions setup for EFI, root, and any others needed. Format the EFI partition as FAT32 if needed. Mount the root and EFI partitions: mount /dev/nvme0n1p2 /mnt # Root partition mount /dev/nvme0n1p1 /mnt/boot/efi # EFI partition Chroot into the mounted root partition: chroot /mnt /bin/bash Install the GRUB and Linux packages: apt update apt install grub-efi-amd64 grub-common linux-image-amd64 Generate an initramfs image: update-initramfs -c -k all Verify the kernel and initrd files now exist in /boot Edit /etc/fstab to match partitions if needed. Generate a GRUB config file and reinstall GRUB: grub-mkconfig -o /boot/grub/grub.cfg grub-install update-grub Reboot and verify you can boot into GRUB and then Linux! Let's take it step-by-step. Let me know if you get stuck or have any errors at any point in the process. Pissed: with every new version ubuntu IS SHIT: So on ubuntu 23.04 there is pain in all body, as they change ip static changes: It is not like classic unknown where put code, it is in yaml and it use netplan, not restarting networwking. So here is config: nano /etc/netplan/00-installer-config.yaml # This is the network config written by 'subiquity' network: ethernets: ens160: addresses: ['192.168.3.237/24'] gateway4: 192.168.3.1 nameservers: addresses: [192.168.3.1, 8.8.4.4, 8.8.8.8] search: [localdomain] version: 2 After safe and exit Now here is SHIT CATCH: to apply for getting ip: get admin rights and write: netplan apply now you have internet: ----------------------------------------------------------------------------------------------------------------------------------------------------------------- managed-keys-zone: Key 20326 for zone . is now trusted (acceptance timer complete) 2023-07-25T00:11:45.272385+00:00 ns1 named[39807]: managed-keys.bind.jnl: open: permission denied 2023-07-25T00:11:45.272407+00:00 ns1 named[39807]: managed-keys-zone: keyfetch_done:dns_journal_open -> unexpected error 2023-07-25T00:11:45.272428+00:00 ns1 named[39807]: managed-keys-zone: error during managed-keys processing (unexpected error): DNSSEC validati this is solution for ubuntu and debian sudo chown -R root:bind /var/cache/bind sudo chown -R root:bind /var/cache/bind/managed-keys.bind sudo chown -R root:bind /var/cache/bind/managed-keys.bind.jnl iptables -n -L --line-numbers iptables -D fail2ban-jailname <linenumber> rsync -aP --numeric-ids /mnt/source/ /mnt/destination/ just for confirm In case someone need to recover his hard disk: /sbin/losetup -o 537919488 /dev/loop12/dev/sda rsync -aP --numeric-ids /mnt/source/ /mnt/destination/ just for confirm
Summary:
Please note that all contributions to Bgzashtita Official wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Bgzashtita Official wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
associated-pages
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information