Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

"/var/lib/init.d" needs to exist

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
bambam_
n00b
n00b
Posts: 6
Joined: Sun Jul 03, 2005 5:06 pm

"/var/lib/init.d" needs to exist

  • Quote

Post by bambam_ » Mon Jul 04, 2005 1:19 pm

Code: Select all

 * 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):
bam # mkdir -p /var/lib/init.d
mkdir: cannot create directory `/var/lib/init.d': Permission denied
bam # cd /var/lib
bam /var/lib # ls
ls: init.d: Permission denied
dbus dhcpc misc ntop ntp portage smaba sasl2 scrollkeeper tor xdm xkb
bam /var/lib # stat init.d
stat: cannot stat `init.d': Permission denied
bam /var/lib # rm -r init.d
stat: cannot lstat `init.d': Permission denied
bam /var/lib # chmod 777 init.d
chown: cannot access `init.d': Permission denied
bam /var/lib # mount | grep "/ "
/dev/hda5 on / type jfs (rw,noatime)
bam /var/lib # touch foo; ll foo; rm foo
-rw-r--r--  1 root root 0 Jul  3 09:45 foo
removed `foo'
bam /var/lib # mount -o remount,ro /
bam /var/lib # fsck /
[..snip..]
Filesystem is clean.
What is going on?

I cannot even remove the lib directory (after archiving the other stuff) because that "init.d" is inaccessible and won't allow me to rmdir /var/lib
Top
steveb
Advocate
Advocate
User avatar
Posts: 4563
Joined: Wed Sep 18, 2002 8:19 pm

  • Quote

Post by steveb » Tue Jul 05, 2005 3:39 am

If I am not wrong, then after pressing Control-D your filesystem is anyway in read only mode. Could you do FIRST a:

Code: Select all

fsck -C -a -T /
and then do the:

Code: Select all

mount -o remount,rw /
and check if you can delete the files you want to delete?

cheers

SteveB
Top
Post Reply

2 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic