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 11-13-2012, 08:32 AM   #16
Only_Jeck
Member
 
Registered: Nov 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled

Quote:
For each package:
Using the tar program, extract the package to be built. In Chapter 5, ensure you are the lfs user when extracting the package.
Change to the directory created when the package was extracted.
Follow the book's instructions for building the package.
Change back to the sources directory.
Delete the extracted source directory and any <package>-build directories that were created in the build process unless instructed otherwise.
Every time, after "make install" command, I have to delete package directory (created by decompression) and if exist, the package-build directory. Right?
On deleting binutils-build, I take:

Code:
rm: remove write-protected regular file `binutils-build/bfd/po/SRC-POTFILES'?
Confirm and go ahead?
 
Old 11-13-2012, 08:42 AM   #17
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
Yes that is correct
 
2 members found this post helpful.
Old 11-14-2012, 02:47 AM   #18
Only_Jeck
Member
 
Registered: Nov 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
During creation of LFS system, can I reboot or shutdown pc?
The last time I did it, days ago, I lost all the content in /mnt/lfs directory... Therefore, for now, I'm constantly keeping the pc on.

Last edited by Only_Jeck; 11-14-2012 at 03:18 AM.
 
Old 11-14-2012, 03:42 AM   #19
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Quote:
Originally Posted by Only_Jeck View Post
During creation of LFS system, can I reboot or shutdown pc?
Yes, you can stop and restart (reboot) during the build.

A few pointers:
- After you restart you need to re-mount your LFS related partitions again (2.4. Mounting the New Partition).

- If you stop once you have started with chapter 6 you also need to mount dev and virtual file systems before you enter the chrooted environment (6.2. Preparing Virtual Kernel File Systems (steps 6.2.2 and 6.2.3) and the note at the bottom of 6.4. Entering the Chroot Environment).

- I never stop in the middle of a chapter, finish the chapter you are working on before stopping.
 
1 members found this post helpful.
Old 11-14-2012, 04:50 AM   #20
Only_Jeck
Member
 
Registered: Nov 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thanks, usefull
 
Old 11-14-2012, 06:35 AM   #21
Only_Jeck
Member
 
Registered: Nov 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
In chapter 5.34:

Quote:
The commands in the remainder of this book must be performed while logged in as user root and no longer as user lfs. Also, double check that $LFS is set in root's environment.
Actually I am in chapter 6. The operations here, must be made with root?
I tried to do:

Quote:
mkdir -v $LFS/{dev,proc,sys}
But with root I take this:

Code:
mkdir: impossibile creare la directory "/dev": File giÓ esistente
mkdir: impossibile creare la directory "/proc": File giÓ esistente
mkdir: impossibile creare la directory "/sys": File giÓ esistente
And with classic user or LFS user I take this:

Code:
mkdir: cannot create directory '/mnt/lfs/dev': Permission denied
mkdir: cannot create directory '/mnt/lfs/proc': Permission denied
mkdir: cannot create directory '/mnt/lfs/sys': Permission denied
What's the problem?
 
Old 11-14-2012, 06:47 AM   #22
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
As mentioned in the note, The commands in the remainder of this book must be performed while logged in as user root.

It can't be clearer than that.....

Chapter 4.4 up to and including 5.33 are done as user lfs, the rest of the book as root.
 
Old 11-14-2012, 06:55 AM   #23
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
OWhat is the output of echo $LFS as root
 
1 members found this post helpful.
Old 11-14-2012, 06:57 AM   #24
Only_Jeck
Member
 
Registered: Nov 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Well, but the fact remains:

Code:
mkdir: cannot create directory '/dev': file already exists
mkdir: cannot create directory '/proc': file already exists
mkdir: cannot create directory '/sys': file already exists
This with root and command: "mkdir -v $LFS/{dev,proc,sys}"

(sorry, previous code was in italian)

Seems that $LFS route (/mnt/lfs) is not known by root..
 
Old 11-14-2012, 06:58 AM   #25
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Quote:
Originally Posted by spiky0011 View Post
OWhat is the output of echo $LFS as root
Good catch!
 
Old 11-14-2012, 07:00 AM   #26
Only_Jeck
Member
 
Registered: Nov 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
OWhat is the output of echo $LFS as root
An empty line:

Code:
root@giacomo-notebook:~# echo $LFS

root@giacomo-notebook:~#
copied and pasted from terminal
 
Old 11-14-2012, 07:02 AM   #27
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Quote:
Originally Posted by Only_Jeck View Post
Seems that $LFS route (/mnt/lfs) is not known by root..
Sigh.......

What does the note in chapter 5.34 say?
Quote:
Also, double check that $LFS is set in root's environment.
Code:
export LFS=/mnt/lfs
or add that line to root's .bashrc to make it permanent.

Last edited by druuna; 11-14-2012 at 07:04 AM.
 
1 members found this post helpful.
Old 11-14-2012, 07:13 AM   #28
Only_Jeck
Member
 
Registered: Nov 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
I read it... I'm an ass... I know u hate me for this.

Which command to set $LFS in root's environment?
 
Old 11-14-2012, 07:16 AM   #29
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
Tips hat to druuna
 
Old 11-14-2012, 07:18 AM   #30
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
As pointed out by druuna export LFS=/mnt/lfs
 
1 members found this post helpful.
  


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
Constructing a Temporary System - Binutils - Pass 2 Question elagano Linux From Scratch 6 10-27-2011 09:05 AM
[SOLVED] Temporary short-term system "freeze"? brucehinrichs Linux - Laptop and Netbook 8 06-22-2010 02:06 PM
system temporary locks randomly in ubuntu hardy and zenwalk wabbalee Linux - Kernel 17 07-23-2008 10:28 PM
Compiling Temporary System tools SupremeOverlord Linux From Scratch 5 03-19-2008 08:12 PM
Temporary System Freeze mingli Red Hat 2 05-09-2004 09:33 PM


All times are GMT -5. The time now is 07:15 PM.

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