* [gentoo-user] corrupted start-up services (and file-system)
@ 2009-04-19 23:03 Liviu Andronic
2009-04-19 23:19 ` Alan McKinnon
0 siblings, 1 reply; 7+ messages in thread
From: Liviu Andronic @ 2009-04-19 23:03 UTC (permalink / raw
To: gentoo-user
Hello all,
I have a (nasty) issue with the system start-up, and probably with
corrupted file-system. On start-up, I get several error messages (see
below). I suspect I started having these messages after Gentoo crashed
once, but I couldn't recall the actual circumstances.
The problem is that, for example, MPD will not remember it's last
state before shutdown, and will be unable to recover the it's last
state. I have no idea where to start correcting the issue; any ideas
welcome.
Thanks,
Liviu
Start-up messags:
ln: accessing `/var/lib/init.d/started/rmnologin': Permission denied
ln: accessing `/var/lib/init.d/started/udev-postmount': Permission denied
* Initializing random number generator ...
[ ok ]
ln: accessing `/var/lib/init.d/started/urandom': Permission denied
[ ok ] * Starting laptop_mode ...
touch: cannot touch `/var/run/laptop-mode-enabled': Permission denied
[ ok ]
ln: accessing `/var/lib/init.d/started/laptop_mode': Permission denied
ln: accessing `/var/lib/init.d/started/rmnologin': Permission denied
* Initializing random number generator ...
[ ok ]
ln: accessing `/var/lib/init.d/started/urandom': Permission denied
* Starting Webmin ...
[ ok ] * Starting local ...
[ ok ]
ln: accessing `/var/lib/init.d/started/local': Permission denied
Trying to see what's about these files, I get this:
localhost liviu # ls /var/lib/init.d/started/ -la
ls: cannot access /var/lib/init.d/started/mpd: Permission denied
ls: cannot access /var/lib/init.d/started/local: Permission denied
ls: cannot access /var/lib/init.d/started/laptop_mode: Permission denied
ls: cannot access /var/lib/init.d/started/urandom: Permission denied
ls: cannot access /var/lib/init.d/started/rmnologin: Permission denied
ls: cannot access /var/lib/init.d/started/udev-postmount: Permission denied
total 1
drwxr-xr-x 2 root root 832 2009-04-19 17:33 .
drwxr-xr-x 15 root root 488 2009-04-19 17:33 ..
lrwxrwxrwx 1 root root 17 2009-04-19 17:32 acpid -> /etc/init.d/acpid
lrwxrwxrwx 1 root root 21 2009-04-19 17:32 alsasound -> /etc/init.d/alsasound
lrwxrwxrwx 1 root root 19 2009-04-19 17:33 apache2 -> /etc/init.d/apache2
lrwxrwxrwx 1 root root 20 2009-04-19 17:32 bootmisc -> /etc/init.d/bootmisc
lrwxrwxrwx 1 root root 19 2009-04-19 17:32 checkfs -> /etc/init.d/checkfs
lrwxrwxrwx 1 root root 21 2009-04-19 17:32 checkroot -> /etc/init.d/checkroot
lrwxrwxrwx 1 root root 17 2009-04-19 17:32 clock -> /etc/init.d/clock
lrwxrwxrwx 1 root root 23 2009-04-19 17:32 consolefont ->
/etc/init.d/consolefont
lrwxrwxrwx 1 root root 17 2009-04-19 17:33 cupsd -> /etc/init.d/cupsd
lrwxrwxrwx 1 root root 16 2009-04-19 17:32 dbus -> /etc/init.d/dbus
lrwxrwxrwx 1 root root 17 2009-04-19 17:33 dictd -> /etc/init.d/dictd
lrwxrwxrwx 1 root root 15 2009-04-19 17:32 gpm -> /etc/init.d/gpm
lrwxrwxrwx 1 root root 16 2009-04-19 17:32 hald -> /etc/init.d/hald
lrwxrwxrwx 1 root root 20 2009-04-19 17:32 hostname -> /etc/init.d/hostname
lrwxrwxrwx 1 root root 19 2009-04-19 17:32 keymaps -> /etc/init.d/keymaps
?????????? ? ? ? ? ? laptop_mode
?????????? ? ? ? ? ? local
lrwxrwxrwx 1 root root 22 2009-04-19 17:32 localmount ->
/etc/init.d/localmount
lrwxrwxrwx 1 root root 19 2009-04-19 17:32 modules -> /etc/init.d/modules
?????????? ? ? ? ? ? mpd
lrwxrwxrwx 1 root root 20 2009-04-19 17:32 net.eth0 -> /etc/init.d/net.eth0
lrwxrwxrwx 1 root root 20 2009-04-19 17:32 net.eth1 -> /etc/init.d/net.eth1
lrwxrwxrwx 1 root root 18 2009-04-19 17:32 net.lo -> /etc/init.d/net.lo
?????????? ? ? ? ? ? rmnologin
lrwxrwxrwx 1 root root 21 2009-04-19 17:32 syslog-ng -> /etc/init.d/syslog-ng
?????????? ? ? ? ? ? udev-postmount
?????????? ? ? ? ? ? urandom
lrwxrwxrwx 1 root root 18 2009-04-19 17:33 webmin -> /etc/init.d/webmin
lrwxrwxrwx 1 root root 16 2009-04-19 17:32 wicd -> /etc/init.d/wicd
lrwxrwxrwx 1 root root 15 2009-04-19 17:32 xdm -> /etc/init.d/xdm
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] corrupted start-up services (and file-system)
2009-04-19 23:03 [gentoo-user] corrupted start-up services (and file-system) Liviu Andronic
@ 2009-04-19 23:19 ` Alan McKinnon
2009-04-20 4:35 ` Stroller
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Alan McKinnon @ 2009-04-19 23:19 UTC (permalink / raw
To: gentoo-user
On Monday 20 April 2009 01:03:59 Liviu Andronic wrote:
> Hello all,
> I have a (nasty) issue with the system start-up, and probably with
> corrupted file-system. On start-up, I get several error messages (see
> below). I suspect I started having these messages after Gentoo crashed
> once, but I couldn't recall the actual circumstances.
> The problem is that, for example, MPD will not remember it's last
> state before shutdown, and will be unable to recover the it's last
> state. I have no idea where to start correcting the issue; any ideas
> welcome.
> Thanks,
> Liviu
>
> Start-up messags:
> ln: accessing `/var/lib/init.d/started/rmnologin': Permission denied
That's a very unusual location for init scripts. Did you put them there,
instead of in the more usual /etc/init.d/?
{snip}
> lrwxrwxrwx 1 root root 19 2009-04-19 17:32 keymaps -> /etc/init.d/keymaps
> ?????????? ? ? ? ? ? laptop_mode
This is almost certainly disk corruption. Boot from a CD and do an fsck on all
disk volumes
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] corrupted start-up services (and file-system)
2009-04-19 23:19 ` Alan McKinnon
@ 2009-04-20 4:35 ` Stroller
2009-04-20 5:23 ` Dale
2009-04-20 7:51 ` Sebastian Günther
2009-04-20 8:36 ` Alex Schuster
2 siblings, 1 reply; 7+ messages in thread
From: Stroller @ 2009-04-20 4:35 UTC (permalink / raw
To: gentoo-user
On 20 Apr 2009, at 00:19, Alan McKinnon wrote:
>> ...
>> Start-up messags:
>> ln: accessing `/var/lib/init.d/started/rmnologin': Permission denied
>
> That's a very unusual location for init scripts. Did you put them
> there,
> instead of in the more usual /etc/init.d/?
I have that file on my systems.
I assume it (and others nearby) are library / function scripts which
are called by the init scripts in /etc/init.d/
Stroller.
~ $ ls /var/lib/init.d/started/rmnologin
/var/lib/init.d/started/rmnologin
~ $ ls /var/lib/init.d/started/
apache2 cupsd modules ntop rmnologin syslog-ng
bootmisc hostname net.br0 ntp-client rpc.statd udev-postmount
checkfs keymaps net.eth0 ntpd samba uptimed
checkroot lm_sensors net.lo portmap sensord urandom
clock local netmount postfix smartd vixie-cron
consolefont localmount nfs postgresql sshd
~ $ ls /var/lib/init.d/
coldplugged deptree failed scheduled softscripts stopping
daemons exclusive inactive snapshot started wasinactive
depcache exitcodes options softlevel starting
~ $
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] corrupted start-up services (and file-system)
2009-04-20 4:35 ` Stroller
@ 2009-04-20 5:23 ` Dale
0 siblings, 0 replies; 7+ messages in thread
From: Dale @ 2009-04-20 5:23 UTC (permalink / raw
To: gentoo-user
Stroller wrote:
>
> On 20 Apr 2009, at 00:19, Alan McKinnon wrote:
>>> ...
>>> Start-up messags:
>>> ln: accessing `/var/lib/init.d/started/rmnologin': Permission denied
>>
>> That's a very unusual location for init scripts. Did you put them there,
>> instead of in the more usual /etc/init.d/?
>
> I have that file on my systems.
>
> I assume it (and others nearby) are library / function scripts which
> are called by the init scripts in /etc/init.d/
>
> Stroller.
>
>
>
> ~ $ ls /var/lib/init.d/started/rmnologin
> /var/lib/init.d/started/rmnologin
> ~ $ ls /var/lib/init.d/started/
> apache2 cupsd modules ntop rmnologin syslog-ng
> bootmisc hostname net.br0 ntp-client rpc.statd udev-postmount
> checkfs keymaps net.eth0 ntpd samba uptimed
> checkroot lm_sensors net.lo portmap sensord urandom
> clock local netmount postfix smartd vixie-cron
> consolefont localmount nfs postgresql sshd
> ~ $ ls /var/lib/init.d/
> coldplugged deptree failed scheduled softscripts stopping
> daemons exclusive inactive snapshot started wasinactive
> depcache exitcodes options softlevel starting
> ~ $
>
>
>
>
Looks about the same here as well:
root@smoker / # /bin/ls /var/lib/init.d/started/
bootmisc clock dbus ivman localmount modules
ntpd smartd upsd urandom
checkfs consolefont hald keymaps mDNSResponderPosix net.lo
numlock syslog-ng upsdrv vixie-cron
checkroot cupsd hostname local mdnsd netmount
rmnologin udev-postmount upsmon xdm
root@smoker / # /bin/ls /var/lib/init.d/
coldplugged depcache exclusive failed options snapshot
softscripts starting wasinactive
daemons deptree exitcodes inactive scheduled softlevel
started stopping
root@smoker / #
Should we assume this is "normal"? I have never been "normal" before.
;-)
Dale
:-) :-)
P.S. Pardon me calling the entire path of the command. I didn't want to
post that with the alias of -al which is a bit long and unneeded. Yea,
I'll figure out how to "undo" this one day.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] corrupted start-up services (and file-system)
2009-04-19 23:19 ` Alan McKinnon
2009-04-20 4:35 ` Stroller
@ 2009-04-20 7:51 ` Sebastian Günther
2009-04-20 8:36 ` Alex Schuster
2 siblings, 0 replies; 7+ messages in thread
From: Sebastian Günther @ 2009-04-20 7:51 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1711 bytes --]
* Alan McKinnon (alan.mckinnon@gmail.com) [20.04.09 01:21]:
> On Monday 20 April 2009 01:03:59 Liviu Andronic wrote:
> > Hello all,
> > I have a (nasty) issue with the system start-up, and probably with
> > corrupted file-system. On start-up, I get several error messages (see
> > below). I suspect I started having these messages after Gentoo crashed
> > once, but I couldn't recall the actual circumstances.
> > The problem is that, for example, MPD will not remember it's last
> > state before shutdown, and will be unable to recover the it's last
> > state. I have no idea where to start correcting the issue; any ideas
> > welcome.
> > Thanks,
> > Liviu
> >
> > Start-up messags:
> > ln: accessing `/var/lib/init.d/started/rmnologin': Permission denied
>
> That's a very unusual location for init scripts. Did you put them there,
> instead of in the more usual /etc/init.d/?
>
That's not the init script dir. that's svcdir in baselayout 1. It is
used to save the state of the init scripts. So it is natural that the
init process accesses it.
> {snip}
>
> > lrwxrwxrwx 1 root root 19 2009-04-19 17:32 keymaps -> /etc/init.d/keymaps
> > ?????????? ? ? ? ? ? laptop_mode
>
> This is almost certainly disk corruption. Boot from a CD and do an fsck on all
> disk volumes
>
And I must stress this: check all your filesystems.
Sebastian
--
" Religion ist das Opium des Volkes. " | _ ASCII ribbon campaign
Karl Marx | ( ) against HTML e-mail
SEB@STI@N GÜNTHER | X against M$ attachments
mailto:samson@guenther-roetgen.de | / \ www.asciiribbon.org
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] corrupted start-up services (and file-system)
2009-04-19 23:19 ` Alan McKinnon
2009-04-20 4:35 ` Stroller
2009-04-20 7:51 ` Sebastian Günther
@ 2009-04-20 8:36 ` Alex Schuster
2009-04-20 9:50 ` Liviu Andronic
2 siblings, 1 reply; 7+ messages in thread
From: Alex Schuster @ 2009-04-20 8:36 UTC (permalink / raw
To: gentoo-user
Alan McKinnon writes:
> On Monday 20 April 2009 01:03:59 Liviu Andronic wrote:
> > Start-up messags:
> > ln: accessing `/var/lib/init.d/started/rmnologin': Permission denied
>
> That's a very unusual location for init scripts. Did you put them
> there, instead of in the more usual /etc/init.d/?
That's okay, this directory has symlinks to all real init scripts
in /etc/init.d that have already started. There's
also /var/lib/init.d/{failed,starting,stopping} and more.
> {snip}
>
> > lrwxrwxrwx 1 root root 19 2009-04-19 17:32 keymaps ->
> > /etc/init.d/keymaps ?????????? ? ? ? ? ?
> > laptop_mode
>
> This is almost certainly disk corruption. Boot from a CD and do an fsck
> on all disk volumes
And maybe do a backup first, in case fsck messes up things worse than
before.
Wonko
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] corrupted start-up services (and file-system)
2009-04-20 8:36 ` Alex Schuster
@ 2009-04-20 9:50 ` Liviu Andronic
0 siblings, 0 replies; 7+ messages in thread
From: Liviu Andronic @ 2009-04-20 9:50 UTC (permalink / raw
To: gentoo-user
On Mon, Apr 20, 2009 at 10:36 AM, Alex Schuster <wonko@wonkology.org> wrote:
>> This is almost certainly disk corruption. Boot from a CD and do an fsck
>> on all disk volumes
>
> And maybe do a backup first, in case fsck messes up things worse than
> before.
>
Luckily this wasn't needed. I did the checks using Gparted (on its own
LivecD), and it corrected a handful of errors. Now the system seems to
boot fine.
Thanks all,
Liviu
--
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-04-20 9:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-19 23:03 [gentoo-user] corrupted start-up services (and file-system) Liviu Andronic
2009-04-19 23:19 ` Alan McKinnon
2009-04-20 4:35 ` Stroller
2009-04-20 5:23 ` Dale
2009-04-20 7:51 ` Sebastian Günther
2009-04-20 8:36 ` Alex Schuster
2009-04-20 9:50 ` Liviu Andronic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox