You are not logged in.

#1 2016-12-31 02:12:56

Dudl3y
Member
Registered: 2016-12-28
Posts: 49

Grub error

So, I've added an invalid parameter and did a grub-mkconfig, now when i boot my computer it gives: root device mounted correctly, but ... (something like: parameter is invalid).
Now, I'm stuck on rootfs, there is new_root folder... I've already fixed and removed that invalid kernel parameters from /etc/default/grub , but I did:
chroot new_root/
grub-mkconfig
It says :

error : cannot find a device for / (is /dev mounted?).

How to fix this? I just need to run grub-mkconfig to save changes to kernel parameters

Last edited by Dudl3y (2016-12-31 02:14:00)

Offline

#2 2016-12-31 02:38:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Grub error

Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-12-31 07:43:19

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: Grub error

install arch-install-scripts and use arch-chroot instead

Offline

#4 2016-12-31 12:03:37

Dudl3y
Member
Registered: 2016-12-28
Posts: 49

Re: Grub error

ugjka wrote:

install arch-install-scripts and use arch-chroot instead

I can't use internet. But c'mon... Just an invalid kernel parameter on grub. Isn't there a way to mount that dev?

Offline

#5 2016-12-31 12:17:42

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: Grub error

to just use chroot command you also need to mount these, that's what arch-chroot does for you

mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev

Offline

#6 2016-12-31 12:24:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Grub error

It's not "Just an invalid kernel parameter on grub" it's "you don't know how to chroot" - thus either use arch-chroot or read about how to chroot a system.
And OF COURSE you "can use internet" - you're doing it right now when reading this, so do as you're told, download the package, copy it  to some usb device.
Also arch-chroot comes with the installation image.

Also notice that if the original problem is really just a bad kernel parameter, you can just edit the kernel line from grub, remove the junk and then boot with the altered kernel line. Then fix the system w/o any chroot.

Offline

#7 2016-12-31 12:48:05

Dudl3y
Member
Registered: 2016-12-28
Posts: 49

Re: Grub error

ugjka wrote:

to just use chroot command you also need to mount these, that's what arch-chroot does for you

mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
[rootfs ]# mount -t proc proc /mnt/proc
mount: mount point /mnt/proc does not exist

There is the mnt folder under the new_root directory... I tried to make a folder called proc /new_root/mnt/proc and bind, but grub-mkconfig still gives me that error

Offline

#8 2016-12-31 12:50:19

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: Grub error

You silly git, you mount those on your mounted root. Do some googling and learn how to chroot!

Offline

#9 2016-12-31 12:51:44

Dudl3y
Member
Registered: 2016-12-28
Posts: 49

Re: Grub error

seth wrote:

It's not "Just an invalid kernel parameter on grub" it's "you don't know how to chroot" - thus either use arch-chroot or read about how to chroot a system.
And OF COURSE you "can use internet" - you're doing it right now when reading this, so do as you're told, download the package, copy it  to some usb device.
Also arch-chroot comes with the installation image.

Also notice that if the original problem is really just a bad kernel parameter, you can just edit the kernel line from grub, remove the junk and then boot with the altered kernel line. Then fix the system w/o any chroot.

Well... I'm trying to get internet and im getting this with wifi-menu -o:

Invalid interface specification

Sent from my S3-mini

Offline

#10 2016-12-31 12:53:31

Dudl3y
Member
Registered: 2016-12-28
Posts: 49

Re: Grub error

ugjka wrote:

You silly git, you mount those on your mounted root. Do some googling and learn how to chroot!

Yeah, I'm a noob.. where should I mount it?

Offline

#11 2016-12-31 12:55:39

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: Grub error

Dudl3y wrote:
ugjka wrote:

You silly git, you mount those on your mounted root. Do some googling and learn how to chroot!

Yeah, I'm a noob.. where should I mount it?

I don't care you are noob, do your own research. Here's a starter how-to chroot: https://wiki.archlinux.org/index.php/Change_root

Offline

#12 2016-12-31 13:07:36

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Grub error

Ugjka, I can see you are getting frustrated, but please do not resort to personal attacks.

https://wiki.archlinux.org/index.php/Co … _not_flame

Dudl3y, being a 'noob' does not work as an excuse on these forums. You are still capable of reading up on things you do not know, and a certain level of independent research is expected of you, particularly using the Arch wiki. If you encounter problems while following the documentation, then please feel free to seek clarification, but don't expect to have your hand held.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#13 2016-12-31 13:07:52

Dudl3y
Member
Registered: 2016-12-28
Posts: 49

Re: Grub error

ugjka wrote:
Dudl3y wrote:
ugjka wrote:

