LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-01-2007, 01:01 AM   #1
AkBrian
Member
 
Registered: Aug 2003
Location: Alaska
Distribution: Mandrake, Redhat
Posts: 31

Rep: Reputation: 15
LFS-book vs LiveCD-hints Chapter 6.2 confusion


Nuther Newbie here,

host: live cd 6.2.5
book: 6.2
addition resource: LFS hints; install-lfs-from-livecd.txt

http://www.linuxfromscratch.org/hint...rom-livecd.txt

I understand the purpose of lsfchroot.sh in the hints file, but I'm a little confused about why the the difference between the LFS book and LFS Livecd hints in the sections 6.2.2 and 6.2.3.

book;
mount --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts
mount -vt tmpfs shm $LFS/dev/shm
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys

LiveCD hints lsfchroot.sh script (partial-clipped);
mount -t proc proc $LFS/proc
mount -t sysfs sysfs $LFS/sys
mount -f -t ramfs ramfs $LFS/dev
mount -f -t tmpfs tmpfs $LFS/dev/shm
mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts

Can anyone offer any clarification?
 
Old 03-01-2007, 09:34 AM   #2
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
well, a good question:
what version of the liveCD are you working with?
[ assuming you are working with the book as currently posted on the lfs website ]

part of the differences could be to version differences between the cd and the book as posted on the website.

a bigger role would be that the livecd os is all in ram, you have to alter the procedure slightly from using an installed host system, in order to actually chroot to the build system. as a ram only os, the livecd pointers are session based, causing the requirement of uing the proc system to change the root of the system to the under construction os on the hardware.
 
Old 03-04-2007, 09:03 PM   #3
AkBrian
Member
 
Registered: Aug 2003
Location: Alaska
Distribution: Mandrake, Redhat
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks. Sorry for taking so long to get back to you. I'm using version 6.2.5 of the live CD, and yes it was the current book as of about a month ago.
Rather than using the scripts, I've gone ahead and used the hibernate feature, storing the current session to swap, as no other OS uses this hardrive. Seems to be working OK as I crawl through the book, learning the stuff I probably already should have known.

purely FYI, I use the live CD with generous use of console mouse cut and paste, using;
shell 1: lynx and the html format of the book.
shell 2: system command prompt and man pages
shell 3: working environment ie: $LFS
 
  


Reply



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
LFS Chapter 5 Questions kz_chopper Linux From Scratch 7 02-04-2007 08:53 AM
lfs chapter 6.12 deucedlt Linux From Scratch 1 08-13-2006 10:03 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
chapter 6.3 of LFS 6.1 Stamp Linux From Scratch 2 07-22-2005 07:10 AM
LFS 5.0 Chapter 5 cuco76 Linux From Scratch 1 11-23-2003 10:28 PM

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

All times are GMT -5. The time now is 04:54 PM.

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