[SOLVED] A mistake at Chapter 6 has crashed the system
Linux From ScratchThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
The reference book is LFS 7.0.
Host system is Ubuntu 11.10.
I will try to recall all the steps I have done before the problem appeared, but it can be not precise...
I had to reload the system after Chapter 5.3 "Stripping", then continued from Chapter 5.4. It seems that at Chapter 6.4. "Entering the Chroot Environment" the root directory was not changed, because the directory /sources was not accessible. But I did not pay attention and continued up to Chapter "6.7. Linux-3.1 API Headers". So all the directories and links of chapters 6.5 and 6.6 where created over another root directory.
Moreover, it seems I entered as a root when creating directories after the message ".. have no permissions" appeared.
Then I rebooted the PC and I am observing the black screen now. Grub2 screen allows to access to rescue mode, but I have no idea what to do there to repair the system.
Now the questions: Could you, please, explain me what can be done to repair my host system, and why the fault has happen?
I assume the problem is that the files /etc/passwd and /etc/group were redefined on the host system by the commands in Chapter 6.6. Might be a good idea to restore them from another host. Other thoughts?
Yes, re-installation can be a solution but not for a LFS user .)
As I sad I still have access to the shell, the black screen appears and holds after the Ubuntu logo with dots. Looks like I still have a chance to recover.