LinuxQuestions.org
Help answer threads with 0 replies.
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
 
Search this Thread
Old 02-21-2012, 06:02 AM   #1
sunmoon
LQ Newbie
 
Registered: Feb 2012
Distribution: Ubuntu, LFS
Posts: 9

Rep: Reputation: Disabled
A mistake at Chapter 6 has crashed the system


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?

Regards...
 
Old 02-21-2012, 11:15 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi

Here is a good page to look
https://help.ubuntu.com/community/LiveCdRecovery
 
Old 02-21-2012, 11:35 AM   #3
sunmoon
LQ Newbie
 
Registered: Feb 2012
Distribution: Ubuntu, LFS
Posts: 9

Original Poster
Rep: Reputation: Disabled
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?
 
Old 02-21-2012, 11:40 AM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi

The link I posted shows how to create a new user
You could then give them root privilages.
Might be easier to reinstall if you have over written other dirs/files
 
Old 02-21-2012, 11:47 AM   #5
sunmoon
LQ Newbie
 
Registered: Feb 2012
Distribution: Ubuntu, LFS
Posts: 9

Original Poster
Rep: Reputation: Disabled
Tnx, spiky0011
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.
 
Old 02-21-2012, 11:50 AM   #6
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 458

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by sunmoon

I assume the problem is that the files /etc/passwd and /etc/group were redefined...
Both of those may have hidden backups. It's worth a try anyway.
 
1 members found this post helpful.
Old 02-21-2012, 12:03 PM   #7
sunmoon
LQ Newbie
 
Registered: Feb 2012
Distribution: Ubuntu, LFS
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by stoat View Post
Both of those may have hidden backups.
Helped!
Code:
cp /etc/group- /etc/group
cp /etc/passwd- /etc/passwd
I have working system now! Tnx a lot!
 
  


Reply

Tags
lfs


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
Moved system files and system crashed soofi Linux - Newbie 4 02-02-2011 11:42 PM
I've deleted /bin by mistake. Now I can't boot my Slackware64 13 system. glore2002 Slackware 16 09-06-2009 07:39 PM
Chapter 6 Building the LFS System brayden516 Linux From Scratch 1 05-01-2008 11:41 AM
Mistake configuring X Window System; how do I get back to terminal? audiorevolution Debian 6 05-22-2005 02:06 AM
DUMB Mistake: installed RH9 rpm's on RH8 system ToBe Red Hat 5 09-23-2003 01:22 PM


All times are GMT -5. The time now is 01:58 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 Google+: linuxquestions
Open Source Consulting | Domain Registration