LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-27-2013, 11:42 PM   #1
retux
LQ Newbie
 
Registered: Jan 2011
Posts: 9

Rep: Reputation: 0
LFS 7.4 Chapter 9.3


Hi

I am doing doing 64-bit LFS in VMware Workstation.

I have a separate partition /dev/sda3 formatted as ext2 for /boot.

I am upto Chapter 9.3 Rebooting the system.

When I reboot the system the GRUB menu appears with the LFS menu entry but when I press enter on the keyboard I get the error
Code:
error: invalid file name 'vmlinuz-3.10.10-lfs-7.4'. Press any key to continue
The /boot line of my fstab file is

/dev/sda3 /boot ext2 defaults,noatime 0 2

My /boot/grub/grub.cfg file is

Code:
#Begin /boot/grub/grub.cfg
set default=0
set timeout=5

insmod ext2
set root=(hd0,3)
menuentry "GNU/Linux, Linux 3.10.10-lfs-7.4" {
        linux   vmlinuz-3.10.10-lfs-7.4 root=/dev/sda3 ro
}
Please help me fix this.
 
Old 09-28-2013, 01:53 AM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
/boot/vmlinuz-3.10.10-lfs-7.4 root=/dev/sda3
 
Old 09-28-2013, 02:14 AM   #3
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
Hi retux

You say your boot partition is /dev/sda3 yet your grub.cfg shows root looking in partition /dev/sda3

My boot partition is /dev/sda1
grub.cfg
set root='(hd0,6)'
echo 'Loading Planet-Spike'
linux /boot/vmlinuz-3.2-lfs-7.0 root=/dev/sda6 ro quiet splash

It has the root on sda6

Last edited by spiky0011; 09-28-2013 at 02:35 AM.
 
Old 09-28-2013, 04:43 AM   #4
retux
LQ Newbie
 
Registered: Jan 2011
Posts: 9

Original Poster
Rep: Reputation: 0
My root partition is /dev/sda5.

I changed my grub.cfg to
Code:
set root=(hd0,5)
menuentry "GNU/Linux, Linux 3.10.10-lfs-7.4" {
        linux   /boot/vmlinuz-3.10.10-lfs-7.4 root=/dev/sda5 ro
}

Now when I select LFS in the grub menu I get a error
Code:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
and the Caps Lock and Scroll Lock lights on my keyboard start flashing.

I have attached a screenshot of the LFS boot with the error.

Please help me fix this.
Attached Thumbnails
Click image for larger version

Name:	LFSboot.png
Views:	25
Size:	16.1 KB
ID:	13562  
 
Old 09-28-2013, 05:00 AM   #5
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
Hi

I dont use vm at all so cant help with that,
If and when I get caught like you have, I enter from grub prompt comands,

Did you also note the part in chapter 8.3.1 the note about
"Device Drivers --->
Generic Driver Options --->
Maintain a devtmpfs filesystem to mount at /dev"
and set this?
 
Old 09-28-2013, 05:42 AM   #6
retux
LQ Newbie
 
Registered: Jan 2011
Posts: 9

Original Poster
Rep: Reputation: 0
Yes I did set "Maintain a devtmpfs filesystem to mount at /dev" in Chapter 8.3.

I see there is a /boot directory on my / partition which looks the same as my /boot partition but doesn't have the grub subdirectory.

Is this normal ?
 
Old 09-28-2013, 06:13 AM   #7
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
your grub.cfg should be

Code:
set root=(hd0,5)
menuentry "GNU/Linux, Linux 3.10.10-lfs-7.4" {
        linux   vmlinuz-3.10.10-lfs-7.4 root=/dev/sda3 ro
}
http://www.linuxfromscratch.org/lfs/...er08/grub.html

before you do that, clean up the /boot dir on sda5 ( it should be empty as it is just a mountpoint )
then mount /dev/sda3 /boot
reinstall kernel
add grub.cfg
reinstall grub

that needs to be done while in the chroot

if you need help, while in the chroot
Code:
mount
ls /boot
post the output of the above
 
Old 09-28-2013, 09:22 AM   #8
jimmy_page_89
Member
 
Registered: Sep 2010
Location: Turin (Italy)
Distribution: Slackware 14.2
Posts: 51

Rep: Reputation: 4
It boots correctly, you have to mount your root partition.
Which filesystem are you using for your LFS root?
You have to enable it inside the configure of your kernel.
If in doubt, enable ext2, ext3 and ext4 in the Filesystem section.
 
  


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
[SOLVED] LFS 7.2 chapter 2.3 rcorkum Linux From Scratch 3 02-22-2013 06:19 PM
LFS chapter-by-chapter complete commands with notes DrinkinHomeBrew Linux From Scratch 6 03-16-2012 01:57 AM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 06:30 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
chapter 6.3 of LFS 6.1 Stamp Linux From Scratch 2 07-22-2005 07:10 AM

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

All times are GMT -5. The time now is 11:47 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