LFS 7.2 Chapter 6.4 Chroot Environment Error
raza@raza-Inspiron-1564:~$ chroot "$LFS" /tools/bin/env -i \
> HOME=/root \ > TERM="$TERM" \ > PS1='\u:\w\$ ' \ > PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ > /tools/bin/bash --login +h chroot: cannot change root directory to : No such file or directory |
Quote:
Quote:
|
ok thanks
can you tell me the proper way to switch root user in Ubuntu ?? |
In ubuntu the root account is disabled by default so you have to use 'sudo' ie
Code:
sudo chroot "$LFS" /tools/bin/env -i \ |
I'm not 100% sure if sudo is the way to go. The root environment might not be fully set.
You can enable full root access in the following way: Code:
sudo passwd root Code:
su - |
i used the sudo but the error is same :(
|
Quote:
You might also want to have a look at this (as reference!!) : LFS 7.1 on Ubuntu 12.04 |
thanks druuna i got the access to root but problem is still problem :(
root@raza-Inspiron-1564:~# sudo chroot "$LFS" /tools/bin/env -i \ > HOME=/root \ > TERM="$TERM" \ > PS1='\u:\w\$ ' \ > PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ > /tools/bin/bash --login +h chroot: cannot change root directory to : No such file or directory now |
Quote:
|
i tried without sudo but same situation :(
|
What is the output of the following command (as root)
Code:
echo $LFS Quote:
|
this is shit how can i forget this :@
thank you very much for help :) |
All times are GMT -5. The time now is 01:01 PM. |