You are not logged in.
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
Offline
install arch-install-scripts and use arch-chroot instead
Offline
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
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/devOffline
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
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 existThere 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
You silly git, you mount those on your mounted root. Do some googling and learn how to chroot!
Offline
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 specificationSent from my S3-mini
Offline
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
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
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
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
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
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
Is your boot on a seperate partition? Did you mount it too?
Offline
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
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
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
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
Ugjka, I can see you are getting frustrated, but please do not resort to personal attacks.
Ok, sorry
Offline
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
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
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
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