[SOLVED] Why My Linux Booting In to Emergency Mode ?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have an appliance which is running FreeBSD. I wanted to boot WindRiver Linux when I reboot the appliance.
There are more than one partition in the disk based on GPT. In partition 3, FreeBSD is kept (UFS). Windriver Linux is kept on partition 7 (EXT2).
I installed GRUB 2.0 and made the entries in grub.cfg as below.
menuentry "FreeBSD" {
insmod ufs2
set root=(hd0,3)
kfreebsd /boot/loader
}
menuentry "Linux " {
set root=(hd0,7)
echo "loading kernel"
echo "###############################################################"
linux /boot/bzImage-4.1.21-WR8.0.0.10_standard root=/dev/sda7
echo "#####################LOADED KERNEL#############################"
GRUB menu shows up the options FreeBSD & Linux on reboot.
When I select "Linux", it is booted in Emergency Mode by
giving message "Welcome To Emergency Mode". How can I boot
in normal mode?
You have no initial ramdisk (initrd) entry in your grub configuration that you posted (although from the missing closing curly brace, it looks like what you posted is incomplete). Likely there's a driver needed that isn't being loaded, and the root filesystem can't be found.
Also, consider your root=(hd0,3) and root=(hd0,7) statements.
You should look this up in grub to be sure, but I think that partitions also start couting at zero.
That would mean that your third partition on the first hd is found by (hd0,2).
The issue is solved
I did "chown root" to the linux .tar file and then am able to boot in normal mode.
@goumba : My rootfs was built as part of the kernel. So no separate initrd needed.
@hoes : In grub2 partitions start numbering from 1 as mentioned by @yancek.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.