LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-28-2014, 12:58 PM   #1
Tanzadeh
LQ Newbie
 
Registered: Oct 2014
Posts: 27

Rep: Reputation: Disabled
LFS is not booting up


I finish LFS book and when I wan't boot to my LFS system show me rest_init+0x60/0x60 error


Attachment 16782
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2014-10-28 21:21:11.jpg
Views:	46
Size:	114.6 KB
ID:	16781  

Last edited by Tanzadeh; 10-28-2014 at 01:15 PM.
 
Old 10-28-2014, 01:24 PM   #2
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
Maybe post your lfs fstab file and your grub.cfg file. What partition is lfs on
 
Old 10-28-2014, 01:42 PM   #3
Tanzadeh
LQ Newbie
 
Registered: Oct 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
this is My fstab File
Code:
# Begin /etc/fstab
# file system  mount-point  type     options             dump  fsck
#                                                              order

/dev/sdb2      /            ext4     defaults             1     1
proc           /proc        proc     nosuid,noexec,nodev 0     0
sysfs          /sys         sysfs    nosuid,noexec,nodev 0     0
devpts         /dev/pts     devpts   gid=5,mode=620      0     0
tmpfs          /run         tmpfs    defaults            0     0
devtmpfs       /dev         devtmpfs mode=0755,nosuid    0     0

# End /etc/fstab
and grub.cfg

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

insmod linux
set root=(hd0,msdos2)

menuentry "GNU/Linux, Linux 3.17.1-lfs-SVN-20141026" {
        linux   /boot/vmlinuz-3.17.1-lfs-SVN-20141026 root=/dev/sda2 ro
}

Last edited by Tanzadeh; 10-28-2014 at 01:47 PM.
 
Old 10-28-2014, 01:59 PM   #4
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
Did you try
Code:
menuentry "GNU/Linux, Linux 3.17.1-lfs-SVN-20141026" {
        insmod ext2
        set root=(hd0,msdos2)
        linux   /boot/vmlinuz-3.17.1-lfs-SVN-20141026 root=/dev/sda2 ro
}
 
Old 10-28-2014, 08:43 PM   #5
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
The fstab says root should be /dev/sdb2.
The grub.cfg says root should be /dev/sda2.
 
Old 10-28-2014, 09:34 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Where's your swap partition being mounted at in fstab?
 
Old 10-29-2014, 12:01 PM   #7
Tanzadeh
LQ Newbie
 
Registered: Oct 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Where's your swap partition being mounted at in fstab?
I don't wan't to use swap partition becuase My Ram is not low

Quote:
Did you try

Code:
menuentry "GNU/Linux, Linux 3.17.1-lfs-SVN-20141026" {
        insmod ext2
        set root=(hd0,msdos2)
        linux   /boot/vmlinuz-3.17.1-lfs-SVN-20141026 root=/dev/sda2 ro
}
I try it now. this is New output

Click image for larger version

Name:	20141028_234635_4_bestshot.jpg
Views:	44
Size:	158.2 KB
ID:	16785
 
Old 10-29-2014, 12:07 PM   #8
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
Did you adjust your fstab as stoat pointed out
Presumming lfs is on sda2
 
Old 10-30-2014, 02:25 AM   #9
Tanzadeh
LQ Newbie
 
Registered: Oct 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Did you adjust your fstab as stoat pointed out
Presumming lfs is on sda2
how can I do that
 
Old 10-30-2014, 02:27 AM   #10
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
So what partition did you put lfs on sda2 or sdb2/
 
Old 10-30-2014, 02:49 AM   #11
Tanzadeh
LQ Newbie
 
Registered: Oct 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
So what partition did you put lfs on sda2 or sdb2/
sdb2..
 
Old 10-30-2014, 02:53 AM   #12
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
So on a usb drive then your grub,cfg is wrong. Can you post grub.cfg again pls
 
Old 10-30-2014, 03:15 AM   #13
Tanzadeh
LQ Newbie
 
Registered: Oct 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
This is my grub.cfg file
Code:
set default=0
set timeout=5

set root=(hd1,msdos2)
insmod linux

menuentry "PersianOS, Linux 3.17.1" {
        linux   /boot/vmlinuz root=/dev/sdb2 ro
}

Last edited by Tanzadeh; 10-30-2014 at 03:18 AM.
 
Old 10-30-2014, 03:29 AM   #14
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
Are you still getting the same error when trying to boot. You could try adding a root delay to grub.cfg

[code]set default=0
set timeout=5


menuentry "PersianOS, Linux 3.17.1" {
set root=(hd1,msdos2)
insmod ext2


linux /boot/vmlinuz-3.17.1-lfs-SVN-20141026 root=/dev/sdb2 root-delay=20 ro
}
 
Old 10-30-2014, 04:14 AM   #15
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
When you added your partition type into the kernel, did you enable it as a module or built-in?
 
  


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] Booting LFS 7.0 with grub2 ubuntudude12 Linux From Scratch 11 09-12-2016 07:14 PM
[SOLVED] Lfs is not Booting UP !!! jaassi Linux From Scratch 6 09-28-2014 03:01 AM
[SOLVED] my new LFS sytem is not booting Carl_cj Linux From Scratch 53 09-19-2014 01:55 PM
booting LFS Garrett85 Linux From Scratch 1 10-15-2012 07:12 PM
[SOLVED] Error booting LFS 7.1 CincinnatiKid Linux From Scratch 17 04-22-2012 08:39 PM

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

All times are GMT -5. The time now is 02:45 AM.

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