View previous topic :: View next topic |
Author |
Message |
rmbjlb n00b
Joined: 29 May 2010 Posts: 3
|
Posted: Sat May 29, 2010 11:30 am Post subject: Permission problem |
|
|
I was rebooting gentoo and started receiving this error in the boot process:
* For Gentoo to function properly, "/var/lib/init.d" needs to exist.
* Please mount your root partition read/write, and execute:
* # mkdir -p /var/lib/init.d
Give root password for maintenance
(or type Control-D to continue):
Server had been running fine for years (since 2007) so not sure what cause this error to pop up.
I tried to delete /var/lib/init.d but I get permission denied.
Any ideas? Kinda got me in a bad spot right now.
Thanks in advance for any help... |
|
Back to top |
|
|
muhsinzubeir l33t
Joined: 29 Sep 2007 Posts: 948 Location: /home/muhsin
|
Posted: Sat May 29, 2010 11:42 am Post subject: |
|
|
No idea how this would happen, but more info should be in /etc/fstab
_________________ ~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com |
|
Back to top |
|
|
rmbjlb n00b
Joined: 29 May 2010 Posts: 3
|
Posted: Sat May 29, 2010 12:40 pm Post subject: |
|
|
Thanks for the tip muhsinzubeir but I looked in that file and see nothing unusual. Matter of fact I have a snapshot from that file two years ago and nothing appears to have changed.
I'm open for more suggestions though. When I run ls -l /var/lib/init.d I get:
Code: | cannot access /var/lib/init.d Permission denied |
Doesn't even show who owns the directory ect... Just shows a bunch of question marks .
Code: | ?????????? ? ? ? ? ? init.d
drwxr-xr-x 2 root root 4096 Feb 3 2008 iptables |
I am completely lost on how to fix this problem. |
|
Back to top |
|
|
Telemin l33t
Joined: 25 Aug 2005 Posts: 753 Location: Glasgow, UK
|
Posted: Sat May 29, 2010 12:49 pm Post subject: |
|
|
Can you not just chown and then chmod the directory, I believe root has permissions to chmod and chown anything always, to avoid an "immovable object vs unstoppable force" kind of paradox with permissions.
-Freestyling- _________________ The Geek formerly known as -Freestyling-
When you feel your problem has been solved please add [Solved] to the topic title.
Please adopt an unanswered post |
|
Back to top |
|
|
rmbjlb n00b
Joined: 29 May 2010 Posts: 3
|
Posted: Sat May 29, 2010 1:11 pm Post subject: |
|
|
Hi Telemin, nope it will not let me touch it (permission denied) regardless of what I try and I'm logged in as root. I even tried umount and ran fsck but everything came back ok. The kicker is I got three servers down, they are all running gentoo, and they are all doing the same thing and went down at the same time. Had a storm hit in our area and the power went out. The servers are on battery backup and surge protection but the power was out long enough that the batteries failed before I could get the generator running. I guess there is a lot to be said about doing a graceful shut down. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10652 Location: Somewhere over Atlanta, Georgia
|
Posted: Sat May 29, 2010 2:53 pm Post subject: |
|
|
Obviously there are issues with the filesystem. Boot up under a LiveCD of some sort (I recommend SystemRescueCD) and fsck the (unmounted) root filesystem.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
|