You silly git, you mount those on your mounted root. Do some googling and learn how to chroot!

Yeah, I'm a noob.. where should I mount it?

I don't care you are noob, do your own research. Here's a starter how-to chroot: https://wiki.archlinux.org/index.php/Change_root

Ok. It seems everything is mounted correctly, following the ArchWiki. grub-mkconfig now says he could'nt load part_gpt: No such file or directory.
Why?

Offline

#14 2016-12-31 13:08:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Grub error

Stop! The chrooting approach, see this

Also notice that if the original problem is really just a bad kernel parameter, you can just edit the kernel line from grub, remove the junk and then boot with the altered kernel line. Then fix the system w/o any chroot.

you don't need an external system to fix a bogus kernel line in grub.

Offline

#15 2016-12-31 13:10:13

Dudl3y
Member
Registered: 2016-12-28
Posts: 49

Re: Grub error

seth wrote:

Stop! The chrooting approach, see this

Also notice that if the original problem is really just a bad kernel parameter, you can just edit the kernel line from grub, remove the junk and then boot with the altered kernel line. Then fix the system w/o any chroot.

you don't need an external system to fix a bogus kernel line in grub.

It doesn't make any change if I don't grub-mkconfig. What do you mean?

Offline

#16 2016-12-31 13:10:38

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: Grub error

Is your boot on a seperate partition? Did you mount it too?

Offline

#17 2016-12-31 13:13:51

Dudl3y
Member
Registered: 2016-12-28
Posts: 49

Re: Grub error

ugjka wrote:

Is your boot on a seperate partition? Did you mount it too?

Ive just mounted it with :  mount --rbind /boot boot/

Last edited by Dudl3y (2016-12-31 13:14:04)

Offline

#18 2016-12-31 13:15:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Grub error

Select the entry in the grub menu, then press "e" (instead of "enter") this allows you to edit (among others) the kernel line.
You fix that line, then boot the actual system, fix your junk there and grub-mkconfig from the actual system, no chrooting required.

Offline

#19 2016-12-31 13:15:24

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: Grub error

no, no don't do that, that will mount your live systems boot. I mean /boot of the system you are trying to rescue.

Offline

#20 2016-12-31 13:17:03

Dudl3y
Member
Registered: 2016-12-28
Posts: 49

Re: Grub error

seth wrote:

Select the entry in the grub menu, then press "e" (instead of "enter") this allows you to edit (among others) the kernel line.
You fix that line, then boot the actual system, fix your junk there and grub-mkconfig from the actual system, no chrooting required.

Well, I'm stupid: I changed timeout of that grub menu because I thought it was annoying, so i removed it.

Offline

#21 2016-12-31 13:17:19

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: Grub error

WorMzy wrote:

Ugjka, I can see you are getting frustrated, but please do not resort to personal attacks.

Ok, sorry

Offline

#22 2016-12-31 13:18:29

Dudl3y
Member
Registered: 2016-12-28
Posts: 49

Re: Grub error

ugjka wrote:

no, no don't do that, that will mount your live systems boot. I mean /boot of the system you are trying to rescue.

It's mounted... new_root/boot is there with files.

Offline

#23 2016-12-31 13:20:22

Dudl3y
Member
Registered: 2016-12-28
Posts: 49

Re: Grub error

ugjka wrote:

no, no don't do that, that will mount your live systems boot. I mean /boot of the system you are trying to rescue.

Well, I've already did it. But I've just restarted my pc, so it's back as i didnt do it

Offline

#24 2016-12-31 13:21:54

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: Grub error

Dudl3y wrote:
seth wrote:

Select the entry in the grub menu, then press "e" (instead of "enter") this allows you to edit (among others) the kernel line.
You fix that line, then boot the actual system, fix your junk there and grub-mkconfig from the actual system, no chrooting required.

Well, I'm stupid: I changed timeout of that grub menu because I thought it was annoying, so i removed it.

Try holding down "shift" during boot, that should bring up Grub's menu IIRC

Offline

#25 2016-12-31 13:25:34

Dudl3y
Member
Registered: 2016-12-28
Posts: 49

Re: Grub error

ugjka wrote:
Dudl3y wrote:
seth wrote:

Select the entry in the grub menu, then press "e" (instead of "enter") this allows you to edit (among others) the kernel line.
You fix that line, then boot the actual system, fix your junk there and grub-mkconfig from the actual system, no chrooting required.

Well, I'm stupid: I changed timeout of that grub menu because I thought it was annoying, so i removed it.

Try holding down "shift" during boot, that should bring up Grub's menu IIRC

Nothing.

Offline

Board footer

Powered by FluxBB