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 am having a problem with booting. Earlier i was having two hard disks, primary master (hda for windows) and primary slave ( hdb1 for linux native). I installed GRUB on my primary master's MBR, now my master hard disk has crashed and i made my slave disk as master and installed the GRUB on its MBR. But the problem is i cannot boot my system to linux, if i connect only my linux disk as master, i get "/ label not found" and then "kernel panic---no init found". I am getting the GRUB splash screen and choice, but it is not able to boot. If i connect another HDD as master (with grub installed on MBR) and change the linux disk to slave, it boots fine.
==========================================================
This is working grub.conf (with both the disks)
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd1,0)
# kernel /boot/vmlinuz-version ro root=/dev/hdb1
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd1,0)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /boot/initrd-2.4.20-8.img
title windows
rootnoverify (hd0,0)
chainloader +1
===========================
This is non-working grub.conf (with only linux disk as master)
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd1,0)
# kernel /boot/vmlinuz-version ro root=/dev/hdb1
# initrd /boot/initrd-version.img
boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /boot/initrd-2.4.20-8.img
# title windows
# rootnoverify (hd0,0)
# chainloader +1
Sorry for the delay. Kilahchris, your advise really seems to be right to the point, but i am still lost...Actually i am only able to boot, if i connect another disk as master. In this case, if i run mkinitrd it will still make my linux disk as slave. I tried using CD rescue mode, with linux disk as master, but it fails with error "Error mounting / file system on /dev/hda1" Invalid argument. Also, i i create a bootable disk, then also it will copy the same initrd.img, with my linux disk as slave. Pls let me know.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.