LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-01-2012, 12:25 AM   #1
ashu_123
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
init not found in Ubuntu


mount: mounting /dev/disk/by-uuid/***************************** on /root
failed: Invalid argument
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target file system doesn't have /sbin/init
No init found. Try passing init= bootarg
 
Old 06-01-2012, 01:01 AM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
what command are you issuing when you got this error?
 
Old 06-01-2012, 01:35 AM   #3
em31amit
Member
 
Registered: Apr 2012
Location: /root
Distribution: Ubuntu, Redhat, Fedora, CentOS
Posts: 190

Rep: Reputation: 55
it seems you missed the initrd file option passing to grub while booting. or initrd is corrupted.
 
Old 06-01-2012, 01:39 AM   #4
Achyut
LQ Newbie
 
Registered: Jun 2011
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by cbtshare View Post
what command are you issuing when you got this error?

i am not able to use any command i think i need to change init table inittab but i am not able to edit inittab....so what sahl i do???????
 
Old 06-01-2012, 01:41 AM   #5
Achyut
LQ Newbie
 
Registered: Jun 2011
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by em31amit View Post
it seems you missed the initrd file option passing to grub while booting. or initrd is corrupted.


Thank you very much


Maybe sir but how to solve that...how to repair initrd i have cd to i can do to rescue mode after that what shall i do??
 
Old 06-01-2012, 01:43 AM   #6
ashu_123
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
[QUOTE=Achyut;4692628]Thank you very much


Thank you very much


Maybe sir but how to solve that...how to repair initrd i have cd to i can go to rescue mode after that what shall i do??
 
Old 06-01-2012, 01:49 AM   #7
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
There is no inittab in ubuntu, as it's using upstart. You can boot from live-cd, work in the live CD and mount the file systems manually then fix things:

Code:
mount /dev/"root-filesystem" /mnt/
usually root-filesystem is something like "sda5" or something similar.

mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt

then in the chroot you update or create a new initrd:

update-initramfs -u -k "kernel-version"
or
update-initramfs -c -k "kernel-version"

after this exit chroot with logout or Ctrl+D

umount /mnt/dev/pts
umount /mnt/dev
umount /mnt/proc
umount /mnt/sys
umount /mnt

and reboot
This way should fix your initrd, but you have to know which is your root-filesystem and the kernel version. If in case you have /usr and/or /boot as a separate partition you will need to mount that too.
 
  


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
Ubuntu Server- No init found. Try passing init=bootarg. ganesh24pal@gmail.com Linux - Server 2 11-17-2010 01:05 AM
Ubuntu 9.04 doesn't boot anymore - No init found smecherel Linux - Newbie 1 11-16-2009 03:17 AM
kernal panic no init found try passing init option to kernel m2azer Linux - General 3 11-08-2007 01:51 PM
Kernal Panic: No init found. Try passing init= option to kernel raees Linux - General 12 03-18-2004 11:10 PM
error "Kernel panic: No init found. Try passing init= option Anauj0101 Linux - Newbie 3 05-06-2003 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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