LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 04-27-2015, 10:23 AM   #1
lscin
LQ Newbie
 
Registered: Apr 2015
Posts: 2

Rep: Reputation: Disabled
Kernel panic - not syncing attempted to kill init


Good day.

I have one problem with CentOS VM on Hyper-V.

I was try to resize partitions on VM use fdisk (recreated partition).

In result:



Added in grub enforcing=0 for see the detail error.

On load partitions will see the system, but in result:



I then have try to add "rdshell" at the end of kernel parameter on grub to debug.
Here are the result.







So, I try add UUID sda1 in kernel parameter on grub.

In result a have this error:



Tell me, please, how I can restore partititons or extract files important for me?

Thx
 
Old 04-27-2015, 11:46 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,363

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
In grub (or lilo) everyone needs a line (or append in lilo) like the following

Code:
kernel vmlinuz-version root=Something
The root=Something bit is wrong. That's your problem.
 
Old 04-28-2015, 02:25 AM   #3
lscin
LQ Newbie
 
Registered: Apr 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
In grub (or lilo) everyone needs a line (or append in lilo) like the following

Code:
kernel vmlinuz-version root=Something
The root=Something bit is wrong. That's your problem.
I try add UUID sda1 in root parameter on grub, too. You can see the error in last scrinshot

Last edited by lscin; 04-28-2015 at 02:36 AM.
 
Old 04-29-2015, 03:23 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,363

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
The parameter for the root=Something has to be your root partition for the kernel, not the boot partition. The kernel will try to mount it on / and then run /sbin/init, and load modules from /lib/modules/ as required.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic - not syncing: Attempted to kill init thexder1 Linux - Kernel 2 11-27-2011 04:57 PM
[SOLVED] kernel panic not syncing: Attempted to kill init! zxlwyx9219 Linux - Embedded & Single-board computer 6 09-04-2011 02:00 PM
Kernel panic - not syncing: Attempted to kill init, Pid: 1, comm: init Not tainted 2. morriset Linux - Kernel 3 07-02-2011 08:04 AM
/sbin/init: Kernel panic - not syncing: Attempted to kill init! jalejo08 Linux - Kernel 7 07-02-2009 01:16 PM
Kernel panic -not syncing:Attempted to kill init! vengadesan Linux - Server 1 10-28-2006 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

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