cannot execute /bin/bash : No such file or Directory exists

yogesh prabhu yoge.org at gmail.com
Thu Aug 31 10:54:06 PDT 2006


Thanks Pv again ....
As per ur mail ....please note below

> Seems OK for me. I don't see a problem here.
>  Just a note, I asked you to run "ls -ld /" but you run "ls -l /".

Sorry, in my earlier mail i had made a mistake.
Now Please see the output of "ls -ld /" below
drwxr-xr-x  22 root root 4096 2006-08-25 04:18 /

>
> I guess you run the preceding commands (ldd/ls) from a LiveCD or another  distro you built >LFS from (or I misunderstand something).
>
> 1. Can you please show the sequence of commands  after which you're able  to operate on > your LFS partition from that another  distro?

Yeah ,as i cud not log on into my LFS , i use Livecd as another distro.
(could i log on without using another distro???)
Anyway my sequences using Live cd are as follows
1) mounting the partition as :  mount /dev/hdc6 $LFS

2)Mounting the virtual kernel file systems
mkdir -pv $LFS/{proc,sys}
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
mount -vft tmpfs tmpfs $LFS/dev
mount -vft tmpfs tmpfs $LFS/dev/shm
mount -vft devpts -o gid=4,mode=620 devpts $LFS/dev/pts

3) Then i enter chroot as
chroot "$LFS" /usr/bin/env -i \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin \
    /bin/bash --login
4)After i get root:/# prompt i do POPULATE /dev as per the book

>
> The contents of your LFS's /etc/fstab file will
> be useful as well.
>

 # Begin /etc/fstab
# filesystem  mount-point type   options          dump  fsck
                                                        order
/dev/hdc6         /        ext2   defaults         1     1
/dev/hdc10        swap     swap   pri=1            0     0
proc              /proc    proc   defaults         0     0
sysfs             /sys     sysfs  defaults         0     0
devpts            /dev/pts devpts gid=4,mode=620   0     0
shm               /dev/shm tmpfs  defaults         0     0
# End /etc/fstab

> 3. Also search for the following line in /etc/rc.d/init.d/mountfs
> and delete everything after '&' including the '&'.
> The line would become
> as follows

yeah i had deleted everything after the after & in the line mount -a
-O no_netdev
and now looks like ====> mount -a -O no_netdev
after i boot the script does not show anything abt the Failure,but the
immediate next script
..................................................................   [ok]
mounting remaining file systems ..................................
mount : mount point does not exist................................   [failed]

Can you Help me ???
Will this issue get solved ..
Thanks for you mail...


.....yoge



More information about the lfs-support mailing list