LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   some boot errors (http://www.linuxquestions.org/questions/linux-from-scratch-13/some-boot-errors-920450/)

slim.chen 12-25-2011 07:08 AM

some boot errors
 
1 Attachment(s)
I have just finished compiling LFS. When I boot the system, some errors emerged. Could anyone help me.

spiky0011 12-25-2011 07:11 AM

Hi
Can you post grub.cfg and fdisk.
also some more info on how the system is setup, Vm, usb boot etc

druuna 12-25-2011 07:15 AM

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.

spiky0011 12-25-2011 07:18 AM

Opps I meant fstab thks drunna

slim.chen 12-25-2011 09:04 PM

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

spiky0011 12-26-2011 01:53 AM

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.

druuna 12-26-2011 03:12 AM

Hi,
Quote:

Originally Posted by slim.chen (Post 4558282)
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.

slim.chen 12-26-2011 05:48 AM

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?

spiky0011 12-26-2011 06:22 AM

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

xyon 01-06-2012 06:35 AM

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.


All times are GMT -5. The time now is 11:19 AM.