Linux From ScratchThis 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.
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.
Because make install-gpm isn't part of the gpm build.....
(Here we go again) As stated in the book:
Quote:
Boot Script
Install the /etc/rc.d/init.d/gpm init script included in the blfs-bootscripts-20100825 package.
make install-gpm
I also have the feeling you did not:
- read chapter 2, especially the BLFS Boot Scripts part,
- do chapter 3, otherwise you would have come across this issue already.
hi druuna,before doing the things i want to understand the things first then i will move
what i am understand[i read once] from blfs book is:
1)chapter 1,2 is for basic information right?[we have to read it]
2)blfs work will start from chapter 3,but before this chapter-3 i need to install gpm[for mouse]
3)in gpm
below one is non root user[in my case user is janu]
./configure --prefix=/usr --sysconfdir=/etc &&
make
4)for this command 'make install-gpm'
first i need to download blfs-bootscript package to /sources dir,there i need to untar it
then cd into blfs-bootscript dir:like
-bash-4.1#pwd
/sources/ blfs-bootscript
-bash-4.1# make install-gpm
is right?
5)i need to create following cat command 'in gpm extracted dir' right?
[means -bash-4.1#pwd
/sources/gpm-1.20.6
-bash-4.1# cat /etc/sysconfig/mouse file
MDEVICE="/dev/input/mice"[because i am using pc-desktop,usb mouse]
PROTOCOL="imps2"
GPMOPTS="
> 1 step)
> i created file cat > /etc/sysconfig/mouse
> message was not created mouse ,then unfortunaltely i deleted sysconfig dir in etc/dir
>
[how to get back those other files other than mouse in /etc/sysconfig dir*]
>
> 2-step)i created mkdir sysconfig dir in etc/ dir
> then again i created file cat > /etc/sysconfig/mouse
> this time k
>
> 3 step) i rebooted
> on screen below message
> message /etc/rc.d/init.d/rc:line15:/etc/sysconfig/rc:No such file or
> directory
> INIT:id "1"respawning too fast:disabled for 5 minutes
> INIT:id "3"respawning too fast:disabled for 5 minutes
> INIT:id "5"respawning too fast:disabled for 5 minutes
> INIT:id "4"respawning too fast:disabled for 5 minutes
> INIT:id "6"respawning too fast:disabled for 5 minutes
> INIT:no more processes left in this runlevel
> INIT:id "3"respawning too fast:disabled for 5 minutes
> INIT:id "5"respawning too fast:disabled for 5 minutes
> ........................................ going on........
4)for this command 'make install-gpm'
first i need to download blfs-bootscript package to /sources dir,there i need to untar it
then cd into blfs-bootscript dir:like
-bash-4.1#pwd
/sources/ blfs-bootscript
-bash-4.1# make install-gpm
is right?
Did you have any problems when you executed this? Experiment a bit, you can only learn by making mistakes and finding out what you did wrong. If I tell you "Yes, this is correct", you wont learn anything at all.
A tip: extract the blfs bootscripts in /etc/rc.d/init.d. I personally think this is a more suitable location (you might remove the sources directory at one point).
Quote:
5)i need to create following cat command 'in gpm extracted dir' right?
is this right?
No it is not. The location of the file that will be created is inside the cat command, it doesn't matter where you execute it.
Code:
cat > /etc/sysconfig/mouse << "EOF"
# Begin /etc/sysconfig/mouse
MDEVICE="<yourdevice>"
PROTOCOL="<yourprotocol>"
GPMOPTS="<additional options>"
# End /etc/sysconfig/mouse
EOF
The above part does the following: It creates a file called /etc/sysconfig/mouse and fills that file with everything between EOF and EOF (a so called HERE-Document).
then unfortunaltely i deleted sysconfig dir in etc/dir
> 2-step)i created mkdir sysconfig dir in etc/ dir
Recreating that directory isn't enough. While building LFS more files were created in that directory. You need to check all the steps in LFS chapter 6 (and possibly 7/8) to find out which files you need to recreate.
after rebooting still that lines are going on since 1 hour -step3) on post#4
is that because of we missed some[Those files would have come from lfs-how to get back those]files in /etc/sysconfig dir??
after rebooting still that lines are going on since 1 hour -step3) on post#4
is that because of we missed some[Those files would have come from lfs-how to get back those]files in /etc/sysconfig dir??
what to do in my case ,plz suggest any idea
See post #6: You need to recreate all the files that are supposed to be in /etc/sysconfig/. The only way you can find out which files that are: Check all of chapter 6 of the LFS book.
hi duuna
today i rebooted system
i inserted lfs-live cd started checking like below: 1]i done chapter2.4 to chapter4 2]then exited from lfs user then root[ / ]# chapter5.33,after this return root[ / ]# 3]then root[ / ]#here i done chapter 6.2,6.2.1,6.2.2,6.2.3 4]then root[ / ]#6.63. Cleaning Up ,result is root[ / ]#[in white] 5]root[ / ]#[in white]here i redone chapter7 6)then root[ / ]#[in white] chapter 8,in chapter 8:
my fdisk -l :result is sda1-lfs,sda2-swap,sda3-rest partition[i mounted to /media]
but in my fstab file,i used below
/dev/hda1-ext3,/dev/hda2-swap
then root[ / ]#[in white]8.4.2. Setting Up the Configuration
grub-install /dev/sda [here i remove '--grub-setup=/bin/true' part because i dont have any other os[like windows] this time]
result is below:
installtion finished,no error reported 7]then root[ / ]#[in white]grub-mkconfig -o /boot/grub/grub.cfg
result is below
generating grub.cfg..........
found linux image:/boot/linux-2.6.35.4-lfs-6.7
done
[in boot/grub/grub.cfg file>
some starting part
### BEGIN /etc/grub.d/10_linux ###
menuentry "GNU/Linux, Linux 2.6.35.4-lfs-6.7" {
insmod ext2
set root='(hd0,1)'] 8]root[ / ]#[in white]/sbin/reboot
...
grub> root (hd0,1)
grub> kernel /boot/grub/core.img
grub> boot
after issuing above command,its rebooted then its not booting into grubvvvvvvv[its booting into lfs live cd]
[ in /mnt/lfs/ existed this file 'grubvvvvvvv']
am i done any mistake??
Last edited by janakiramulu; 05-11-2011 at 03:01 AM.
hi druuna
this time i removed lfs-livecd from cd-rom,
on grub menu i selected 'GNU-LINUX.linux -lfs-6.7'
after some time following message
FAILURE:
file system errors were encountered that could not be fixed automatically.this sysytem cannot continue to boot and will therefore be halted until those errors are fixed manually by a system administrator.
after you press enter,this system will be halter and powered off.
press enter to continue..............
what to do??
any solution?
Last edited by janakiramulu; 05-11-2011 at 03:00 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.