Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ERROR: root failed to start …permission denied
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gentooly
n00b
n00b


Joined: 21 May 2023
Posts: 5
Location: Tasmania

PostPosted: Fri May 26, 2023 7:40 am    Post subject: ERROR: root failed to start …permission denied Reply with quote

see https://postimg.cc/XZLZVJ2c for screenshot

Code:
Remounting root filesystem read/write ...
/etc/init.d/root: line 40: /lib/rc/bin/eend: Permission denied

…and so forth …
Code:
ERROR: root failed to start 

…and so forth..

on a eufi intel nuc DN282OFYKH

I assume that sometime in the last two weeks it took me to get the the "reboot" stage I left something out that was critical, or used the wrong pathway, I tried to do a plain vanilla install of gentoo but I worry with the alternatives on offer (please put them in a side bar or box) I stuffed up, I mean I really appreciate the full documentation, but a plain vanilla pathway would be good for noobs like me,previous to this my user experience is limited to boot loaders and fstab really,

I can follow the advice from[url= https://wiki.gentoo.org/wiki/Knowledge_Base:Recovering_from_a_kernel_boot_failure][/url]
but I do not know how to recover from these permission errors on my part? :oops:

Assuming the permission errors are not just systematic of something else?

cheers
Back to top
View user's profile Send private message
Goverp
Veteran
Veteran


Joined: 07 Mar 2007
Posts: 1722

PostPosted: Fri May 26, 2023 8:18 am    Post subject: Reply with quote

This isn't anything to do with kernels or, strictly speaking, booting. Your kernel has started successfully, and you system is now starting services through OpenRc. For example, it's checked your file systems. However, OpenRc is having problems. As it starts each service, it should write a message to the console (usually with some pretty colour. It uses a program "eend" to issue the message (including handling pretty colours). For some reason, "eend" (or to give it its full name, /lib/rc/bin/eend) isn't readable or executable, and for that matter, your photo shows several others from that library are giving problems. The files should have filemode 755 and be owned by root:root. It appears they aren't.

My guess is that something went wrong in un-tarring your stage3 to /mnt/gentoo. You need to reboot from your installation medium, mount your Gentoo root partition as /mnt/gentoo, and have a look at the file permissions for that directory. They probably indicate a wider problem, so it would probably be worth posting the output of
Code:
ls -la /mnt/gentoo/lin/rc/bin
ls -l /mnt/gentoo

_________________
Greybeard
Back to top
View user's profile Send private message
gentooly
n00b
n00b


Joined: 21 May 2023
Posts: 5
Location: Tasmania

PostPosted: Fri May 26, 2023 9:53 am    Post subject: Reply with quote

[[ the old monitor and the camera aint got no colour rhythm, but it was there before it focussed it out]]

thanks for your quick response

do you mean?
Code:
ls -la /mnt/gentoo/lib/rc/bin

this gives
returns

and for
Code:
 ls -l /mnt/gentoo

see ls -l /mnt/gentoo] this link
Back to top
View user's profile Send private message
Goverp
Veteran
Veteran


Joined: 07 Mar 2007
Posts: 1722

PostPosted: Fri May 26, 2023 4:32 pm    Post subject: Reply with quote

Sorry for not returning sooner! Err, not sure what's going wrong. The output shows the files ought to be readable by the kernel. As above, the kernel has started OK, but the system is failing at the point where OpenRc is trying to run the "root" service /etc/init.d/root, which has the job of remounting your "/" partition read/write. But it can't execute those programs because of permission errors. But this should be the kernel calling "/sbin/init", as root, and root should be able to run everything.

I presume that you've taken the easy options - no initramfs, a prebuilt kernel or you've rolled you own with F2FS support included, not through modules. Could you put up partition display (cfdisk or whatever), and your /etc/fstab please, and anything else that might help :-) Also how you are booting (GRUB, rEFInd, EFI stub, something else ...)
_________________
Greybeard
Back to top
View user's profile Send private message
gentooly
n00b
n00b


