You are not logged in.

#1 2020-11-03 19:13:56

prismof
Member
Registered: 2020-11-03
Posts: 2

Problem after reboot of arch linux installation

Hi to everyone!
I am trying to install Arch Linux on my laptop. I've followed the official Arch Linux guide that explains how to install Arch Linux but after the reboot, I've encountered the following error:

error: no such partition.
Entering rescue mode...

Note that I've created two primary partitions on /dev/sda, the first is swap partition and the second is for root. What I am doing wrong?

Offline

#2 2020-11-03 20:47:48

nicholas
Member
Registered: 2012-07-22
Posts: 39

Re: Problem after reboot of arch linux installation

From my experience with that error I would say that the partition identifier in your GRUB config points to a path/UUID/etc. that does not exist.
Perhaps it wasn't generated properly while installing or if you're using an encrypted system, perhaps it mapped the unencrypted volumes instead of encrypted volumes (e.g. a cryptdevice GRUB_CMDLINE_LINUX parameter is needed for encrypted systems).
These are just some ideas, not answers.

It looks like you're being "successfully" dumped into rescue mode. That's not the end of the line, if you don't mind having a reduced set of programs to work with.

Personally, I would look around (`ls`) the /dev/disk folders for your devices and try and get an understanding of what the kernel sees at boot.
You can optionally manually mount your root (/dev/sda2 per your implication) to /new_root, swapon your swap and exit the rescue prompt to boot into your system.

If that works, just create a new GRUB config with the right settings (`grub-mkconfig -o`).

Last edited by nicholas (2020-11-03 20:48:23)

Offline

#3 2020-11-04 08:21:22

prismof
Member
Registered: 2020-11-03
Posts: 2

Re: Problem after reboot of arch linux installation

I checked what I have by using 'ls' and the result is:
(hd0) (hd0,msdos2) (hd0,msdos1)
then I checked all the partition with 'ls (hd0,msdosX)' and with the msdos2 said that is formatted in ext4 so that's should be the root partition that I've done during installation. It seems that I can't find the root at all because if I search here with 'ls (hd0,msdosX)/boot/grub' it says that there is nothing like this. I don't understand how I should manually mount my root, and create a new grub config.

Offline

#4 2020-11-04 15:22:53

nicholas
Member
Registered: 2012-07-22
Posts: 39

Re: Problem after reboot of arch linux installation

Ah, then that output from above isn't from linux it's from GRUB.
I thought you were in the Linux system but you're still in GRUB.
Try following this guide: https://www.ubuntubuzz.com/2016/03/boot … rompt.html

Additionally, /boot/grub may be too deep, so just use `$ ls (hdX,msdosY)/` to look over the folders.
To make that a bit clearer, I have a boot partition that gets mounted into boot, so the top level of directories starts at "/grub" technically. It's best to just look around.
If none of your partitions have a GRUB directory it could be that you may have had the wrong partition mapping while installing or something didn't copy, etc.

Some partition must have GRUB files somewhere or the system wasn't installed properly so you should review what happened with the ISO install.

Last edited by nicholas (2020-11-04 15:27:05)

Offline

Board footer

Powered by FluxBB