LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS is not booting up (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-is-not-booting-up-4175523593/)

Tanzadeh 10-28-2014 12:58 PM

LFS is not booting up
 
1 Attachment(s)
I finish LFS book and when I wan't boot to my LFS system show me rest_init+0x60/0x60 error


Attachment 16782

spiky0011 10-28-2014 01:24 PM

Maybe post your lfs fstab file and your grub.cfg file. What partition is lfs on

Tanzadeh 10-28-2014 01:42 PM

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
}


spiky0011 10-28-2014 01:59 PM

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
}


stoat 10-28-2014 08:43 PM

The fstab says root should be /dev/sdb2.
The grub.cfg says root should be /dev/sda2.

ReaperX7 10-28-2014 09:34 PM

Where's your swap partition being mounted at in fstab?

Tanzadeh 10-29-2014 12:01 PM

1 Attachment(s)
Quote:

Originally Posted by ReaperX7 (Post 5261104)
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

Attachment 16785

spiky0011 10-29-2014 12:07 PM

Did you adjust your fstab as stoat pointed out
Presumming lfs is on sda2

Tanzadeh 10-30-2014 02:25 AM

Quote:

Originally Posted by spiky0011 (Post 5261437)
Did you adjust your fstab as stoat pointed out
Presumming lfs is on sda2

how can I do that

spiky0011 10-30-2014 02:27 AM

So what partition did you put lfs on sda2 or sdb2/

Tanzadeh 10-30-2014 02:49 AM

Quote:

Originally Posted by spiky0011 (Post 5261718)
So what partition did you put lfs on sda2 or sdb2/

sdb2..

spiky0011 10-30-2014 02:53 AM

So on a usb drive then your grub,cfg is wrong. Can you post grub.cfg again pls

Tanzadeh 10-30-2014 03:15 AM

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
}


spiky0011 10-30-2014 03:29 AM

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
}

ReaperX7 10-30-2014 04:14 AM

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


All times are GMT -5. The time now is 05:42 PM.