LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-04-2009, 05:48 AM   #16
LinuxNewman
Member
 
Registered: Apr 2009
Posts: 42

Original Poster
Rep: Reputation: 15

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?
 
Old 06-04-2009, 05:55 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
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).
 
Old 06-04-2009, 06:04 AM   #18
LinuxNewman
Member
 
Registered: Apr 2009
Posts: 42

Original Poster
Rep: Reputation: 15
Oh...god ! Now my host bootloader is overwritten. What should I do now? Is there no way out?
 
Old 06-04-2009, 06:07 AM   #19
LinuxNewman
Member
 
Registered: Apr 2009
Posts: 42

Original Poster
Rep: Reputation: 15
Hey..WAIT !! I did not do anything in chapter 8.4 . I was waiting for your reply. So, nothing is overwritten.
 
Old 06-04-2009, 06:10 AM   #20
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
......... LOL ...... don't scare yourself like that
 
Old 06-04-2009, 06:26 AM   #21
LinuxNewman
Member
 
Registered: Apr 2009
Posts: 42

Original Poster
Rep: Reputation: 15
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.
 
Old 06-04-2009, 06:33 AM   #22
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
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.
 
Old 06-04-2009, 07:05 AM   #23
LinuxNewman
Member
 
Registered: Apr 2009
Posts: 42

Original Poster
Rep: Reputation: 15
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?
 
Old 06-04-2009, 07:20 AM   #24
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
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....
 
Old 06-08-2009, 02:35 AM   #25
LinuxNewman
Member
 
Registered: Apr 2009
Posts: 42

Original Poster
Rep: Reputation: 15
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.
 
Old 06-08-2009, 05:04 AM   #26
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
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.
 
Old 06-09-2009, 12:23 AM   #27
LinuxNewman
Member
 
Registered: Apr 2009
Posts: 42

Original Poster
Rep: Reputation: 15
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?
 
Old 06-09-2009, 03:04 AM   #28
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
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!
 
  


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
5.7. Adjusting the Toolchain LFS.6.3 need help foi Linux From Scratch 3 07-05-2008 08:30 PM
Adjusting the Toolchain in lfs 6.3 saritha Linux From Scratch 3 02-15-2008 02:31 AM
5.7 Adjusting the Toolchain Problem g3neration Linux From Scratch 2 09-08-2007 11:41 AM
Adjusting toolchain problem (in temport system) ChrisScott Linux From Scratch 6 01-21-2007 10:26 AM
LFS 6 ch5.9 adjusting the toolchain failed sanity check totty79 Linux From Scratch 1 03-21-2005 03:58 PM

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

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