You are not logged in.
Pages: 1
Hi all.
After the grub changes announced in arch linux main page, I'm having some troubles after update the system even after reinstall GRUB months ago.
After the announced update, my system goes blank, so I logged into a live CD session with ARCH, mounted the volumes and them intalled grub, but I don't remember if it was inside chroot or outside. After some days and another update, system goes blank again, and some days later again. So before yesterday I've updated the system and AGAIN system goes blank, and AGAIN I've logged into live cd them mounted all the partitions and installed grub inside chroot with:
grub-install --target=x86_64-efi --boot-directory=/boot --efi-directory=/boot/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.mkconfigThem the system boot up and I do all my stuff all day, THEM AFTER UPDATE and got a freeze with GNOME shell, system goes blank AGAIN, I've quit and go to bed.
Them, today, I've imagined that some old file under the BOOT or UEFI partition is causing the problem, so today I've formated both, them rebuild my fstab to match the new UUID from EFI and BOOT and reinstalled grub, changing the lines in default configuration.
To mount all and new fstab
mkfs.fat -n EFI -F32 /dev/nvme0n1p1
mkfs.ext4 -L BOOT /dev/nvme0n1p2
mkdir /mnt/boot
mkdir /mnt/boot/efi
mount /dev/nvme0n1p1 /mnt/boot/efi
mount /dev/nvme0n1p2 /mnt/boot
cryptsetup luksOpen /dev/nvme0n1p3 ARCH_LINUX
Typed password and luks opened.
mount /dev/mapper/ARCH_LINUX-root /mnt
mount /dev/mapper/ARCH_LINUX-home /mnt/home
swapon /dev/mapper/ARCH_LINUX-swap
genfstab -U /mnt >> /mnt/fstab
arch-chroot /mnt
nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 cryptdevice=/dev/nvme0n1p3:ARCH_LINUX:allow-discards quiet"
GRUB_ENABLE_CRYPTODISK=y
grub-install --target=x86_64-efi --boot-directory=/boot --efi-directory=/boot/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfgMy majors problems after yesterday are:
mkconfig does nothing, there is nothing inside grub.cfg
pacstrap outside chrroot or pacman inside chroot does nothing, only error messages about no packages updates, I've tryied pacstrat base linux after mkinitcpio error and pacman -S grub, but it doesn't work today.
mkinitcpio returrns a error
WARNING: Preset file '/etc/mkinitcpio.d/linux.preset' is empty or does not contain any preset (nano it shows a blank document).error disk lvid...but both UUID showed in lvid is correct to the the lv and vg display.
Any help is welcome.
Offline
you cant mount things in the wrong order, from what you did here the /boot and /efi partitions are replaced when /root is mounted. also there is no need for seperated /boot and /efi partitions, you can just use EFI for both.
mkdir /mnt/boot
mkdir /mnt/boot/efimount /dev/nvme0n1p1 /mnt/boot/efi
mount /dev/nvme0n1p2 /mnt/bootcryptsetup luksOpen /dev/nvme0n1p3 ARCH_LINUX
Typed password and luks opened.
mount /dev/mapper/ARCH_LINUX-root /mnt
mount /dev/mapper/ARCH_LINUX-home /mnt/home
swapon /dev/mapper/ARCH_LINUX-swap
should be:
cryptsetup luksOpen /dev/nvme0n1p3 ARCH_LINUX
Typed password and luks opened.
mount /dev/mapper/ARCH_LINUX-root /mnt
mkdir /mnt/home
mkdir /mnt/boot
mount /dev/mapper/ARCH_LINUX-home /mnt/home
mount /dev/nvme0n1p2 /mnt/boot
mkdir /mnt/boot/efi
mount /dev/nvme0n1p1 /mnt/boot/efi
swapon /dev/mapper/ARCH_LINUX-swapremove this line completely as you arent using an encrypted /boot
GRUB_ENABLE_CRYPTODISK=ytry that and see what happens
EDIT: the 'mkdir' commands are probably useless too but harmless and will just return 'dir exists'
Last edited by jonno2002 (2023-01-09 22:31:40)
Offline
I've download ARCH again and burn it to to pendrive again, to avoid any kind of writing issues, just in case.
I'll never notice the wrong order to mount the partitions, what makes sense.
So this time, I've mounted all the LVM partitions first and them mounted the BOOT and EFI, I can't use MKDIR because the folders already exist inside the root partition.
Them I've deleted FSTAB and regenerated, also reinstalled grub and error persist, grub.cfg still empty.
I also can't use pacstrap or pacman, there is a FORCE option to pacstrap and pacman reinstall things over the original system files?
I want to avid reformatting the LVM-root due to the number of software's that I already have installed.
Offline
show us what your doing, and provide errors/logs so we can help, "pacman doesnt work" is NOT an error message and tells us nothing
EDIT: show the exact process your taking and include outputs of ANY and ALL output along the way, and after the process is done provide:
ls -l /boot /boot/efi /boot/grubLast edited by jonno2002 (2023-01-09 23:04:03)
Offline
Sorry for that, my bad.
pacstrap /mnt base linux (to try to overwrite the system files)
linux: /mnt/usr/lib/modules/6.1.4-arch-1/vmllinuz exists in filesystem
Errors occurred, no package were upgraded
==> ERROR: Failed to install packages to new rootIf I try to install GRUB for example inside chroot
pacman -S grub
grub: /usr/share/man/man8/grub-sparc64-setup.8.gz exists in filesystem
Errors occurred, no package were upgraded.I just copy the last line of each list, but the list have all files related to base linux and grub and etc.
show us what your doing, and provide errors/logs so we can help, "pacman doesnt work" is NOT an error message and tells us nothing
EDIT: show the exact process your taking and include outputs of ANY and ALL output along the way, and after the process is done provide:
ls -l /boot /boot/efi /boot/grub
Everything is empty now because I deleted the /boot folder to 'fresh' install things.
Last edited by douglascast (2023-01-09 23:30:04)
Offline
Offline
Pages: 1