Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] errors on bootup...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
jonlb
n00b
n00b


Joined: 29 Apr 2005
Posts: 47

PostPosted: Fri Mar 10, 2006 7:59 pm    Post subject: [solved] errors on bootup... Reply with quote

I'm not sure if this is the right place for this but here goes.

After finishing a fresh install I get the following errors on bootup (excerpted):

Code:

*Activating (possible) swap ...
*Could not create needed directory '/var/lib/init.d'!
*Could not create needed directory '/var/lib/init.d/softscripts'!
*Could not create needed directory '/var/lib/init.d/snapshot'!
*Could not create needed directory '/var/lib/init.d/options'!
*Could not create needed directory '/var/lib/init.d/started'!
*Caching service dependencies ....
/bin/mktemp: cannot create temp file /var/lib/init.d/depcache.XhtDMC4: No such file or directory
*Failed to create temporary cache!
bash: /var/lib/init.d/depcache: No such file or directory
gawk: /lib/rcscripts/awk/gendepends.awk:440: fatal: can't redirect to /var/lib/init.d/deptree' (No such file or directory)
touch: creating '/var/lib/init.d/depcache' : No such file or directory
touch: creating '/var/lib/init.d/deptree' : No such file or directory
*failed to cache service dependencies
stat: cannot stat '/lib/splash/cache/deptree' : No such file or directory


as far as I can tell those directories DO exist, so I don't have any idea what's going on here.

Anyone got some ideas?

Thanks,
jonlb


Last edited by jonlb on Sat Mar 25, 2006 7:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
.dragonfly
n00b
n00b


Joined: 04 Mar 2006
Posts: 16
Location: UK, Nottingham

PostPosted: Fri Mar 10, 2006 10:26 pm    Post subject: Reply with quote

Have you got everything right in /etc/fstab ?
_________________
You can never learn less, you can only learn more.
Back to top
View user's profile Send private message
orygun_dux
n00b
n00b


Joined: 09 Dec 2005
Posts: 24

PostPosted: Sat Mar 11, 2006 4:35 am    Post subject: Reply with quote

Same issue here, it just started doing that after an update world a few days ago, so it's probably not /etc/fstab.
Back to top
View user's profile Send private message
fillerbunny
n00b
n00b


Joined: 21 May 2002
Posts: 27

PostPosted: Sat Mar 11, 2006 10:30 am    Post subject: Reply with quote

I've just had the same thing happen and running
Code:
depscan.sh -u
fixed it.
Back to top
View user's profile Send private message
jonlb
n00b
n00b


Joined: 29 Apr 2005
Posts: 47

PostPosted: Wed Mar 15, 2006 7:41 pm    Post subject: Reply with quote

Thanks for the replies, but unfortunately, I'm still getting the same errors.

When I run depscan.sh -u it immediately returns with no output, so I can't tell what it's doing and my fstab looks right.

Might the problem have something to do with my swap partition being inside an extended partition?

Any other ideas would be helpful.

Thanks!

jonlb
Back to top
View user's profile Send private message
jonlb
n00b
n00b


Joined: 29 Apr 2005
Posts: 47

PostPosted: Wed Mar 22, 2006 6:24 am    Post subject: Reply with quote

Anyone else have any ideas? I just installed a fresh gentoo on another machine and am getting the same errors. Any ideas or thoughts on how to fix this would be welcome. The machines are usable but watching those errors flash by on startup is rather annoying.

Thanks!
Back to top
View user's profile Send private message
OpelBlitz
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 229
Location: Chicago, Illinois

PostPosted: Wed Mar 22, 2006 7:00 am    Post subject: Reply with quote

Could be a permissions issue. Check out those files' permissions and ownership, and change accordingly. Also, check bugzilla to see if this is a bug of some kind. Just a shot in the dark. :)
Back to top
View user's profile Send private message
jonlb
n00b
n00b


Joined: 29 Apr 2005
Posts: 47

PostPosted: Wed Mar 22, 2006 5:28 pm    Post subject: Reply with quote

OpelBlitz wrote:
Could be a permissions issue. Check out those files' permissions and ownership, and change accordingly. Also, check bugzilla to see if this is a bug of some kind. Just a shot in the dark. :)


what should the permissions be? Also, I'v enever been in gentoo's bugzilla. Is there a set of directions I can read to learn how to use it?
Back to top
View user's profile Send private message
OpelBlitz
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 229
Location: Chicago, Illinois

PostPosted: Wed Mar 22, 2006 7:16 pm    Post subject: Reply with quote

