LinuxQuestions.org
Help answer threads with 0 replies.
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 04-28-2016, 07:43 AM   #1
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Rep: Reputation: Disabled
Kernel panic at boot: not syncing. No init found


Help me sir i experienced a problem when booting (Kernel panic at boot: not syncing. No init found).

my config /etc/fstab

Code:
# Begin /etc/fstab
 
# file system  mount-point  type     options             dump  fsck
#                                                              order
 
/dev/sda1      /            ext4    defaults            1     1
/dev/sda4      /boot        ext2    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

my config grub.cfg

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

insmod ext2
set root=(hd0,4)

menuentry "GNU/Linux, Linux 4.4.2-lfs-7.9" {
        linux   /boot/vmlinuz-4.4.2-lfs-7.9 root=/dev/sda4 ro
}
/dev/sda4 boot

Code:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x9933ca03

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048   103116799    51557376   83  Linux
/dev/sda2       103321600   198514687    47596544    7  HPFS/NTFS/exFAT
/dev/sda3       198515266   976771732   389128233+   f  W95 Ext'd (LBA)
Partition 3 does not start on physical sector boundary.
/dev/sda4       103116800   103321599      102400   83  Linux
/dev/sda5       198515268   204796517     3140625   82  Linux swap / Solaris
Partition 5 does not start on physical sector boundary.
/dev/sda6       204802048   771123199   283160576    7  HPFS/NTFS/exFAT
/dev/sda7   *   771125248   976771732   102823242+  83  Linux

Partition table entries are not in disk order
Attached Thumbnails
Click image for larger version

Name:	IMG_20160428_071654.jpg
Views:	530
Size:	248.1 KB
ID:	21632   Click image for larger version

Name:	IMG_20160428_071751.jpg
Views:	376
Size:	250.3 KB
ID:	21633  
 
Old 04-28-2016, 10:01 AM   #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
Should this root=/dev/sda4 ro be root=/dev/sda1 ro ?
 
1 members found this post helpful.
Old 04-28-2016, 01:50 PM   #3
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
Try using this to set up Grub:

Code:
grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda
I recommend you set this from the host system you built LFS with as you will need package os-prober to detect other operating systems to boot from.

Last edited by ReaperX7; 04-28-2016 at 01:53 PM.
 
1 members found this post helpful.
Old 04-28-2016, 10:02 PM   #4
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Should this root=/dev/sda4 ro be root=/dev/sda1 ro ?
thank you sir, I was wrong to enter a partition.
 
  


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] kernel panic not syncing no init found try passing init option to kernel k84834 Linux From Scratch 16 01-07-2013 06:02 AM
[SOLVED] Diskless: Kernel panic-not syncing: No init found. Try passing init= option to kernel Pier Gentoo 6 10-10-2011 06:17 AM
Kernel Panic - Not syncing: No init found. Try passing init= option to kernel. persson121 Linux - General 4 04-23-2011 04:49 AM
Kernel panic - not syncing: No init found. Try passing init= option to kernel. john_schimandle Linux - Embedded & Single-board computer 3 10-10-2008 09:09 AM

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

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