LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
LinkBack Search this Thread
Old 01-03-2012, 04:00 PM   #1
ubuntudude12
LQ Newbie
 
Registered: Dec 2011
Posts: 20

Rep: Reputation: Disabled
sh prompt in LFS system.


Hi,

I have finished my first LFS system. When I boot it, the prompt says sh, not bash. When I try to run a command, the shell reports that the command was not found. The only command that doesn't produce an error is the cd command, but it doesn't change my directory. I am using LFS 7.0. Does anyone know how to fix this?

-Aaron
 
Old 01-03-2012, 04:48 PM   #2
spiky0011
Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: UBUTNU 11.04/11.10/12.04/LFS
Posts: 649

Rep: Reputation: 54
What is the output of
Code:
ls -al /bin/sh
and
Code:
ls -al /bin/bash
 
Old 01-03-2012, 04:50 PM   #3
spiky0011
Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: UBUTNU 11.04/11.10/12.04/LFS
Posts: 649

Rep: Reputation: 54
Maybe
Code:
echo $PATH
output as well & root
 
Old 01-03-2012, 06:16 PM   #4
ubuntudude12
LQ Newbie
 
Registered: Dec 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
Arrow

Hi,

As I stated previously, the ls command does not work on my LFS build. Instead, I ran the twols commands on my host distribution, adding /mnt/lfs in from of /bin/sh and /bin/bash. /mnt/lfs is the location of LFS on my computer. The output of ls -al /mnt/lfs/bin/sh is:
Code:
lrwxrwxrwx 1 root root 4 Dec 27 00:22 /mnt/lfs/bin/sh -> bash
The output of ls -al /mnt/lfs/bin/bash is:
Code:
-rwxr-xr-x 1 root root 1991497 Dec 29 13:34 /mnt/lfs/bin/bash
Running echo $PATH on my LFS build produces the following result:
Code:
/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin.
I hope this helps.

-Aaron
 
Old 01-04-2012, 07:44 AM   #5
spiky0011
Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: UBUTNU 11.04/11.10/12.04/LFS
Posts: 649

Rep: Reputation: 54
Cam you run /bin/bash from lfs system or sudo /bin/bash then see if the other commands work
 
Old 01-04-2012, 11:46 AM   #6
spiky0011
Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: UBUTNU 11.04/11.10/12.04/LFS
Posts: 649

Rep: Reputation: 54
Found these
http://www.thegeekstuff.com/2009/10/...-csh-ksh-tcsh/

http://www.codecoffee.com/tipsforlin...icles/030.html

Post /etc/passwd on lfs

Last edited by spiky0011; 01-04-2012 at 01:37 PM.
 
Old 01-05-2012, 06:12 PM   #7
ubuntudude12
LQ Newbie
 
Registered: Dec 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
Arrow

Hi,

Running /bin/bash on my lfs system produces the following result:
Code:
bash: no job control in this shell
Running sudo /bin/bash om my lfs system produces the following result:
Code:
bash: sudo: command not found
My lfs /etc/passwd file is as follows:
Code:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/dev/null:/bin/false
nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
-Aaron

Last edited by ubuntudude12; 01-05-2012 at 06:13 PM. Reason: Incorrect bold tag
 
Old 01-06-2012, 11:16 AM   #8
spiky0011
Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: UBUTNU 11.04/11.10/12.04/LFS
Posts: 649

Rep: Reputation: 54
Your passwd file is ok
The sym links are all there you have all the same permissons as mine
I presume you have redone bash just in case, maybe something went wrong there.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
Building an LFS system from another system z3r0star21 Linux From Scratch 6 11-08-2005 03:13 AM
mysql at system login prompt jcwalnut Linux - Software 0 09-25-2004 02:06 AM
First LFS system Tez218 Linux From Scratch 1 10-25-2003 12:07 AM
Your LFS system mediab0x Linux From Scratch 3 07-14-2003 05:20 AM


All times are GMT -5. The time now is 06:27 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration