You are not logged in.
Pages: 1
I recently had a problem with my laptop's grub and I wanted to reconfigure it via chroot, but no matter what I do, it doesn't work. I tried to get into the chroot space via an arch linux bootable usb. Here are my disk specs:
❯ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 512M 0 part /boot
├─sda2 8:2 0 100G 0 part /
├─sda3 8:3 0 265.3G 0 part /home
└─sda4 8:4 0 100G 0 part
sdb 8:16 1 7.4G 0 disk
├─sdb1 8:17 1 7.3G 0 part
└─sdb2 8:18 1 32M 0 part
zram0 254:0 0 3.8G 0 disk [SWAP]As it is known, the EFI partition is sda1, the root partition is sda2, and the home partition is sda3. I entered the following commands:
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
mount /dev/sda3 /mnt/homethen
arch-chroot /mntbut the terminal shows this:
[root@archiso /]#_so it means I'm still on my archiso
Then I also added these commands:
mount -t proc /proc /mnt/proc
mount --rbind /sys /mnt/sys
mount --rbind /dev /mnt/devBut the problem is still there.
I also tried the normal chroot and it didn't work.
chroot /mnt /bin/bashMeanwhile, my Arch ISO is the latest version and is healthy. Because I installed Arch on another laptop a few minutes ago
Please help. I have important files!
Last edited by mercad (2024-08-23 20:50:55)
Offline
No it does not mean that. I just verified this with my own computer, arch-chroot will show exactly what you've seen. Instead on relying on the hostname, you should look around the file system.
Offline
No it does not mean that. I just verified this with my own computer, arch-chroot will show exactly what you've seen. Instead on relying on the hostname, you should look around the file system.
So, if the chroot was done correctly, I should have been able to access my system information and files. But none of them are available. I also couldn't install grub as usual.
Offline
You made it look like you saw "archiso" as the hostname in the chroot and gave up. Do you have actual error messages indicating that something isn't right?
You don't need the chroot to back up your files. Mounting the drive should be enough.
Offline
The lsblk Output suggests tha sda2 ist the current root Partition, so either this is from a successful chroot or you Just booted into the installed system?
Offline
Solved thanks!
Offline
Solved how?
https://wiki.archlinux.org/title/Genera … way_street
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
Pages: 1