LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   init not found in Ubuntu (https://www.linuxquestions.org/questions/linux-server-73/init-not-found-in-ubuntu-947895/)

ashu_123 06-01-2012 12:25 AM

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

cbtshare 06-01-2012 01:01 AM

what command are you issuing when you got this error?

em31amit 06-01-2012 01:35 AM

it seems you missed the initrd file option passing to grub while booting. or initrd is corrupted.

Achyut 06-01-2012 01:39 AM

Quote:

Originally Posted by cbtshare (Post 4692591)
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???????

Achyut 06-01-2012 01:41 AM

Quote:

Originally Posted by em31amit (Post 4692621)
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??

ashu_123 06-01-2012 01:43 AM

[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??

robertjinx 06-01-2012 01:49 AM

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.


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