LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   gcc second pass does not compile. LFS version 6.4 5.12 (https://www.linuxquestions.org/questions/linux-from-scratch-13/gcc-second-pass-does-not-compile-lfs-version-6-4-5-12-a-732813/)

arielsegal 06-15-2009 09:57 AM

/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?

druuna 06-15-2009 10:12 AM

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!!)......

reptiler 06-15-2009 10:54 AM

Quote:

Originally Posted by druuna (Post 3574330)
(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).

arielsegal 06-15-2009 11:12 AM

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


All times are GMT -5. The time now is 06:18 AM.