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 had grub installed on my ubuntu partition, which I recently deleted as I hadn't used it in almost a year. That left me with XP and Slackware partitions.
Here is the setup
/dev/sda1 < swap
/dev/sda2 < XP
/dev/sda3 < Slack
/dev/sda4 < NTFS space
I tried doing a grub-install /dev/sda (from knoppix live CD, which is where I am now) which looked like it worked fine until I rebooted and got a black grub console.
After searching around I tried this:
source (hd0,3)
linux /boot/vmlinuz ro root=/dev/sda3
initrd /boot/initrd.gz
boot
It goes through the normal boot process until, I assume, the point where it mounts the file systems.
I get the following error:
no /sbin/init found on rootdev fs
Kernel Panic!
any ideas?
I also have no menu.lst or stage1 file in my /boot/grub.
Indeed, that is what I thought, yet when I type (hd0<tab>), it tells me that
hd0,1 unknown file system
hd0,2 unknown file system
hd0,3 ext2fs
hd0,4 unknown file system
I am aware that this is not so much a grub issue but rather something else.
I got lilo to work, but I get another kernal panic error:
No filesystem could mount root, tried:
kernel panic- not syncing. VFS:Unable to mount root fs on unknown block(8,3)
I have no intrd file.
I think I remember that this might have been the problem a long time ago.
How can I create an initrd? (If I am correction in my assumption)
To create an initrd file you need to use the Slack disk to boot into your system (instructions on the screen when you boot the disk). Or, boot the Slack disk and chroot to the partion containing the Slack system.
Use the mkinitrd command to create it. There should be an initrd readme file in your /boot directory that explains how to do it.
If you're using the huge-smp kernel, the one used during installation, you don't need an initrd. You need to create one if you change to the generic-smp kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.