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.
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 some what new to Linux as in running it as a OS.
Okay In this order I installed to each of my partitions
Windows XP (hd0,0)
Windows XP System Restore (hd0,1)
Fedora 7 (hd0,2)
Slackware 12 (hd0,3)
Windows XP came on this pc and I decided to create two more partitions and installed Fedora and Slackware in this order
Fedora and installed grub.
AT first grub did not detect my XP install (NTFS) but detected my system restore which was a (FAT32). so I had to manually added XP to grub.
I set up my grub this way using Fedora as a example and googled on how to do this and I have no clue
Code:
# 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 (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/sda3
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=4
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.22.9-91.fc7)
root (hd0,2)
kernel /boot/vmlinuz-2.6.22.9-91.fc7 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.22.9-91.fc7.img
title Fedora (2.6.20-2936.fc7xen)
root (hd0,2)
kernel /boot/xen.gz-2.6.20-2936.fc7
module /boot/vmlinuz-2.6.20-2936.fc7xen ro root=LABEL=/ rhgb quiet
module /boot/initrd-2.6.20-2936.fc7xen.img
title Fedora (2.6.20-2925.9.fc7xen)
root (hd0,2)
kernel /boot/xen.gz-2.6.20-2925.9.fc7
module /boot/vmlinuz-2.6.20-2925.9.fc7xen ro root=LABEL=/ rhgb quiet
module /boot/initrd-2.6.20-2925.9.fc7xen.img
title Fedora-base (2.6.21-1.3194.fc7)
root (hd0,2)
kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.21-1.3194.fc7.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
title Windows XP Restore
rootnoverify (hd0,1)
chainloader +1
title Slackware
root (hd0,3)
kernel /boot/linux-2.6.21.7 root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.21.7.img
I tried adding in slackware above like that but i get this error when i try to boot into it
Code:
root (hd0,3)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/linux-2.6.21.7 root=LABEL=/ rhgb quiet
Error 15 File Not Found.
I never gotten to view Slackware interface even after reinstalling Fedora because I made a error with a bad install of a program i was working with which corrupted my install and Fedora did not detect the Slackware install nor i was able to access that partition through fedora to look up who it should look like.
I am mainly just trying to have two versions of Linux installed and windows to be able to test the program make making sure they can be accessed and used but more then one OS.
What i want is help if someone can tell me how to configure grub to boot up Slackware I Am running the latest Version of both Fedora and Slackware I just downloaded and burned them both to DVD and installed them 3 days ago. I have been using google without finding a answer that works
You need to have the same root (hd0,2) for the slackware entry and make sure that your slackware kernel and initrd is copied into that directory with your other kernels.
It shouldn't matter. If you installed grub to the boot sector of the Slackware partition, the chainloader +1 command would still work for booting Slackware.
Other than that, your original grub entry for Slackware just needs a small tweak. Change this:
raziel23x,
Just a thought, if you can boot into fedora why don't mount the Slackware partiton
and check the /boot directory to make sure that you have the image & initrd names
correct. I have never seen a install of Slackware use what you have unless you have
changed them.
Here's a example of my grub
Code:
title Slackware-12 on (/dev/hda5)
root (hd0,4)
kernel /boot/vmlinuz root=/dev/hda5 ro vga=773
initrd /boot/initrd.gz
In your first post you had the following which makes me think that
grub could not find your boot image.
Code:
root (hd0,3)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/linux-2.6.21.7 root=LABEL=/ rhgb quiet
Error 15 File Not Found.
Also, and I may be wrong on this, but when you installed Slackware it
probably did install the lilo package but you choose not to run the
"liloconfig" scrip during the install which would set up lilo as your
boot manager. I do that all the time because I like grub better not
meaning is is better, it is just what I like to use.
The partitions being out of order is not a good thing. But if fedora is booting okay it should be no problem. Boot your fedora install and then mount the slackware partition and copy the slackware kernel and initrd into your fedor /boot directory. Then edit the grub.conf entry for slackware like this:
title Slackware
root (hd0,2)
kernel /boot/linux-2.6.21.7 root=/dev/sda4 ro quiet
initrd /boot/initrd-2.6.21.7.img
OKay I got i did a google searcha nd found my answer to x windows and slackware but now to figure out how to do updates and add software like yum does by it checking online for a newer Version and if it is possible to install yum into slackware
The partitions being out of order is not a good thing. But if fedora is booting okay it should be no problem. Boot your fedora install and then mount the slackware partition and copy the slackware kernel and initrd into your fedor /boot directory. Then edit the grub.conf entry for slackware like this:
title Slackware
Gnashley, can you tell me what's the difference between root (hdx, x) and root=/dev/sdx (why these two arguments are called root but show to different locations?)
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
afaik, root(a,b) tells it where to look for the kernel images etc. etc. you should keep this the same as where you put the grub stage files etc. Thats why people keep their /boot partition different.
the root=/dev/sdaX is a parameter passed to the kernel. This is the partition that the kernel will mount in / and then do a switchroot to.
Essentially , they are totally unrelated. Grub needs to be able to read the root (a,b)/(kernel parameter) to load the kernel. So if you don't have the support for that particular partition in grub (if that partition is a XFS fs while your grub only support ext etc.), then the root(a,b) won't be able to be read.
In simple terms, just keep the root(a,b) the same everywhere as you can be sure that grub can read that 1 partition. I don't think I have seen anyone use multiple partition withing grub. Even more importantly, I am pretty sure that there is no way this could work for logical partitions where a root=/dev/sda6 could work. I think root(a,b) has to always be a primary partition and of a FS that grub can read.
Although you might want to wait for GNashley, I don't use Grub by default ... this is based upon when I used LFS for some time. And ofcourse he might be able to explain better. If you still didn't understand, please tell me what part. Also, there is a long thread in my subscriptions that goes into booting etc. very deeply, I will have to search for it , I will post the link here after sometime.
This line is for GRUB, using the grub syntax:
root (hd0,3)
The other time you use root=/dev/sda4 that is part of the *kernel* command line.
As I mentioned you can use root (hd0,2), because that is where your installed grub is looking for things, including the menu.lst or grub.conf in your case.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.