Re: [gentoo-user] corrupted start-up services (and file-system)
* Alan McKinnon (alan.mckin...@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 s...@sti@N GÜNTHER | X against M$ attachments mailto:sam...@guenther-roetgen.de | / \ www.asciiribbon.org pgpACBeu0xfpb.pgp Description: PGP signature
Re: [gentoo-user] corrupted start-up services (and file-system)
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
Re: [gentoo-user] corrupted start-up services (and file-system)
On Mon, Apr 20, 2009 at 10:36 AM, Alex Schuster wo...@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
[gentoo-user] corrupted start-up services (and file-system)
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
Re: [gentoo-user] corrupted start-up services (and file-system)
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
Re: [gentoo-user] corrupted start-up services (and file-system)
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 ntoprmnologin syslog-ng bootmisc hostnamenet.br0 ntp-client rpc.statd udev-postmount checkfs keymaps net.eth0 ntpdsamba uptimed checkrootlm_sensors net.loportmap sensordurandom clocklocal netmount postfix smartd vixie-cron consolefont localmount nfs postgresql sshd ~ $ ls /var/lib/init.d/ coldplugged deptreefailedscheduled softscripts stopping daemons exclusive inactive snapshot started wasinactive depcache exitcodes options softlevel starting ~ $
Re: [gentoo-user] corrupted start-up services (and file-system)
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 ntoprmnologin syslog-ng bootmisc hostnamenet.br0 ntp-client rpc.statd udev-postmount checkfs keymaps net.eth0 ntpdsamba uptimed checkrootlm_sensors net.loportmap sensordurandom clocklocal netmount postfix smartd vixie-cron consolefont localmount nfs postgresql sshd ~ $ ls /var/lib/init.d/ coldplugged deptreefailedscheduled softscripts stopping daemons exclusive inactive snapshot started wasinactive depcache exitcodes options softlevel starting ~ $ Looks about the same here as well: r...@smoker / # /bin/ls /var/lib/init.d/started/ bootmisc clockdbus ivmanlocalmount modules ntpd smartd upsdurandom checkfsconsolefont hald keymaps mDNSResponderPosix net.lo numlocksyslog-ng upsdrv vixie-cron checkroot cupsdhostname localmdnsd netmount rmnologin udev-postmount upsmon xdm r...@smoker / # /bin/ls /var/lib/init.d/ coldplugged depcache exclusive failedoptionssnapshot softscripts starting wasinactive daemons deptree exitcodes inactive scheduled softlevel started stopping r...@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.