LinuxQuestions.org
Review your favorite Linux distribution.
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 06-15-2009, 10:57 AM   #16
arielsegal
Member
 
Registered: Jul 2007
Posts: 38

Original Poster
Rep: Reputation: 15

/mnt/lfs is a mounting point, and is indeed on RAM. After boot I mount the partition of the real disk, so /mnt/lfs/home is not on RAM but on disk. everything I change on /mnt/lfs is saved on disk, because I mounted this disk at /mnt/lfs.

If I change a file on /usr , after next boot it will be lost because /usr is on RAM.

I hope I explained myself. Do you see any problems with this?
 
Old 06-15-2009, 11:12 AM   #17
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Sorry but I really don't understand this and it is needlessly complicated.

Just mount /dev/hdaX on /mnt/lfs, /dev/hdaY as swap and follow the book.

Quote:
/mnt/lfs is a mounting point, and is indeed on RAM. After boot I mount the partition of the real disk, so /mnt/lfs/home is not on RAM but on disk. everything I change on /mnt/lfs is saved on disk, because I mounted this disk at /mnt/lfs.
I probably misunderstand, but there seems to be a contradiction here:

- /mnt/lfs is a mounting point, and is indeed on RAM
vs
- everything I change on /mnt/lfs is saved on disk, because I mounted this disk at /mnt/lfs

Which one is true? I assume the first one because of this: /mnt/lfs/home is not on RAM but on disk

Quote:
If I change a file on /usr , after next boot it will be lost because /usr is on RAM.
???
/usr -> is part of the cd not /mnt/lfs (the lfs build).

Like I said before, /mn/lfs is where your future lfs system is build (_not_ /mn/lfs/home!!)......
 
Old 06-15-2009, 11:54 AM   #18
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 42
Quote:
Originally Posted by druuna View Post
(besides: you are definately going to have some 'fun' with scripting this)
Yes, scripting LFS is a lot of "fun" (read: work). At the moment my installation consists 261 scripts shell-scripts. But it is definitely possible to construct a working LFS-system from a pile of scripts (basically you could reduce the number of scripts to probably 3, but this would turn the whole thing into a maintenance-nightmare).
 
Old 06-15-2009, 12:12 PM   #19
arielsegal
Member
 
Registered: Jul 2007
Posts: 38

Original Poster
Rep: Reputation: 15
druuna,
I do as you suggests. I only tried to explain why some things are lost when installing LFS from a live CD. If I never reboot, no script will be needed.

I have tried to add a file to /usr and it worked, but after boot it is lost. A live CD starts the FS hierarchy from initrd, which is a RAM disk, but down on the hierarchy it is saved on disk, because I mounted my disk.

I'm starting over from chapter 4. You have helped me allot. Thank you.
Ariel
 
  


Reply


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
LFS-5.0 GCC problem with binutils-2.14 pass 1 NCappaZoo Linux From Scratch 6 06-14-2009 04:47 AM
unable to compile gcc 4.1.2 pass 1 version 6.3 Abdou_ENSI Linux From Scratch 2 01-30-2009 12:28 PM
LFS - 5.4. GCC-3.4.3 - Pass 1 - Failed cruiseoveride Linux From Scratch 7 06-07-2007 11:34 PM
LFS GCC - first pass install error arnuld Linux From Scratch 2 12-20-2006 08:59 AM
Error Compiling GCC (1st Pass) in LFS 6.0 TGWDNGHN Linux From Scratch 1 06-30-2005 09:57 PM

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

All times are GMT -5. The time now is 12:46 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