LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2014, 10:23 PM   #1
Genny
LQ Newbie
 
Registered: Jun 2014
Posts: 2

Rep: Reputation: Disabled
[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.

Last edited by Genny; 06-30-2014 at 10:43 PM.
 
Old 07-01-2014, 10:41 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,008

Rep: Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193
Well I am not sure if it matters, but all the set root options in my grub file have no brackets:
Code:
set root='hd2,msdos3'
This could be why the file was not found??
 
Old 07-01-2014, 04:32 PM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You're using debian try
Quote:
sudo update-grub
 
  


Reply



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
lfs is not in sudoers file error in LFS 6.6 nkedz Linux From Scratch 17 10-18-2014 01:30 PM
LFS 7.4 in Fedora 19 C++ compiler not found error engineer Linux From Scratch 5 12-13-2013 09:36 AM
"File not found" Error on booting LFS 7.2 Veena_Gecw Linux From Scratch 11 12-06-2012 01:07 AM
Booting (GRUB + LFS) File not found Ghostcore Linux - Newbie 3 05-18-2012 10:02 AM
LFS 6.12 Readjusting Toolchain file not found jgreen Linux From Scratch 1 12-29-2005 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:39 PM.

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