LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 11-16-2011, 01:48 PM   #91
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10

Code:
It may also be useful for us to see the output of 
Code:
ls -l /boot
host:
Code:
root@ubuntu:/home/devilboy/Desktop# ls -la /boot/
total 21144
drwxr-xr-x  3 root root     4096 2011-11-15 07:34 .
drwxr-xr-x 23 root root     4096 2011-11-15 07:06 ..
-rw-r--r--  1 root root   734707 2011-10-07 13:37 abi-3.0.0-12-generic
-rw-r--r--  1 root root   141616 2011-10-07 13:37 config-3.0.0-12-generic
drwxr-xr-x  3 root root    12288 2011-11-16 08:21 grub
-rw-r--r--  1 root root 13618913 2011-11-10 08:04 initrd.img-3.0.0-12-generic
-rw-r--r--  1 root root   176764 2011-05-02 15:53 memtest86+.bin
-rw-r--r--  1 root root   178944 2011-05-02 15:53 memtest86+_multiboot.bin
-rw-------  1 root root  2130938 2011-10-07 13:37 System.map-3.0.0-12-generic
-rw-------  1 root root     1215 2011-10-07 13:40 vmcoreinfo-3.0.0-12-generic
-rw-r--r--  1 root root  4632128 2011-10-12 07:36 vmlinuz-3.0.0-12-generic
LFS:
Code:
root@ubuntu:/home/devilboy/Desktop# ls -la /mnt/lfs/boot/
total 7032
drwxr-xr-x  2 root root    4096 2011-11-16 10:22 .
drwxr-xr-x 23 root root    4096 2011-11-16 11:39 ..
-rw-r--r--  1 root root   81749 2011-11-16 10:22 config-3.1
-rw-r--r--  1 root root 2001853 2011-11-16 10:22 System.map-3.1
-rw-r--r--  1 root root 5104896 2011-11-16 10:22 vmlinuz-3.1-lfs-7.0
 
Old 11-16-2011, 01:51 PM   #92
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
Code:
A suggestion at grub select c type set root=(hd then tab what is the output
nothing.there's no such a command
 
Old 11-16-2011, 01:56 PM   #93
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
reboot then when grub screen appears hit c that will give grub prompt type
Code:
set root=(hd
then press tab key that will show drive options hd.0 hd,1 etc
 
Old 11-16-2011, 02:03 PM   #94
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
Code:
set root=(hd
there are two options hd0 and hd1
 
Old 11-16-2011, 02:08 PM   #95
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
so we all agree "put me right if i,m wrong " that grub can see 2nd harddrive.
 
Old 11-16-2011, 02:08 PM   #96
Roken
Member
 
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 300
Blog Entries: 1

Rep: Reputation: 55
I'm not too sure if this will help, but have you done a clean hard reboot since making changes? If not, power down and leave for 30 seconds, then power up.

The reason I ask is that you have CONFIG_KEXEC=y, which is used for fast rebooting with the same kernel. Whilst if the kernel changes it should reload, I'm wondering if KEXEC is rebooting to the kernel held in memory, rather than the modified kernel. It shouldn't, but strange things happen sometimes.
 
Old 11-16-2011, 02:27 PM   #97
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I would like to see the out put of. "Reboot" grub prompt again then c
Code:
set root=(hd1.msdos
then tab
 
Old 11-16-2011, 02:34 PM   #98
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
http://hotfile.com/dl/135225951/6d4bb20/msdos.png.html

and i have two options:msdos1 and msdos2
 
Old 11-16-2011, 02:38 PM   #99
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've just had a look at your .config file and changed a lot of settings. Try the following after saving the included .config file:
Code:
# from your host, as root:
cp /where/you/stored/downloaded/.config /mnt/lfs/usr/src/.config

# from inside the chrooted environment:
cd /usr/src/linux-3.1
make mrproper
cp /usr/src/.config .config
make menuconfig
# no changes are needed, exit and possibly safe (the make menuconfig is a precaution step)
make
make modules_install

cp -v arch/x86/boot/bzImage /boot/vmlinuz-3.1-lfs-7.0
cp -v System.map /boot/System.map-3.1
cp -v .config /boot/config-3.1
Exit the chrooted environment and re-boot, select LFS 7.0 and keep your fingers crossed!

New kernel .config: http://pastebin.com/QYGsytTf

Hope this helps.
 
1 members found this post helpful.
Old 11-16-2011, 03:17 PM   #100
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
thank you drunna. i'm not getting that error anymore.but i'm stuck in this point:
http://hotfile.com/dl/135229647/9a2b...ocess.png.html

my machine just stuck and i can't use my keyboard!!!
 
Old 11-16-2011, 03:27 PM   #101
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,

Either:
- There's another kernel option that is incorrect (I focussed on drives, not other stuff).
- Something is wrong with your /etc/inttab file.

But without knowing what has scrolled off-screen I cannot be sure. We probably need to see that info as well.

If I look at the /etc/inittab file you posted in post #29 (_if_ that one is still relevant!!): It does look OK.
 
Old 11-16-2011, 03:34 PM   #102
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
why it's trying to enter in runlevel 3,4 and 5.it should enter in runlevel 1 because there is no X. am i right?
 
Old 11-16-2011, 03:40 PM   #103
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
this is another video:
http://hotfile.com/dl/135231437/593f36c/run.rar.html
 
Old 11-16-2011, 03:40 PM   #104
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:
Originally Posted by devilboy09 View Post
why it's trying to enter in runlevel 3,4 and 5.it should enter in runlevel 1 because there is no X. am i right?
Nope.

LFS starts in runlevel 3 (command mode).

runlevel 5 would start X (not done in LFS, BLFS has that part).

runlevel 1 is a safe mode where almost nothing is started (bare essentials)
runlevel 2 is like 1, but network is included
runlevel 4 isn't used in (B)LFS
runlevel 6 restarts the system

Hope this clears things up.
 
Old 11-16-2011, 03:43 PM   #105
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
Please use pastebin!! hotfile limits downloads (told you this before).
 
  


Reply

Tags
grub, kernel, lfs



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
Good but sorta easy guide to Kernel compiling/Re-Compiling? linus72 Linux - General 1 07-13-2009 01:37 PM
Compiling a module separately without compiling entire kernel kushalkoolwal Linux - Kernel 8 08-06-2008 01:45 AM
compiling kernel problem --- Kernel panic: unable to mount root fs ........ anthonymts123 Linux - General 5 07-31-2006 02:29 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

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

All times are GMT -5. The time now is 07:53 AM.

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