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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
06-04-2009, 04:48 AM
|
#16
|
Member
Registered: Apr 2009
Posts: 42
Original Poster
Rep:
|
Thanks for the info :-)
Now I am on the verge of making menu.lst file. If I do anything wrong, I will be doomed to start it again. Can I just copy all the entries of the menu.lst file of my host system and add the LFS entry to it at last? This way, I can use both my host system and LFS.
Or else, do you have any suggestions?
|
|
|
06-04-2009, 04:55 AM
|
#17
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
If grub is already present for your host system, you can add a lfs entry to it. That should work, I do hope you did think about that _before_ you did chapter 8.4. You do not need/want to do this chapter if you use the bootloader (probably grub) from your host. If you did do chapter 8.4, your current (host) bootloader is probably overwritten.......
BTW: You can always go back to LFS using the chroot method described in chapter 6.61 (you do need to be able to start your computer, be it your host or a liveCD).
|
|
|
06-04-2009, 05:04 AM
|
#18
|
Member
Registered: Apr 2009
Posts: 42
Original Poster
Rep:
|
Oh...god ! Now my host bootloader is overwritten. What should I do now? Is there no way out?
|
|
|
06-04-2009, 05:07 AM
|
#19
|
Member
Registered: Apr 2009
Posts: 42
Original Poster
Rep:
|
Hey..WAIT !! I did not do anything in chapter 8.4 . I was waiting for your reply. So, nothing is overwritten.
|
|
|
06-04-2009, 05:10 AM
|
#20
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
......... LOL ...... don't scare yourself like that 
|
|
|
06-04-2009, 05:26 AM
|
#21
|
Member
Registered: Apr 2009
Posts: 42
Original Poster
Rep:
|
LOL I get scared when something happens to grub and fstab. I have previous experience of doing wrong things in those two files and crashing my system.
Now I am in 9.3. Rebooting the System
Is it necessary to do all the umount like:
umount -v $LFS/dev/pts
umount -v $LFS/dev/shm
umount -v $LFS/dev
umount -v $LFS/proc
umount -v $LFS/sys
and other umounts mentioned? I suspect that it may do something wrong to my host system.Is it safe?
By the way, I have copied the grub and fstab files in the LFS partition.
|
|
|
06-04-2009, 05:33 AM
|
#22
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
Quote:
and other umounts mentioned? I suspect that it may do something wrong to my host system.Is it safe?
|
You should unmount them, there is a small chance that you system will hang during the reboot if you don't. A hard reset will solve a hang.
Quote:
By the way, I have copied the grub and fstab files in the LFS partition.
|
All the grub related stuff in LFS is not needed if you use grub from your host. Depending on how fast you get confused, you could decide to remove the LFS related grub files, but that is up to you. No harm is done when the files stay installed.
|
|
|
06-04-2009, 06:05 AM
|
#23
|
Member
Registered: Apr 2009
Posts: 42
Original Poster
Rep:
|
lol...after doing this much in LFS, the result I get on rebooting is : a fully blank screen with last two LEDs of my keyboard flashing continuously !
Every test went correct.The LFS was installed correctly.Sigh...what happened now? Do you have any idea?
|
|
|
06-04-2009, 06:20 AM
|
#24
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi again,
- Are you still able to boot into your host system?
- Does grub work (ie: no messages from grub about the new lfs entry)?
- No (error) messages, whatsoever?
- Are you sure you set up the (lfs) kernel correctly?
I personally think it is a kernel setting, but that is an assumption. Let's first try to find out if it is....
|
|
|
06-08-2009, 01:35 AM
|
#25
|
Member
Registered: Apr 2009
Posts: 42
Original Poster
Rep:
|
Hi !
I had wrong settings in the menu.lst file.When I corrected it, it started working. Still there are some things which I do not understand. So, I am telling you from the beginning what happens when I start the system.
When I power on, it gives 3 choices (2 are SuSe and the third is LFS).When I choose LFS, The system boots up and what I see is a series of checks which have [OK]. The it tells me to login. I use the name "root" and my password.Then it displays like this :
-bash-3.2#
I was exploring a bit and when I simply gave the command "su", the display became this:
bash-3.2#
This time, the "-" vanished !! What is its significance?
Now I am facing another problem. When I do "cd" into some directory, it goes inside the directory but, it does not show in the command prompt that is is there.For example :
-bash-3.2# cd newfolder
-bash-3.2# ls (note: although it is not showing, it is inside the folder this will become clear when I give the command "ls")
cprograms display.c display
Please tell me why is it not showing that it is inside that directory.
|
|
|
06-08-2009, 04:04 AM
|
#26
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi again,
Glad to read you resolved the grub problem
Quote:
I was exploring a bit and when I simply gave the command "su", the display became this:
bash-3.2#
This time, the "-" vanished !! What is its significance?
|
Bot commands ( su and su - are valid commands. You decide which one you need/want at the time (su - gives you a complete environment, su on the other hand keeps the environment of the user that has giving the command. Do take a look at su's manpage man su).
Quote:
When I do "cd" into some directory, it goes inside the directory but, it does not show in the command prompt that is is there.
|
How the prompt looks is a personal preference. Some like the 'default' prompt the distro gives you, other want something else completely.
Take a look at the Bash Prompt HOWTO page, this will give you an idea what is possible.
In general: After you finished LFS you have a very basic (but working) linux box. The next step would be BLFS, which holds all the goodies and also some pointers concerning (user) environment settings (chapter 3).
BLFS does not follow the same 'rules' as LFS: BLFS is a collection of software, you decide what you want and install those (including the dependencies, of course...). You don't need to start at chapter 4 and work your way al the way thru to the end. Do take a look at chapters 2 and 3.
|
|
|
06-08-2009, 11:23 PM
|
#27
|
Member
Registered: Apr 2009
Posts: 42
Original Poster
Rep:
|
I thank you for the help you have provided. I hope this thread will help somebody who is doing LFS and is new to Linux just like me. Doing LFS and getting your help in forums taught me many basic things. As you have suggested, I am planning to venture into BLFS. But before that, I have to complete the work I began.I am planning to develop a very small(about 16 to 20 MB) Linux system for embedded systems. Do you have any suggested readings?
|
|
|
06-09-2009, 02:04 AM
|
#28
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
I don't have any experience with embedded (linux) systems, so I cannot help you there. I have seen thread on LQ that dealt with embedded systems so we (the LQ crowd) should be able to help with specific problems/questions.
There are some (very) small distro's around (take a look at distrowatch or feed your searchengine with: small linux distro), maybe you should take a look at those to get an idea how they are set up.
Hope you have fun with (B)LFS and the embedded system!
|
|
|
All times are GMT -5. The time now is 11:15 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|