LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-13-2013, 02:36 AM   #1
dpak.verma.maa@gmail.com
LQ Newbie
 
Registered: Jan 2013
Posts: 27

Rep: Reputation: Disabled
Anyone help me i have problem on LFS 6.3 !!!!


HI,
this is my first thread so forgive me for my mistakes ,
i was copying file on the boot directory , it says
The path to the kernel image may vary depending on the platform being used. The following command assumes an
x86 architecture:

cp -v arch/i386/boot/bzImage /boot/lfskernel-2.6.22.5

what is the path i am little confused with it , this is on the chapter 8.3.1 can any one please help me
thank you in advance
 
Old 01-13-2013, 03:47 AM   #2
wigry
Member
 
Registered: Jul 2004
Distribution: slackware
Posts: 217

Rep: Reputation: 52
What guide/book are you using? Link please! Also as I understand you are trying to do a custom kernel compilation? What distro are you using and why you need the custom kernel? Also what does that LFS 6.3 mean? And finally WHY are you dealing with 2.6.22 kernel, that is a VERY old kernel, first it is 2.6 series (we have 3.7 already) and second, the most current 2.6 series is 2.6.39 if I remember correctly and even that is more than a year old.
 
Old 01-13-2013, 03:58 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
@wigry: This is Linux From Scratch related (LFS)

@dpak.verma.maa@gmail.com: Depending on your architecture (32/i386 or 64/x86_64) the kernel image is either created in arch/i386/boot/ or arch/x86_64/boot/ for this kernel (things have changed for the new 3.x kernels ).

BTW: wigry is correct in stating that all this is very old. Why didn't you build the current stable LFS?

PS: I've asked a moderator to move this thread to the LFS sub-forum.
 
Old 01-13-2013, 04:18 AM   #4
wigry
Member
 
Registered: Jul 2004
Distribution: slackware
Posts: 217

Rep: Reputation: 52
LFS is quite interesting choice for a apparently relatively new Linux user. Too many ways to get your fingers burned but provides massive amount of experience and unfortunately frustration and disappointment but eventually pays off I guess.
 
Old 01-13-2013, 10:24 AM   #5
dpak.verma.maa@gmail.com
LQ Newbie
 
Registered: Jan 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
Thank you every one for the reply,
Can we skip the following command before starting GRUB
dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1
 
Old 01-13-2013, 10:34 AM   #6
dpak.verma.maa@gmail.com
LQ Newbie
 
Registered: Jan 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
GRUB uses its own naming structure for drives and partitions in the form of (hdn,m)
i have 2 partition e.g sda1 which is swap and sda2 is lfs partition
> is this command "root (hd0,1) " correct ?
 
Old 01-13-2013, 10:35 AM   #7
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,453

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Moved: This thread is more suitable in Linux From Scratch forum and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 01-13-2013, 10:40 AM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi

You should have root=(hd0,2)

hd0 is the 1st hard drive ,2 is the 2nd partition

Quote:
Can we skip the following command before starting GRUB
dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1
where dose this come from

sorry found it that command is for making a bootable floppy disc

Last edited by spiky0011; 01-13-2013 at 10:42 AM.
 
1 members found this post helpful.
Old 01-13-2013, 12:34 PM   #9
dpak.verma.maa@gmail.com
LQ Newbie
 
Registered: Jan 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
@spiky0011
On which dir am i supposed to run the grub command.
 
Old 01-13-2013, 12:37 PM   #10
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi

It dosn't matter where you are running the command
 
Old 01-13-2013, 12:53 PM   #11
dpak.verma.maa@gmail.com
LQ Newbie
 
Registered: Jan 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
HI,
It says Bash: grub command not found.
i tried on root and sources .
 
Old 01-13-2013, 12:59 PM   #12
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
What is inside lfs boot dir
 
Old 01-13-2013, 01:04 PM   #13
dpak.verma.maa@gmail.com
LQ Newbie
 
Registered: Jan 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
lfskernal, system.map, config.
 
Old 01-13-2013, 01:10 PM   #14
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Did you install grub???

There should be a dir called grub in there.

The only problem is I dont have any old lfs systems about so cant help to much, I would go back and maybe reinstall grub.

There should also be a grub folder in usr/lib/grub just check for that as well
 
Old 01-13-2013, 01:44 PM   #15
dpak.verma.maa@gmail.com
LQ Newbie
 
Registered: Jan 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
usr/lib/grub is not there , i think i missed installing it.
 
  


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
Gcc 4.6.1 can't Find in /mnt/lfs/tools on LFS verison 7.0 using LFS_TGT xerofoify Linux From Scratch 20 08-03-2012 12:55 PM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 08:13 PM


All times are GMT -5. The time now is 02:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration