LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-08-2002, 11:57 PM   #1
Touchstone
Member
 
Registered: Nov 2001
Location: Ontario, Canada
Distribution: RH 7.2
Posts: 31

Rep: Reputation: 15
Question Bash errors after kernel compile


I recompiled and updated my kernel (2.4.7-10 to 2.4.9-10) to add support for my network card SiS900. I added the new kernel to grub.conf. Now when I boot into the new kernel imediately after login I get multiple bash errors..

bash: id: comand not found
[: =: unary operator expected
bash: id: comand not found
[: =: unary operator expected
bash: id: comand not found
[: =: unary operator expected
bash: id: comand not found
bash: dircolors: command not found
bash: id: comand not found
bash: id: comand not found
bash: id: comand not found
[: too many arguements

Once I get to the prompt only the bash commands work, I can't run any extended commands.

I then navigate to /usr and find that that partition is not mounted (appears empty). It does however mount when I boot to my old kernel. (This explains why none of my extended commands run.)

Anyone know what I did (or am doing) wrong.
 
Old 02-09-2002, 12:43 AM   #2
ryanstrayer
Member
 
Registered: Jan 2002
Location: Kansas City
Distribution: RedHat 7.2 Kernel 2.4.17
Posts: 250

Rep: Reputation: 30
Well, this isn't a lot of help, but might point you in the right direction.. it's sound to me like there is something missing out of the new kernel you compiled.. I would recommend loading up the config you used in your old kernel into the new kernel and then adding the new support option. That away you have an exact duplicate kernel with the added support you need. Then see what happens.

The config is stored as ' .config ' in your kernel directory.. just copy it over to the new kernel directory.
 
Old 02-09-2002, 02:00 AM   #3
Touchstone
Member
 
Registered: Nov 2001
Location: Ontario, Canada
Distribution: RH 7.2
Posts: 31

Original Poster
Rep: Reputation: 15
I just tried a third kernel compile to no avail, but I do see what the problem is a bit more clearly now. None of my partitions are being mounted at all. I can mount them all manually and get most of my apps to work, but I don't think that's a good solution.

Where are all of the mount points defined? Maybe that file is moved or just not writen properly.
 
Old 02-09-2002, 02:34 AM   #4
ryanstrayer
Member
 
Registered: Jan 2002
Location: Kansas City
Distribution: RedHat 7.2 Kernel 2.4.17
Posts: 250

Rep: Reputation: 30
/etc/fstab defines all your mount points at startup.
 
Old 02-09-2002, 12:23 PM   #5
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
the mount problem probably comes from a problem in the file system types compiled into the kernel. if you have reiser on your main partition, you need to get reiser compiled in - if it's ext2, you need to make sure that the "second extended" file system is chosen. file systems need to be compiled into the kernel - not modules - if they're modules, then the kernel can't reach them, because it needs them to find where they are...
 
Old 02-09-2002, 09:18 PM   #6
Touchstone
Member
 
Registered: Nov 2001
Location: Ontario, Canada
Distribution: RH 7.2
Posts: 31

Original Poster
Rep: Reputation: 15
I got it, thanks for your help.
Linux dropped support for the EXT3 journaling file system in kernel 2.4.9.
Now I feel dumb.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
kernel compile errors slinky2004 Linux - General 1 10-22-2005 05:16 PM
kernel compile - make errors hnad Slackware 5 09-18-2004 06:54 AM
kernel compile errors... ash4stuff Linux - Software 15 01-01-2004 04:48 PM
Kernel compile errors! kierse Slackware 4 12-04-2003 12:25 AM
kernel compile errors justwantin Slackware 2 08-23-2003 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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