LinuxQuestions.org
Visit Jeremy's Blog.
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, 07:02 AM   #1
sunmoon
LQ Newbie
 
Registered: Feb 2012
Location: Italy
Distribution: Debian 9
Posts: 13

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, 12:15 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Here is a good page to look
https://help.ubuntu.com/community/LiveCdRecovery
 
Old 02-21-2012, 12:35 PM   #3
sunmoon
LQ Newbie
 
Registered: Feb 2012
Location: Italy
Distribution: Debian 9
Posts: 13

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, 12:40 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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, 12:47 PM   #5
sunmoon
LQ Newbie
 
Registered: Feb 2012
Location: Italy
Distribution: Debian 9
Posts: 13

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, 12:50 PM   #6
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
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, 01:03 PM   #7
sunmoon
LQ Newbie
 
Registered: Feb 2012
Location: Italy
Distribution: Debian 9
Posts: 13

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:04 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration