LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 12-25-2011, 07:08 AM   #1
slim.chen
LQ Newbie
 
Registered: Jul 2009
Posts: 11

Rep: Reputation: 0
some boot errors


I have just finished compiling LFS. When I boot the system, some errors emerged. Could anyone help me.
Attached Images
File Type: png Screenshot-2011-12-25 20:34:22.png (10.0 KB, 11 views)
 
Old 12-25-2011, 07:11 AM   #2
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,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi
Can you post grub.cfg and fdisk.
also some more info on how the system is setup, Vm, usb boot etc
 
Old 12-25-2011, 07:15 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
Hi slim.chen,

Looking at the screen-shot you posted I noticed you used hda and the system uses sda.

Besides the info spiky0011 asked for (grub.cfg and output of fdisk -l) could you also post your fstab file?

Hope this helps.
 
Old 12-25-2011, 07:18 AM   #4
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,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Opps I meant fstab thks drunna
 
Old 12-25-2011, 09:04 PM   #5
slim.chen
LQ Newbie
 
Registered: Jul 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Hi, druuna & spiky0011
Thanks you guys help me. Since I cannot boot my system now, I cannot give you some detail information. I compile the LFS on the VirtualBox. The host system is on the sda1 and the lfs is on the sda3. It seems that you can only use the hda, not the sda.

Ah, I boot the system with a liveCD. But I can not find the gurb.cfg file. But I find the menu.lst file, here is the content:

# Begin /boot/grub/menu.lst

# By default boot the first menu entry.
default 0

# Allow 30 seconds before booting the default.
timeout 30

# Use prettier colors.
color green/black light-green/black

# The first entry is for LFS.
title LFS-6.4 built by ChenLiang
root (hd0,2)
kernel /boot/lfskernel-2.6.27.4 root=/dev/hda3

# The second entry is for Host System -- Ubuntu
title Ubuntu 9.04, kernel 2.6.28-11-generic
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/hda1 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
 
Old 12-26-2011, 01:53 AM   #6
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,611
Blog Entries: 1

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

This is a old lfs now, I see you started it back in 2009. It has all moved on from there now.
Anyway I think I would change hda3 to sda3.
Also post fstab file should be /etc/fstab

As this is so old lfs moving on to blfs might be a little hard as some software might be too old.

Last edited by spiky0011; 12-26-2011 at 01:57 AM.
 
Old 12-26-2011, 03:12 AM   #7
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
Hi,
Quote:
Originally Posted by slim.chen View Post
Thanks you guys help me. Since I cannot boot my system now, I cannot give you some detail information.
You don't have to be able to boot into LFS to give us the info we asked for. Chroot into LFS from your host to get access to the /etc/fstab and /boot/grub/grub.cfg files. The output from the fdisk -l command must be done from your host.

Looking at the kernel version that is used I'm guessing this is LFS version 6.4, which is old. Building the current stable 7.0 is a better idea, but that is ultimately up to you. As stated by spiky0011: If, after finishing LFS, you want to continue with BLFS you might be in for a rough ride...

Quote:
It seems that you can only use the hda, not the sda.
Both can be used, it depends on the disk type that is being used (IDE vs SCSI) and the kernel options that are used/set. At the moment sda is the de facto standard, back in 2008/2009 hda was used by the LFS book (although the kernel was able to use sda at that time).

My advise: Start from scratch and build the current stable LFS version.

Hope this helps.
 
1 members found this post helpful.
Old 12-26-2011, 05:48 AM   #8
slim.chen
LQ Newbie
 
Registered: Jul 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Hi, druuna & spiky0011
Aha, I have finished it! As you said before, changed hda to sda, and it worked.

The first time I try to build LFS is in 2009 when I was a fresher student of computer science, but I failed at that time. After that, I have change my major. Now I become interested in Linux again, so I want to finish this work. With your help, I did it, thanks very very much.

And, do you have some ideas to build LFS in some mobile device, like cell phones?
 
Old 12-26-2011, 06:22 AM   #9
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,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
I dont think there is anything like that for cells. If you want to go further with lfs> blfs I would think about redoing lfs > lfs7 is the latest
 
Old 01-06-2012, 06:35 AM   #10
xyon
LQ Newbie
 
Registered: Jan 2012
Location: 127.0.0.1
Distribution: Debian, Arch, LFS
Posts: 5

Rep: Reputation: Disabled
Well, I see CLFS can be compiled for ARM, which might be a start-point for a mobile device (One running Android, perhaps). But where you'd start as per host requirements, is another matter.

It is possible to install debian to run alongside Android, but you'd better have a strong device to cope with running all that and then building LFS.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i/o errors, can't boot either OS of dual boot vtbludgeon Linux - Hardware 4 01-08-2011 08:14 PM
Multiple intermittent boot errors on a Fedora 9 / Windows XP dual boot system RichyAD Linux - General 4 09-15-2008 03:32 PM
Boot errors craigevil Ubuntu 1 08-20-2005 10:48 AM
boot errors?? wrat Linux - Newbie 1 05-12-2004 02:54 PM
Boot Errors frzburn Slackware 1 05-04-2004 06:31 PM


All times are GMT -5. The time now is 02:56 PM.

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