add slackware to grub - Setup

This is a discussion on add slackware to grub - Setup ; Hello, I have Fedora 8 and now installed Slackware 12.1 I tried to add the Slackware to the grub but I got a "error 15 - file not found". I've checked the configurations but can't find the problem. Here is ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: add slackware to grub

  1. add slackware to grub

    Hello,

    I have Fedora 8 and now installed Slackware 12.1
    I tried to add the Slackware to the grub but I got a "error 15 - file
    not
    found". I've checked the configurations but can't find the problem.

    Here is my configuration:

    ---------------CONFIG------------------

    ----------------------------
    Partitions:
    ----------------------------

    # fdisk -l /dev/sda

    Disk /dev/sda: 80.0 GB, 80032038912 bytes
    255 heads, 63 sectors/track, 9730 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xa60fa60f

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 2611 20972826 7 HPFS/NTFS
    /dev/sda2 2612 9730 57183367+ f W95 Ext'd
    (LBA)
    /dev/sda5 2612 3133 4192933+ 83 Linux
    /dev/sda6 3134 3525 3148708+ 83 Linux
    /dev/sda7 3526 3917 3148708+ 83 Linux
    /dev/sda8 3918 4048 1052226 83 Linux
    /dev/sda9 4049 4179 1052226 82 Linux swap /
    Solaris
    /dev/sda10 4180 8685 36194413+ 7 HPFS/NTFS
    /dev/sda11 8686 8809 995998+ 82 Linux swap /
    Solaris
    /dev/sda12 8810 9730 7397901 83 Linux (here is
    slack)

    ----------------------------
    grub.conf
    ----------------------------

    title SlackWare
    root(hd0,11)
    kernel /boot/vmlinuz ro root=/dev/hda12

    ----------------------------
    Contents of /boot in Slackware:
    ----------------------------

    # ls -l /media/disk/boot/
    total 17132
    lrwxrwxrwx 1 root root 28 2008-07-02 12:38 config -> config-huge-
    smp-2.6.24.5-smp
    -rw-r--r-- 1 root root 82369 2008-04-30 15:02 config-
    generic-2.6.24.5
    -rw-r--r-- 1 root root 82657 2008-04-30 14:19 config-generic-
    smp-2.6.24.5-smp
    -rw-r--r-- 1 root root 82208 2008-04-30 15:15 config-huge-2.6.24.5
    -rw-r--r-- 1 root root 82536 2008-04-30 14:42 config-huge-
    smp-2.6.24.5-smp
    lrwxrwxrwx 1 root root 32 2008-07-02 12:38 System.map ->
    System.map-huge-smp-2.6.24.5-smp
    -rw-r--r-- 1 root root 844024 2008-04-30 15:02 System.map-
    generic-2.6.24.5
    -rw-r--r-- 1 root root 880187 2008-04-30 14:19 System.map-generic-
    smp-2.6.24.5-smp
    -rw-r--r-- 1 root root 1282875 2008-04-30 15:15 System.map-
    huge-2.6.24.5
    -rw-r--r-- 1 root root 1320655 2008-04-30 14:42 System.map-huge-
    smp-2.6.24.5-smp
    lrwxrwxrwx 1 root root 29 2008-07-02 12:38 vmlinuz -> vmlinuz-
    huge-smp-2.6.24.5-smp
    -rw-r--r-- 1 root root 2055544 2008-04-30 15:02 vmlinuz-
    generic-2.6.24.5
    -rw-r--r-- 1 root root 2167384 2008-04-30 14:19 vmlinuz-generic-
    smp-2.6.24.5-smp
    -rw-r--r-- 1 root root 4205208 2008-04-30 15:15 vmlinuz-huge-2.6.24.5
    -rw-r--r-- 1 root root 4369880 2008-04-30 14:42 vmlinuz-huge-
    smp-2.6.24.5-smp

    ---------------CONFIG------------------

    Any help will be appreciated.

    greetings,

    hans

  2. Re: add slackware to grub

    Hans wrote:
    > Hello,
    >
    > I have Fedora 8 and now installed Slackware 12.1
    > I tried to add the Slackware to the grub but I got a "error 15 - file
    > not
    > found". I've checked the configurations but can't find the problem.
    >
    > Here is my configuration:
    >
    > [snip]


    /boot in Fedora and /boot in Slackware have to be the same /boot.
    grub has to be able to find /boot without looking in any fstab, because
    it runs before the OS loads (by necessity), so it gets configured
    directly for a partition by its setup.

  3. Re: add slackware to grub

    On Sat, 05 Jul 2008 07:40:52 -0700, Hans wrote:

    > Hello,
    >
    > I have Fedora 8 and now installed Slackware 12.1
    > I tried to add the Slackware to the grub but I got a "error 15 - file
    > not
    > found". I've checked the configurations but can't find the problem.
    >
    > Here is my configuration:
    >
    > ---------------CONFIG------------------
    >
    > ----------------------------
    > Partitions:
    > ----------------------------
    >
    > # fdisk -l /dev/sda
    >
    > Disk /dev/sda: 80.0 GB, 80032038912 bytes
    > 255 heads, 63 sectors/track, 9730 cylinders
    > Units = cylinders of 16065 * 512 = 8225280 bytes
    > Disk identifier: 0xa60fa60f
    >
    > Device Boot Start End Blocks Id System
    > /dev/sda1 * 1 2611 20972826 7 HPFS/NTFS
    > /dev/sda2 2612 9730 57183367+ f W95 Ext'd
    > (LBA)
    > /dev/sda5 2612 3133 4192933+ 83 Linux
    > /dev/sda6 3134 3525 3148708+ 83 Linux
    > /dev/sda7 3526 3917 3148708+ 83 Linux
    > /dev/sda8 3918 4048 1052226 83 Linux
    > /dev/sda9 4049 4179 1052226 82 Linux swap /
    > Solaris
    > /dev/sda10 4180 8685 36194413+ 7 HPFS/NTFS
    > /dev/sda11 8686 8809 995998+ 82 Linux swap /
    > Solaris
    > /dev/sda12 8810 9730 7397901 83 Linux (here is
    > slack)
    >
    > ----------------------------
    > grub.conf
    > ----------------------------
    >
    > title SlackWare
    > root(hd0,11)
    > kernel /boot/vmlinuz ro root=/dev/hda12
    >
    > ----------------------------
    > Contents of /boot in Slackware:
    > ----------------------------
    >
    > # ls -l /media/disk/boot/
    > total 17132
    > lrwxrwxrwx 1 root root 28 2008-07-02 12:38 config -> config-huge-
    > smp-2.6.24.5-smp
    > -rw-r--r-- 1 root root 82369 2008-04-30 15:02 config-
    > generic-2.6.24.5
    > -rw-r--r-- 1 root root 82657 2008-04-30 14:19 config-generic-
    > smp-2.6.24.5-smp
    > -rw-r--r-- 1 root root 82208 2008-04-30 15:15 config-huge-2.6.24.5
    > -rw-r--r-- 1 root root 82536 2008-04-30 14:42 config-huge-
    > smp-2.6.24.5-smp
    > lrwxrwxrwx 1 root root 32 2008-07-02 12:38 System.map ->
    > System.map-huge-smp-2.6.24.5-smp
    > -rw-r--r-- 1 root root 844024 2008-04-30 15:02 System.map-
    > generic-2.6.24.5
    > -rw-r--r-- 1 root root 880187 2008-04-30 14:19 System.map-generic-
    > smp-2.6.24.5-smp
    > -rw-r--r-- 1 root root 1282875 2008-04-30 15:15 System.map-
    > huge-2.6.24.5
    > -rw-r--r-- 1 root root 1320655 2008-04-30 14:42 System.map-huge-
    > smp-2.6.24.5-smp
    > lrwxrwxrwx 1 root root 29 2008-07-02 12:38 vmlinuz -> vmlinuz-
    > huge-smp-2.6.24.5-smp
    > -rw-r--r-- 1 root root 2055544 2008-04-30 15:02 vmlinuz-
    > generic-2.6.24.5
    > -rw-r--r-- 1 root root 2167384 2008-04-30 14:19 vmlinuz-generic-
    > smp-2.6.24.5-smp
    > -rw-r--r-- 1 root root 4205208 2008-04-30 15:15 vmlinuz-huge-2.6.24.5
    > -rw-r--r-- 1 root root 4369880 2008-04-30 14:42 vmlinuz-huge-
    > smp-2.6.24.5-smp
    >
    > ---------------CONFIG------------------
    >
    > Any help will be appreciated.
    >
    > greetings,
    >
    > hans

    Did you uninstall Fedora? Did you reinstall grub as provided by Slackware?
    Neither of the above options is "wrong," but consistency is required. I
    recommend using a piece of paper to document your MBR, partition tables,
    and boot partition. Use it as a reference whenever making major
    changes to your system. Your documentation will show you a "path" to
    keep your system working. For example, if you remove Fedora, then your
    notes will tell you that grub must be reinstalled somewhere else.

    Also, if you keep things straight and consistent, then other kernel
    references can simply be added to the grub menu.lst without running into
    "Error 15." etc. Be aware that there are a lot more ways to do it wrong
    than to do it right. Time spent learning about the bootloader can be a
    good investment which will pay dividends later on. Practice makes perfect.

    More info...
    If you are using a stock Slackware kernel, then be aware that Slackware
    12.0 (and beyond) require an initrd. It looks like you are trying to
    use the "huge" kernel to avoid that requirement, but it is advised
    that you use the "generic" kernel with an initrd. BTW, even though
    Slackware uses lilo as the default bootloader, you can use whatever
    bootloader you prefer. My preferred bootloader is always grub, and I use
    it with Slackware all of the time.

    Good luck!

    --
    Douglas Mayne


  4. Re: add slackware to grub

    On Sat, 05 Jul 2008 07:40:52 -0700, Hans wrote:

    > Hello,
    >
    > I have Fedora 8 and now installed Slackware 12.1
    > I tried to add the Slackware to the grub but I got a "error 15 - file
    > not
    > found". I've checked the configurations but can't find the problem.
    >
    > Here is my configuration:
    >
    > ---------------CONFIG------------------
    >
    > ----------------------------
    > Partitions:
    > ----------------------------
    >
    > # fdisk -l /dev/sda
    >
    > Disk /dev/sda: 80.0 GB, 80032038912 bytes
    > 255 heads, 63 sectors/track, 9730 cylinders
    > Units = cylinders of 16065 * 512 = 8225280 bytes
    > Disk identifier: 0xa60fa60f
    >
    > Device Boot Start End Blocks Id System
    > /dev/sda1 * 1 2611 20972826 7 HPFS/NTFS
    > /dev/sda2 2612 9730 57183367+ f W95 Ext'd
    > (LBA)
    > /dev/sda5 2612 3133 4192933+ 83 Linux
    > /dev/sda6 3134 3525 3148708+ 83 Linux
    > /dev/sda7 3526 3917 3148708+ 83 Linux
    > /dev/sda8 3918 4048 1052226 83 Linux
    > /dev/sda9 4049 4179 1052226 82 Linux swap /
    > Solaris
    > /dev/sda10 4180 8685 36194413+ 7 HPFS/NTFS
    > /dev/sda11 8686 8809 995998+ 82 Linux swap /
    > Solaris
    > /dev/sda12 8810 9730 7397901 83 Linux (here is
    > slack)
    >
    > ----------------------------
    > grub.conf
    > ----------------------------
    >
    > title SlackWare
    > root(hd0,11)
    > kernel /boot/vmlinuz ro root=/dev/hda12
    >


    Change the root=/dev/hda12 to root=/dev/sda12 and you should be fine.

    --
    old-polack
    Of what use be there for joy, if not for the sharing thereof?



  5. Re: add slackware to grub

    On Sat, 05 Jul 2008 10:09:44 -0500, Allen Kistler wrote:

    > /boot in Fedora and /boot in Slackware have to be the same /boot. grub has
    > to be able to find /boot without looking in any fstab, because it runs
    > before the OS loads (by necessity), so it gets configured directly for a
    > partition by its setup.


    Total hogwash. All that is needed is a proper entry for Slackware in the
    Fedora /boot/grub/grub.conf

    --
    old-polack
    Of what use be there for joy, if not for the sharing thereof?



+ Reply to Thread