SlackwareThis Forum is for the discussion of Slackware Linux.
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.
When you will boot with such a config, at boot time nothing exists under /mnt yet, i think. Your fedora will appear under /mnt only when slackware is booted.
therefore, you will have to have:
image = /boot/vmlinuz-2.6.11-1.1369_FC4
root = /dev/hda6
label = fedora
initrd = /boot/initrd-2.6.11-1.1369_FC4.img
and your initrd and kernel must be in boot directory of your Fedora install
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
Quote:
Originally Posted by akus
When you will boot with such a config, at boot time nothing exists under /mnt yet, i think. Your fedora will appear under /mnt only when slackware is booted.
What you said is correct but is the wrong way to understand configuring Lilo. Lilo is not configured at boot time, so his entries are correct. When you multiboot with Lilo you have to have paths to your other Linux' kernels mounted. As long as Lilo installs and he specified everything correctly, the system will boot properly.
OP you didn't give any discussion of what happened. And is your Fedora installation really only 100M?
Please show your lilo command and output and explain what happens when you try to boot. Can you boot anything?
What you said is not correct but is the wrong way to understand configuring Lilo. Lilo is not configured at boot time, so his entries are correct.
Well, i know that lilo is NOT configured at boot time.
This config will work if kernel and initrd (with /dev/hda6 as root!) are indeed kept in /mnt/fedora/
(this would be strange place to choose however)
I think that, then when lilo was installed with such config, Deepak Jain was booted in Slackware, therefore lilo didn't complain.
But when you try to boot now with root=/dev/hda6, lilo will look for the kernel in the directory /mnt/fedora and won't find it.
Am I wrong?
update.
I created directory fedora in my /mnt, and I put there one kernel and System.map.
Then I added entry in my lilo:
And then I installed lilo with no complains.
But If I reboot and choose "lunarnew", it will not find kernel, becuase in my lunarnew install, there is no /mnt/fedora dir at all
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
Quote:
Originally Posted by akus
Well, i know that lilo is NOT configured at boot time.
This config will work if kernel and initrd (with /dev/hda6 as root!) are indeed kept in /mnt/fedora/
(this would be strange place to choose however)
Not really- when you are setting up a multiboot with Lilo all you have to do is have the paths to all your kernels mounted. It doesn't mean that you run your Linux like this all the time. I multiboot 5 OS + Winbloze. Most of the time I don't have filesystems for my other OS mounted in my main Linux. But I have to mount all the paths to the kernels when I want to run Lilo.
Quote:
Originally Posted by akus
I think that, then when lilo was installed with such config, Deepak Jain was booted in Slackware, therefore lilo didn't complain.
But when you try to boot now with root=/dev/hda6, lilo will look for the kernel in the directory /mnt/fedora and won't find it.
Am I wrong?
Yes- you are wrong. It's a little surprising, but if you think about it, it makes sense. Lilo only needs to know where the kernels are when you run lilo. When he is configuring, he does what he has to do and creates whatever files he needs to create. During boot time he does not need access to the paths by using any Linux mountpoints. This makes sense because as you pointed out, nothing is available until Linux comes up. So if your original idea was correct, nothing could ever be booted since you would have to have a running system so you could read the files.
Quote:
Originally Posted by akus
update.
I created directory fedora in my /mnt, and I put there one kernel and System.map.
Then I added entry in my lilo:
And then I installed lilo with no complains.
But If I reboot and choose "lunarnew", it will not find kernel, becuase in my lunarnew install, there is no /mnt/fedora dir at all
I don't think that's what he did. Maybe I'm wrong. The idea is to point to the kernel where it already exists, not to create copies of kernels. What you want to do is mount the path to the existing kernel.
For example, if his FC system is on hda6 he can do:
1. mkdir /mnt/Fedora
2. mount /dev/hda6/boot /mnt/Fedora
3. run lilo
4. umount /mnt/Fedora
If he did what you said, I haven't tested that. It doesn't make sense to start copying stuff all over the place. Just leave it where it is and mount the path. That's why UNIX/Linux has a mount command.
In this thread I gave an example of a multiboot with Lilo using temporary mountpoints (mountpoints that only exist while I run Lilo):
Ok, I spent 15 minutes experimenting, and I have to admit that I was wrong.
You are right, it has indeed much more sense for lilo to remember only physical place on the disk, where kernel is located.
Thanks for illuminating explanation!
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
Quote:
Originally Posted by akus
Ok, I spent 15 minutes experimenting, and I have to admit that I was wrong.
You are right, it has indeed much more sense for lilo to remember only physical place on the disk, where kernel is located.
Thanks for illuminating explanation!
You're welcome. I also had to run many tests when I was trying to learn this The great thing about Linux is how you can try many different ways.
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
Quote:
Originally Posted by MarsDude
It's much easier to have 1 boot partition with the fedora and the slackware kernels on it (and system.maps etc) IMHO
It's a waste of a partition since the installers are going to put this stuff in /boot for each distro anyway. If you want to copy it into one place, you certainly can. Now you have two copies. What will you do- delete the original in /boot or leave it there?
I think it's easier to leave everything where it is installed. And it can be risky- if you tell the installer to mount /boot on your special partition, some of them may wipe out the partition.
I prefer to keep all of my distros completely separate, sharing nothing. That way I can do anything to any distro without disabling my other distros.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.