Genny |
06-30-2014 10:23 PM |
[LFS] Error: file not found.
Hey everyone! I'm trying to build an LFS 7.5 system with Debian 7.5 as the host system.
For LFS I assigned:
sda8 for /
sda9 for /home
sda3 for /boot
and the same swap partition as my Debian installation.
During the installation process (and after running several tests recommended by the LFS Book) everything seemed to be OK... Until I rebooted. :(
When I try to access to the LFS 7.5 entry in the GRUB menu, an error is shown:
Code:
error: file not found.
press any key to continue...
And then takes me to the GRUB menu again.
In order to dual-boot my PC, I skipped the GRUB section in the LFS Book and updated the grub.cfg file in the host's system with the update-grub command.
In this file, a new entry was added:
Code:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Linux From Scratch (7.5) (on /dev/sda8)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root c6dbb1ef-cbdb-4350-9cd8-45ba17583031
linux /vmlinuz-3.13.3-lfs-7.5 root=/dev/sda8
}
### END /etc/grub.d/30_os-prober ###
So, I can't see where the problem is since everything seems to be alright.
I've googled a lot and couldn't find any answer to this problem so I hope I can find it here.
Thank you and sorry if my english is not as good as it could be. :)
I forgot to say: during the compilation of a package in section 6.9.*, a power outage occurred. In order to resume the installation process, I followed these instructions:
Quote:
From section 6.9. Linux-Libc-Headers-2.6.11.2 to section 6.37. Bash-3.0
=======================================================================
Following are the commands you need if you stop at any sections between
6.9 (Linux-Libc-Headers) and 6.37 (Bash-3.0).
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
export LFS=/mnt/lfs
mkdir -pv $LFS
mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap
partitions)
swapon /dev/sda1
4. Mount the virtual kernel filesystems
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
chroot "$LFS" /tools/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
/tools/bin/bash --login +h
6. Populating /dev
mount -nvt tmpfs none /dev
mknod -m 622 /dev/console c 5 1
mknod -m 666 /dev/null c 1 3
mknod -m 666 /dev/zero c 1 5
mknod -m 666 /dev/ptmx c 5 2
mknod -m 666 /dev/tty c 5 0
mknod -m 444 /dev/random c 1 8
mknod -m 444 /dev/urandom c 1 9
chown -v root:tty /dev/{console,ptmx,tty}
ln -sv /proc/self/fd /dev/fd
ln -sv /proc/self/fd/0 /dev/stdin
ln -sv /proc/self/fd/1 /dev/stdout
ln -sv /proc/self/fd/2 /dev/stderr
ln -sv /proc/kcore /dev/core
mkdir -v /dev/pts
mkdir -v /dev/shm
mount -vt devpts -o gid=4,mode=620 none /dev/pts
mount -vt tmpfs none /dev/shm
7. Entering your working directory
cd /sources
|
( http://www.linuxfromscratch.org/hint...and-resume.txt)
And then I recompiled the packages that were compiled before the power outage occurred.
|