Joined: 21 May 2023
Posts: 5
Location: Tasmania

PostPosted: Sat May 27, 2023 1:01 am    Post subject: Reply with quote

okay it's now morning here

cfdisk

fstab

"and root should be able to run everything.' <nods>

I think I have taken the easy option but my noobness makes me unsure, too nooby to know what else will help,

grub booting

thank you
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 19751

PostPosted: Sat May 27, 2023 5:54 am    Post subject: Reply with quote

Instead of posting images, it is easier to look through text. wgetpaste is one tool for that.

My guess is that your options for mounting root are not correct. Instead of noatime,user try defaults or defaults,noatime if you really want noatime for root.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
gentooly
n00b
n00b


Joined: 21 May 2023
Posts: 5
Location: Tasmania

PostPosted: Sat May 27, 2023 6:24 am    Post subject: Reply with quote

goodness
a simple "defaults" worked

I am now at the prompt, my journey continues.

thank you very much for your help,

perhaps the guide needs a look at, I did't come up with the previous by myself,
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2463
Location: Here and Away Again

PostPosted: Sat May 27, 2023 10:23 am    Post subject: Reply with quote

gentooly,

The handbook seems to suggest 'noatime' only for root, so perhaps 'user' was what was causing the issue.

On another note, I've removed the website from your profile and the one from your previous post here, since you are a rather new user here, and those sites seem to have nothing to do with Gentoo Linux, Linux in general, this issue, or anything at all particularly relevant.

We get hundreds of new users in very short time with the sole purpose of advertising their unrelated sites (also known as 'spam'), so including URLs such as yours as a new user is a very effective method to get your account banned. :]

Also, as mentioned, please use text instead of pictures since pictures hosted elsewhere tend to expire, and many do not even want to venture to external sites (and many sites are bad with no JavaScript or have other problems with them).

Enjoy your Gentoo!

Thank you!
_________________
Kind regards,
Chiitoo.

Sore wa sore, kore wa kore.
Back to top
View user's profile Send private message
gentooly
n00b
n00b


Joined: 21 May 2023
Posts: 5
Location: Tasmania

PostPosted: Sat May 27, 2023 10:50 am    Post subject: Reply with quote

sure thing, thanks
Back to top
View user's profile Send private message
Goverp
Veteran
Veteran


Joined: 07 Mar 2007
Posts: 1722

PostPosted: Sat May 27, 2023 12:41 pm    Post subject: Reply with quote

The relatime/noatime etc. things are a bit historic these days - the kernel default is lazytime and relatime, which keeps cached times up to date, but only does the relatime write to disk once a day or on sync behaviour. Unless you really need either strictatime or noatime, just leave them all off.
_________________
Greybeard
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 2773
Location: Bavaria

PostPosted: Sat May 27, 2023 1:40 pm    Post subject: Reply with quote

Chiitoo wrote:
[...] so perhaps 'user' was what was causing the issue.


Yes, it was the issue, because "user" implies the options noexec, nosuid, and nodev as already mentioned by our developer @grknight here:

https://forums.gentoo.org/viewtopic-p-8776904.html#8776904
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 20301

PostPosted: Sat May 27, 2023 1:51 pm    Post subject: Reply with quote

Chiitoo wrote:
so perhaps 'user' was what was causing the issue.
That seems likely. Per man 8 mount (by way of man fstab):
Code:
       users
           Allow any user to mount and to unmount the filesystem, even when
           some other ordinary user mounted it. This option implies the
           options noexec, nosuid, and nodev (unless overridden by subsequent
           options, as in the option line users,exec,dev,suid).
OP's results are consistent with a noexec mount, which could also be confirmed by inspecting /proc/mounts in a failed environment.
gentooly wrote:
perhaps the guide needs a look at, I did't come up with the previous by myself,
Please link to the specific advice that led you to put the option user in your fstab entry for root.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum