LinuxQuestions.org
Register a domain and help support LQ
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 04-22-2012, 02:44 PM   #1
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 398

Rep: Reputation: 33
Error booting LFS 7.1


I just finished my basic LFS setup. I did not follow the instructions to set up a new grub install because I wanted to use my current grub install.

I am on Mageia 1 which uses Grub 0.97. My LFS system is on /dev/sdb1. Here are the contents of my /boot/grub/menu.lst (you can see the lfs entry that I added):

Code:
timeout 10
color black/cyan yellow/cyan
password --md5 $1$vQJgb0$m1x0LIb9JhONgxl4LnXxT0
default 0

title linux
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=1116d9a6-351e-41ed-bc36-3c225e04db4c  resume=UUID=f9c9ba08-0b12-4169-b734-bf7214b66aca splash=silent vga=788
initrd (hd0,0)/boot/initrd.img

title linux-nonfb
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=1116d9a6-351e-41ed-bc36-3c225e04db4c  resume=UUID=f9c9ba08-0b12-4169-b734-bf7214b66aca
initrd (hd0,0)/boot/initrd.img

title failsafe
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=1116d9a6-351e-41ed-bc36-3c225e04db4c  failsafe
initrd (hd0,0)/boot/initrd.img

title lfs
root (hd1,0)
kernel /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sdb1
In case it makes a difference, menu.lst and my grub install exists on /dev/sda1.

Here is the error that I get when try to boot lfs from grub:

Code:
Booting LFS
root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sdb1
Error 15: File not found
I think I got all of the correct, I wrote it down on a piece of paper. what is really weird is that it says "Filesystem type is ext2fs", but /dev/sdb1 is actually ext3.

Please help me get to the bottom of this.

Last edited by CincinnatiKid; 04-22-2012 at 02:45 PM.
 
Old 04-22-2012, 03:12 PM   #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,643
Blog Entries: 1

Rep: Reputation: 229Reputation: 229Reputation: 229
Hi

Should that read root=(hd1,1)
Presume boot is root dir and not on it's own partition

Last edited by spiky0011; 04-22-2012 at 03:13 PM.
 
Old 04-22-2012, 03:39 PM   #3
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 398

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by spiky0011 View Post
Hi

Should that read root=(hd1,1)
Presume boot is root dir and not on it's own partition
This time I got "Error 17: Cannot mount selected partition". /boot is under /, it does not have it's own partition.
 
Old 04-22-2012, 03:45 PM   #4
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 398

Original Poster
Rep: Reputation: 33
Should I be putting these files:

config-3.2.6 System.map-3.2.6 vmlinuz-3.2.6-lfs-7.1

in my $LFS/boot, or in my Mageia /boot (the one with the grub stuff)? Currently they are in $LFS/boot.
 
Old 04-22-2012, 03:56 PM   #5
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,643
Blog Entries: 1

Rep: Reputation: 229Reputation: 229Reputation: 229
It should read set root=(hd1,0) sorry.

They go in lfs boot

Try changing the sdb to hdb

kernel /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/hdb1

You might have to change the /dev/sdbx to /dev/hdbx in /etc/fstab

Last edited by spiky0011; 04-22-2012 at 04:01 PM.
 
Old 04-22-2012, 04:14 PM   #6
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 398

Original Poster
Rep: Reputation: 33
I changed back to root (hd1,0) and tried with both hdb1 and sdb1, including changing my fstab, and I am still getting the Error 15: file not found.
 
Old 04-22-2012, 04:25 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Please post the exact contents of your $LFS/boot directory, also the output of
Code:
fdisk -l
Also, I wonder why you are inconsistent in your own configuration files, one time you write
Code:
kernel (hd0,0)/boot/vmlinuz ...
, the other time it is
Code:
root (hd1,0)
kernel /boot/vmlinuz ...
This normally shouldn't matter, but I have seen weird things already, so I would at least try if it makes a difference when you try the first notation with your LFS option.
 
Old 04-22-2012, 04:28 PM   #8
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 398

Original Poster
Rep: Reputation: 33
I just figured out that the entire time, I was working in /mnt/lfs, I thought that sdb1 was mounted in /mnt/lfs, but it wasn't, hopefully I can just move all of my work over to sdb1 and have it all work, I will let you know my results.

I am not sure if this will even work since I was not working in a different partition. This can be bad, I may have to start all over again!

Last edited by CincinnatiKid; 04-22-2012 at 04:31 PM. Reason: added
 
Old 04-22-2012, 04:33 PM   #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,643
Blog Entries: 1

Rep: Reputation: 229Reputation: 229Reputation: 229
Is sdb1 a partition on hard disk or usb disk?
 
Old 04-22-2012, 04:39 PM   #10
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 398

Original Poster
Rep: Reputation: 33
It is on a hard disk. I copied everything to it, the system attempted to boot, but I got gobs of errors that I will attempt to work out. My fear is that I will have to start everything from scratch.
 
Old 04-22-2012, 04:59 PM   #11
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 398

Original Poster
Rep: Reputation: 33
I am getting a lot of messages during bootup about things being read only. Has anyone experienced anything like that? I will try to capture some of these error messages and post them.
 
Old 04-22-2012, 05:10 PM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
As long as you were chrooted to /mnt/lfs it shouldn't matter if it is a directory or a partition. In fact, the system shouldn't care at all about something like that.
Since you are a long time member here you should already know that "I am getting a lot of messages during bootup about things being read only." is not a sufficient error description. Please post when exactly those error-messages appear and which "things" are reported being read-only.
 
Old 04-22-2012, 05:21 PM   #13
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 398

Original Poster
Rep: Reputation: 33
Good news, I was chrooted the entire time.

Here is the first set of error messages:

Code:
mount: unknown filesystem type 'devtmpfs'
ln: failed to create symbolic link '/dev/shm': read only filesystem
cp: cannot find '/dev/null': read only file system
My filesystem type is ext3.

I tar'd everything that was in /mnt/lfs and copied it to my second hard drive, and then untar'd it, could this be a part of why there is some kind of problem?
 
Old 04-22-2012, 05:44 PM   #14
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
There seems to be an error in your /etc/fstab. This causes the /dev filesystem not to be mounted as tmpfs, as is pretty normal nowaydays, which in turn prevent the device nodes and symlinks in /dev from being created (it seems that at this point the /-filesystem is still mounted read-only).
 
Old 04-22-2012, 06:42 PM   #15
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 398

Original Poster
Rep: Reputation: 33
Here is my fstab:

Code:
# Begin /etc/fstab

# file system  mount-point  type     options             dump  fsck
#                                                              order

/dev/sdb1     /            ext3    defaults            1     1
/dev/sdb5     swap         swap     pri=1               0     0
proc           /proc        proc     nosuid,noexec,nodev 0     0
sysfs          /sys         sysfs    nosuid,noexec,nodev 0     0
devpts         /dev/pts     devpts   gid=4,mode=620      0     0
tmpfs          /run         tmpfs    defaults            0     0
devtmpfs       /dev         devtmpfs mode=0755,nosuid    0     0

# End /etc/fstab
here is the sdb part of fdisk -l:
Code:
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdd5bdd5b

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63    41351309    20675623+  83  Linux
/dev/sdb2        41351310    86622479    22635585    5  Extended
/dev/sdb5        41351373    45656729     2152678+  82  Linux swap / Solaris
/dev/sdb6        45656793    86622479    20482843+  83  Linux
Any ideas on what is causing the problem with fstab?
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
lfs is not in sudoers file error in LFS 6.6 nkedz Linux From Scratch 12 03-05-2013 05:33 AM
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 04:23 PM
LFS Booting problem jgmyshko Linux - Laptop and Netbook 1 09-02-2006 07:07 PM
e2fsck error while booting lfs EPM_Students Linux From Scratch 6 07-29-2005 01:33 AM


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