ArchLinux crashed with error 'Unable to find root device...Youre are being dropped to a recovery shell'
First thing I tried to do was type 'help' in the shell presented; the keyboard didn't respond. I was clueless. And then I started searching for this error in different forums for a fix. And somewhere I saw '# mkinitcpio -p linux' should fix it. So what I did was create bootable usb with the command.Warning: /lib/modules/4.6.2-1-Arch/modules-.devname not found --ignoring starting version 229 Error : device 'UUID=xxxxxx-xxxx-xxx-xxx-xxxxxx' not found skipping fsck. Error: Unable to find root device 'UUID=xxxxxx-xxxx-xxx-xxx-xxxxxx'. Youre are being dropped to a recovery shell Type 'exit' to try and continue booting sh: can't access tty: job control tunred off [rootfs]#_
You can find the USB installation guide at : https://wiki.archlinux.org/index.php/USB_flash_installation_media.#dd if=arch.iso of=/dev/rdisk2 bs=1m
After booting my pc with the bootable USB. I was automatically logged in as root of the usb bootable system. I did a quick check to see the name of my drive using the command :
root@archiso~# fdisk -lI could see my partitions there the way I had set, so I went to ahead to mount my drives(root drive was /dev/sda2) and use the swap (swap was /dev/sda1).
root@archiso~# mount /dev/sda2 /mnt
root@archiso~# swapon /dev/sda1
Then I ch-rooted into my system using the command:
root@archiso~# arch-root /mntAnd then I installed grub to my hard drive. The command to install is:
sh-4.3# grub-install /dev/sdaAfter grub was installed to the drive, I generated the init file with the command below:
sh-4.3# mkinitcpio -p linuxTo generate grub configuration file I ran command:
sh-4.3#grub-mkconfig -o /boot/grub/grub.cfgAfter that I exited from the ch-root with the command exit
Then I unmount my drive with the command:
root@archiso~#umount /mntand rebooted my system.
My system was all running back again.Hope this post can help you resecue your system from similar situtation.
Comments
Post a Comment