Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-01-2017, 03:37 AM
|
#1
|
LQ Newbie
Registered: Feb 2017
Posts: 11
Rep:
|
Why My Linux Booting In to Emergency Mode ?
Hi,
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?
Output of df - T in FreeBSD is given below
Filesystem Type 1K-blocks Used Avail Capacity Mounted on
/dev/mfid0p3 ufs 2030712 1225360 642896 66% /
devfs devfs 1 1 0 100% /dev
/dev/mfid0p5 ufs 2030712 16520 1851736 1% /nextroot
/dev/mfid0p2 msdosfs 1046516 64 1046452 0% /efi
/dev/mfid0p6 ufs 395896 104008 260224 29% /var
/dev/mfid0p8 ufs 2031132 124 1868520 0% /var/db/godspeed
/dev/mfid0p9 ufs 1874393936 32284512 1692157920 2% /data
procfs procfs 4 4 0 100% /proc
linprocfs linprocfs 4 4 0 100% /compat/linux/proc
linsysfs linsysfs 4 4 0 100% /compat/linux/sys
/dev/mfid0p7 ext2fs 412777400 7468416 384337464 2% /data/ajay
fstab entries in WR Linux are given below
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devpts /dev/pts devpts defaults 0 0
tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0
tmpfs /dev/shm tmpfs defaults 0 0
tmpfs /var/volatile tmpfs defaults 0 0
/dev/sda7 / ext3 auto,users,suid,dev,exec 0 0
Could you please help me in figuring out the issue.
Thanks,
Ajay
|
|
|
03-01-2017, 05:18 PM
|
#2
|
Senior Member
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
|
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.
|
|
2 members found this post helpful.
|
03-04-2017, 07:43 AM
|
#3
|
Member
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190
Rep:
|
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).
|
|
1 members found this post helpful.
|
03-04-2017, 02:08 PM
|
#4
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,049
|
Quote:
You should look this up in grub to be sure, but I think that partitions also start couting at zero.
|
That's true for Grub Legacy but with Grub2, drives begin counting from zero, partitions from 1.
|
|
|
03-07-2017, 12:35 AM
|
#5
|
LQ Newbie
Registered: Feb 2017
Posts: 11
Original Poster
Rep:
|
Hi,
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.
Anyway, thanks guys for the suggestions.
Ajay
|
|
|
All times are GMT -5. The time now is 02:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|