LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-20-2011, 05:56 AM   #1
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Rep: Reputation: Disabled
kernel build error: deleted inode referenced


When I run make (according to this guide - www.debianuserforums.org/viewtopic.php?f=9&t=101 ) I get the following error, around a million times (hasn't stopped yet);
Code:
EXT2-fs (sda1): error: ext2_lookup: deleted inode referenced: 65635
note: the system is on hda1.. and is there any way to even exit this command as I'm pretty sure it will go on forever (and persists through a forced reboot!)

Last edited by sdfi; 10-20-2011 at 06:04 AM.
 
Old 10-20-2011, 07:51 AM   #2
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
It has nothing much to do with the kernel compile, but a lot to do with the file system. Boot from e.g. a livecd and run fsck on all partitions - do not fsck mounted partitions.

Code:
man fsck
It persists because it's usually stderr telling you that the disk is corrupt.
 
Old 10-20-2011, 08:46 AM   #3
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
the man command is not found. what does the man part do? ironically, I had just ran fsck on /dev/hda1 right before this error came up. although running it again now has brought up errors.

edit: seems to be building ok now...

Last edited by sdfi; 10-20-2011 at 08:57 AM.
 
Old 10-20-2011, 10:05 AM   #4
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by sdfi View Post
the man command is not found. what does the man part do?
The standard response to that is

Code:
man man
"man" should open a man (manual) page for the referenced program if it's not being found then there is probably something wrong with your user path. Try running man as root, if that doesn't work, then we may have a missing man...

Quote:
Originally Posted by sdfi View Post
ironically, I had just ran fsck on /dev/hda1 right before this error came up. although running it again now has brought up errors.

edit: seems to be building ok now...
You should not fsck a mounted partition... it's better to boot from a livecd and do it from there. That may be the source of your trouble in fact...

Last edited by cynwulf; 10-20-2011 at 10:06 AM.
 
Old 10-22-2011, 08:13 AM   #5
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
I did do the original fsck from a livecd; i wasn't going to ignore the 'DOING THIS *WILL* F UP YOUR SYSTEM' warning

I was running 'man' as root, it is not there i suppose. Anyway, it all worked.

Follow up ? about kernel building; is it OK to build the kernel in future witout running the command;
Code:
make-kpkg --rootcmd fakeroot clean
My understanding is that this means every module is rebuilt (instead of just those that are changed?), which takes a *looooooooong* time (especially running on this machine which is old).

And also; how do i set the new kernel as default in grub, and remove others?

Last edited by sdfi; 10-22-2011 at 08:14 AM.
 
Old 10-22-2011, 09:39 AM   #6
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
If you ask me, use this (long version version)
http://forums.debian.net/viewtopic.php?f=16&t=36525
or this (short version)
http://forums.debian.net/viewtopic.php?p=212790#p212790
but ignore "make oldconfig" (the next post will tell the why).

To make your compilation more fast try "make localmodconfig" (or perhaps not, it might end in a lot of fidding, like in doing it again and again until it works. For me it works).

You kernel should/could be set to default automatically.
Else edit /etc/default/grub -> GRUB_DEFAULT=0 and change 0 to whatever integer fits (run update-grub after you edited).

PS: if you can't use "man" something is seriously wrong.

Last edited by j1alu; 10-22-2011 at 09:41 AM.
 
Old 10-23-2011, 07:35 AM   #7
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
It seems the latest kernel build was set to default. How do i remove the others i don't want?
 
Old 10-23-2011, 08:18 AM   #8
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
Just like any other package, with apt-get/aptitude/synaptic/etc
ls /boot
and then, for example:
apt-get -s remove --purge linux-image-2.6.38-2-686
apt-get -s remove --purge linux-headers-2.6.38-2-686
and make sure its remove from /lib/modules.

I would simply leave it.
 
Old 10-23-2011, 08:18 AM   #9
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
try "make localmodconfig" where? when??

AFAICT the guide is just the same as the one i linked except it uses a non-root user instead of using the fakeroot. (NB i only have root user currently)
 
Old 10-23-2011, 08:46 AM   #10
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
The how-to you link to uses a kernel source from kernel.org, the other one uses a debianized kernel source from the start
(hence they differ).
If that is what you want it is fine, but to me the other how-to works and is more straight forward (especially the short version, which you will also find in the discussion of the how-to you linked to).

You use "make localmodconfig" at the very beginning. At forums.debian.net there is a thread about it, which explains how exactly
(without checking much i would say between "cp" and "make menuconfig"; make sure all devices you use are plugged)

If you ain't got a user, create one.
 
Old 10-23-2011, 09:27 AM   #11
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
I see. Well i have my kernel source already (FWIW; from voyage, as i'm using that, which explains the lack of man etc.. definitely going to put that in my profile now), so it was only from 'make-kpkg (--rootcmd fakeroot) clean' onwards that i was refering to. Will have a look into the localmodconfig more next time i rebuild (just done it now).
 
Old 10-23-2011, 11:45 AM   #12
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Rep: Reputation: 45
Have you tried the the new beta release of 0.8.0? That will have the 3.0 kernel and be based on Debian 6.0.3. That should be very stable when done.
 
  


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
Deleted inode referenced 83359... Koolassjoe Linux - Newbie 3 07-19-2011 06:14 PM
Recovering a deleted file from its inode iliasjr Debian 1 08-08-2010 08:00 AM
How to get deleted files inode from super block pramodhbm Linux - Newbie 3 04-25-2008 12:01 AM
How to access inode of a deleted file? ashwyn222 Linux - Newbie 3 02-13-2008 04:36 AM
need to recover data in a deleted inode wilsonsamm Linux - General 6 08-30-2006 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:58 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