Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Until recently, I have been using Mandrake 9.1 installed on hdb2. A few days ago, I installed SuSE 8.2 on hdb5. SuSE runs fine, but my Mandrake has fallen over. At first I thought this was caused by the boot loader, however, the problem seems to be more serious.
To fix Mandrake, I have tried "upgrading" Mandrake using the CD, and when this did not fix it, I did a full install.
The boot loader starts Mandrake, and everything appears to be going ok until it gets to the "Press "I" to enter interactive mode". I am not able to press "I" quick enough (and would not know what to do!). Then it reports errors like:
/etc/rc.d/rc.sysinit: line *** : ********** Permission denied
there is a continuous string of different line number and their references
Using SuSE, I am able look at hdb2 - the rc.sysinit file is present in the /etc/rc.d directory.
I didn't do anything. When I installed SuSe, I let SuSE write a new boot loaded.
This worked ok for SuSE, but not Mandrake. When I re-installed Mandrake, I let it re-write the lilo boot loader (you don't have an option). This new boot loader works ok for SuSE, but gives the erreor messages referred to in my first posting.
Using SuSE, I have since modified the Mandrake section of lilo to look like this:
Whichever distro's boot loader you end up using, you'll need to copy the kernel for ALL your distro's to that distro's /boot directory, and setup LILO to boot those kernels for those distros. You'll also want to make sure you setup the root=/dev/hdx option correctly.
And FYI:
You do have an option for the boot loader in the Mandrake install if you choose Expert
To answer your last question first, "Yes" in the full install mode (if I remeber correctly), but I don't think you get a chance in the upgrade mode.
The "root=/dev/hdx" line is hdb5 for SuSE and hdb2 for Mandrake.
Believe me, I am not competent to debate your second paragraph! Yet I'm puzzled - if the new distro needs a copy of the other's kernel for for the "new" lilo to be able to boot the "old" distro, why did SuSE boot ok after the Mandrake install with the Mandrake lilo boot loader(?). (I don't really need an answer to this).
However, I'm prepared to do this if it is necessary. What do I do? Do I copy the vmlinux files from the Mandrake /boot directory into the SuSE /boot dirctory with a unique name, and use this name in the Mandrake section of lilo? Will this find the Madrake system on hdb2?
Mount up Mandrake:
mkdir /Mandy
mount -t ext3 /dev/hdb2 /Mandy
cp /Mandy/boot/vmlinuz /boot/vmlinuz-Mandrake
Of course you'll likely get an error because IIRC vmlinuz is only a symlink to the actual kernel that is something like:
vmlinuz-2.4.19-16mdk
Then, adjust /etc/lilo.conf accordingly, save, rerun lilo to save the changes.
This does assume you are going to be using SuSE's lilo, you can do whatever you'd like though, they should both work just as well...
As for "Why did it work?" that's really a good question, but because of quite a few variables, is too hard to even attempt to tackle. Maybe the kernels were close enough that one distro could use the others, maybe the overwriting of the MBR with the new lilo setup the new distro to boot correctly, maybe the drive pickup didn't work out correctly and it was booting the old one with the new one's initrd...
A lot of possibilities.
Oh, and to touch on an error from before:
initrd.img
It really shouldn't matter what file extensions you use, you could even rename it to:
chucksDiner
And it should still work. The problem was more likely that it was pointing to a non-existent file or a bad symlink (or something else..). Lilo should complain, and when it does, you should look at what it's complaining about. This is a feature I LOVE about LILO, it's complain feature
/boot/initrd should be different for Mandrake. Copy over Mandrake's initrd and rename it:
cp /Mandy/boot/initrd-2.4.18-mdk /boot/initrd-Mandy
And make the changes in lilo.
The Mandrake boot process gets passed the "Press "I" to enter interactive mode, and gets to a couple of lines after "configuring kernel parameters" - it's too quick to see the next two or three lines - then it starts the "/etc/rc.d/rc.sysinit: line *** : ********** Permission denied" errors.
Before you through SuSE on there did your Mandrake install have seperate partitions for maybe /var and possibly /usr ? This could also be symptomatic of not having a /var partition mounted (since it doesn't exist ).
And does *** in your post actually have line numbers in it? If so, can you tell us maybe 3 or 4 of them?
Yeah, you got me... I can only *guess* that it was from overwriting a partition that contained some valuable info, possible the /bin partition. If you have got backups all made, I'd wipe both installs, strap in one, strap in the other, then follow the above posts to make it all clean and neat and see how things run. It's likely just a hiccup from slapping one over the other and back again.
Before posting my problem, I had Mandrake installed on hdb2, and nothing on hdb5 - Mandrake worked ok. It is when I installed SuSE on hdb5, that I ran into the current problem. I tried new installs of both Mandrake and SuSE into (only) their respective partitions. Having done this several times, I don't think another series of installs will help me.
As an experiment, I setup vmlinuz-suse and initrd on hdb5 (SuSE partition), and vmlinuz-mdk and initrd-mdk on hdb2 (Mandrake partition) - so that the Mandrake files are not in the /boot directory on theSuSE partition, and vice versa. (The Mandrake files need to be in the SuSE /boot directory when running lilo to avoid lilo errors, and then removed for this experiment).
Unfortunately, this did not solve the Mandrake booting problem.
Thank you MasterC for all your help. Maybe someone might have some other clues.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.