jonlb wrote:
OpelBlitz wrote:
Could be a permissions issue. Check out those files' permissions and ownership, and change accordingly. Also, check bugzilla to see if this is a bug of some kind. Just a shot in the dark. :)


what should the permissions be? Also, I'v enever been in gentoo's bugzilla. Is there a set of directions I can read to learn how to use it?


I really don't know what they should be, to be honest. But, Bugzilla can be found at https://bugs.gentoo.org/
Back to top
View user's profile Send private message
RuiP
l33t
l33t


Joined: 15 Jan 2005
Posts: 643

PostPosted: Wed Mar 22, 2006 8:16 pm    Post subject: Reply with quote

hi,
i had a problem with that files, but in my case it only complaines about wrong mtimes checks...

May there is nothing in common with your problem, but seems that the results are the same, system tries to access that existing files and fails.

I boot from a livecd, moved the files that the error mention to a temp directory (to recover in case of need) and reboot.
New files where generated and everything went to normal. I fail to see what make those goes wrong.

Maybe trying this could help (i have the faintest idea...)
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Thu Mar 23, 2006 8:35 am    Post subject: Reply with quote

Your /var isn't on a separate partition is it?
_________________
Please add "[solved]" to the initial topic title when it is solved. TIA.
Linux Sea (PDF), an online e-book on Gentoo Linux
Back to top
View user's profile Send private message
jonlb
n00b
n00b


Joined: 29 Apr 2005
Posts: 47

PostPosted: Sat Mar 25, 2006 2:53 am    Post subject: Reply with quote

Actually, it IS ona separate partition, though I have 2 other gentoo machines with the same basic drive configuration (though on slightly older kernels) and they work fine.

Could that be a problem? My two systems with the problem are based on 2006.0 and the ones that don't are 2005.

At this point I don't know if I want to blow away my system to try putting /var somewhere else. Is there a way I can move it without repartitioning my HD?

In the meantime, I'll try RuiP's suggestion and see what happens.

Thanks for the help!

jonlb
Back to top
View user's profile Send private message
jonlb
n00b
n00b


Joined: 29 Apr 2005
Posts: 47

PostPosted: Sat Mar 25, 2006 3:11 am    Post subject: Reply with quote

OK.....

so, I took another, closer look, at the error messages and on the second machine they're different. It seems while it boots it thinks /var is a read-only file system as it adds those words to the end of every message. I've checked to make sure that the filesystem (reiserfs) is compiled into the kernel and it is.

Why would this thing think that /var is readonly on boot?

jonlb
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Sat Mar 25, 2006 11:44 am    Post subject: Reply with quote

jonlb wrote:

Actually, it IS ona separate partition, though I have 2 other gentoo machines with the same basic drive configuration (though on slightly older kernels) and they work fine.

Could that be a problem?


Yes, it probably will because the /var partition isn't mounted until further down the initialisation. You can fix that by copying stuff from the /var partition to the /var directory on your root filesystem.

If other machines are working fine with separate /var partitions, I would suppose this is the case there (for instance because you didn't have separate /var partitions in the beginning so that the files are on the / filesystem and that you only later decided to make a separate partition of /var).

There are a few directories that you shouldn't place on a separate partition: /bin, /lib, /etc and /var (and perhaps /root too) as they contain information and files that are required for the system to boot.
_________________
Please add "[solved]" to the initial topic title when it is solved. TIA.
Linux Sea (PDF), an online e-book on Gentoo Linux
Back to top
View user's profile Send private message
jonlb
n00b
n00b


Joined: 29 Apr 2005
Posts: 47

PostPosted: Sat Mar 25, 2006 6:35 pm    Post subject: Reply with quote

So, I moved everything from the separate /var partition into the root file system, rebooted (after making sure that the partition wouldn't load by adding noauto to the fstab entry) and I'm still getting the same errors. I think the key here is that it thinks that the filesystem is read-only.

Any idea why it might think that?

jonlb
Back to top
View user's profile Send private message
jonlb
n00b
n00b


Joined: 29 Apr 2005
Posts: 47

PostPosted: Sat Mar 25, 2006 7:37 pm    Post subject: Reply with quote

finally got it!

thanks to this thread: https://forums.gentoo.org/viewtopic-t-446072-highlight-readonly+system.html

all I needed to do was update the baselayout and everything works fine now.


thanks for the help!

jonlb
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Thu Apr 06, 2006 7:38 am    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads, please see this topic.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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