LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-12-2010, 04:22 PM   #1
wincen
Member
 
Registered: Jun 2002
Posts: 33

Rep: Reputation: 15
debian lenny won't start up: failed code 126


I had debian lenny running smoothly for a while, then I think the power went out and the computer didn't shutdown smoothly. The next time I started it up I ran into this error:
Checking root file system.../etc/rcS.d/S10checkroot.sh: line 274: /sbin/logsave: Permission denied
failed (code 126)
This happens in single user mode as well. I've tried fscking all my partitions but it doesn't help.

I've booted in bypassing the normal init and changed the permissions of /sbin/logsave to 777 and during boot I get a message of:
The file system check corrected errors on the root partition but requested that the system be restarted. failed!
Then the system just reboots automatically without letting me to anything.

Any ideas on how to fix this??
 
Old 12-12-2010, 08:10 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Try booting to a live CD (Knoppix or Slax is great for this) and checking permissions and taking a look at of /etcd/rcS.d/S10checkroot.sh and /sbin/logsave and posting your findings here.

If you are feeling bold (and this is a shot in the dark) you could retry renaming the files in question (NOT deleting them so you have a fallback position) to something like *.bak, then seeing whether Debian will boot.
 
Old 12-13-2010, 12:06 AM   #3
wincen
Member
 
Registered: Jun 2002
Posts: 33

Original Poster
Rep: Reputation: 15
/sbin/logsave
ownership is root:adm
permissions are: 666

/etc/rcS.d/S10checkroot.sh -> /etc/inid.d/checkroot.sh
ownership is root:root
permissions are 755

removing S1-checkroot.sh from the boot process just causes basically the same error about permission problems with /sbin/logsave, but from S30checkfs.sh instead.
 
Old 12-13-2010, 12:08 AM   #4
wincen
Member
 
Registered: Jun 2002
Posts: 33

Original Poster
Rep: Reputation: 15
Ok, I feel like a bonehead! I got it to work, finally, but I don't totally understand why.

I changed the permissions of /sbin/logsave to 777 and it worked. I obviously didn't want to keep it this way so I changed it to 755.

For whatever reason /sbin/logsave seems to need to be executable. I don't know why since my file is empty. Does anyone here know why it needs to be executable? I'd really like to know even though it's working now.
 
Old 12-13-2010, 07:30 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
It's executable and, apparently, compiled (when I look at /sbin in Konqueror, logsave has the cog executable icon and I can't open it in an editor).

Apparently, it has to be executable because it does stuff.

It took a little searching, but I found this.
 
Old 12-13-2010, 11:48 PM   #6
wincen
Member
 
Registered: Jun 2002
Posts: 33

Original Poster
Rep: Reputation: 15
thanks. mine must have been corrupted then. my logsave file has nothing in it. i suppose i should find out how to restore it, as in the size is 0.
 
Old 12-14-2010, 09:05 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I think you're right, it must have gotten trashed by the power failure. Mine's 6.3 kb.

If you want to contact me off line, I can try to email you a copy of mine; I'm also running Lenny.

I was able to make a copy.
 
Old 12-14-2010, 09:22 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
logsave is part of the package e2fsprogs, so you can do the job with
Code:
aptitude reinstall e2fsprogs
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminal doesn't display failed pings, only successful ones (Debian Lenny) wolverene13 Linux - Software 10 01-29-2014 07:42 AM
[SOLVED] drbd failed to install in debian lenny. wakkana12 Linux - Server 9 04-22-2010 02:44 AM
openoffice 'Javaldx failed!" Debian lenny squeeze kaz2100 Debian 0 02-23-2009 06:27 AM
LXer: How-To: Compile and Install Code::Blocks from Source in Debian Lenny LXer Syndicated Linux News 0 01-12-2009 09:40 PM
Killing all remainig processes ....failed during debian/lenny shutdown process. sarajevo Debian 7 12-11-2008 07:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration