Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Permission problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
rmbjlb
n00b
n00b


Joined: 29 May 2010
Posts: 3

PostPosted: Sat May 29, 2010 11:30 am    Post subject: Permission problem Reply with quote

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
View user's profile Send private message
muhsinzubeir
l33t
l33t


Joined: 29 Sep 2007
Posts: 948
Location: /home/muhsin

PostPosted: Sat May 29, 2010 11:42 am    Post subject: Reply with quote

No idea how this would happen, but more info should be in /etc/fstab

Code:
cat /etc/fstab

_________________
~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com
Back to top
View user's profile Send private message
rmbjlb
n00b
n00b


Joined: 29 May 2010
Posts: 3

PostPosted: Sat May 29, 2010 12:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Telemin
l33t
l33t


Joined: 25 Aug 2005
Posts: 753
Location: Glasgow, UK

PostPosted: Sat May 29, 2010 12:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
rmbjlb
n00b
n00b


Joined: 29 May 2010
Posts: 3

PostPosted: Sat May 29, 2010 1:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat May 29, 2010 2:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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