LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-27-2011, 02:15 PM   #1
x360539
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Rep: Reputation: 0
GRUB Error 15: Dual Boot Slack and OpenIndiana


Hi all,

I have a dual-boot system with OpenIndiana and Slackware.

Slackware is installed on /dev/sda1
OpenIndiana is installed on /dev/sda2

OpenIndiana was installed after Slackware and installed GRUB (the legacy version). Of course, OpenIndiana didn't register Slack in the GRUB menu. (It doesn't seem to want to play nice with other systems.)

So, before editing the GRUB menu in OI, I've been experimenting at the GRUB command line, trying to get Slack to boot.

When I enter:

Code:
grub> root (hd0,0)
I get:

Code:
Filesystem type is ext2fs, partition type 0x83
Which tells me I'm targeting the correct partition.

But when I enter:

Code:
grub> kernel /boot/vmlinuz root=/dev/sda1 ro
I get:

Code:
Error 15: File not found
I'm not sure what I'm missing. I've also tried entering the entire name of the kernel, but I get the same error.

Is it because OI installed GRUB is some odd location? Would that make a difference?

Thanks.
 
Old 06-27-2011, 03:30 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Hi there,

Try this:

Make a copy of grub.conf

1. Type root (As you did)
2. Instead of typing grub> kernel /boot/vmlinuz root=/dev/sda1 ro type setup (hd0) instead
3. cat grub.conf file and see if you have got boot partitions pointing to correct location. Else paste the output here so that we guys can have a look at it.
 
Old 06-27-2011, 11:21 PM   #3
x360539
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks so much for the reply!

After I did:

Code:
root (hd0,0)
I entered:

Code:
setup (hd0)
which produced:

Code:
Checking if "/boot/grub/stage1" exists...no
Checking if "/grub/stage1" exists...no
Which is odd because "/boot/grub/stage1" does exist on OI.

I couldn't find grub.conf, but the "menu.lst" file from "/rpool/boot/grub/menu.lst" appears below. Slack is the first "unknown" partition:

Code:
splashimage /boot/grub/splash.xpm.gz
foreground 343434
background F7FbFF
default 0
timeout 30
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title OpenIndiana Development oi_148 X86
findroot (pool_rpool,1,a)
bootfs rpool/ROOT/openindiana
splashimage /boot/solaris.xpm
foreground FF0000
background A8A8A8
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=graphics
module$ /platform/i86pc/$ISADIR/boot_archive
#---------------------END BOOTADM--------------------

# Unknown partition of type 131 found on /dev/rdsk/c2t0d0p0 partition: 1
# It maps to the GRUB device: (hd0,0) .

# Unknown partition of type 0 found on /dev/rdsk/c2t0d0p0 partition: 3
# It maps to the GRUB device: (hd0,2) .

# Unknown partition of type 0 found on /dev/rdsk/c2t0d0p0 partition: 4
# It maps to the GRUB device: (hd0,3) .

# Unknown partition of type 0 found on /dev/rdsk/c2t3d0p0 partition: 2
# It maps to the GRUB device: (hd0,1) .
The "menu.list" file located in the traditional location "/boot/grub/menu.lst" has a note in it:

Code:
# With zfs root the active menu.lst file is /<pool>/boot/grub/menu.lst
# This reference copy of the file is not used.
I don't know if this moving of the GRUB files around due to ZFS has something to do with the problem.

Thanks!
 
Old 06-28-2011, 02:18 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Quote:
But when I enter:

grub> kernel /boot/vmlinuz root=/dev/sda1 ro

I get:

Error 15: File not found
GRUB needs a device location. Try something this:

grub> kernel (hd0,0)/boot/vmlinuz root=/dev/sda1 ro

You likely do not have a common /boot partition. Therefore /boot is unique to each operating system.

For Slackware:

(hd0,0)/boot/vmlinuz root=/dev/sda1 ro

For OpenIndiana:

(hd0,1)/boot/vmlinuz root=/dev/sda2 ro

GRUB starts counting with zero. Therefore the Slackware partition, /dev/sda1, is located on device zero and partition zero (hd0,0). The OpenIndiana partition, /dev/sda2, is located on device zero and partition one (hd0,1).
 
Old 06-28-2011, 03:13 PM   #5
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Hi x360539,

You could give a try to steps mentioned by Woodsman.

It appears to me that OpenIndiana replaced the boot loader which Slack has configured before or it might be possible that it has installed its own bootloader and not added any entry for slack.

I am assuming that as of now you are able to boot in OpenIndiana but not in slack (I might be wrong, just a guess I am making)

Perhaps you could have a look at the following link which describes how you can edit menu.lst file to get desired OS listed in: http://boff.wordpress.com/2007/01/17...rub-boot-menu/

I hope this helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub Error 21 Dual Boot. Urglor Linux - General 1 05-15-2009 11:34 PM
Grub error 18 on dual boot SpartacusJones Ubuntu 9 06-28-2007 10:56 PM
GRUB dual boot Error 13 Steve Riley Fedora 4 01-25-2007 03:23 PM
Slack and suse dual boot. boot error cormack Slackware 4 05-24-2006 02:10 AM
Fedora/Slack Dual-Boot w/ GRUB mijenks Linux - Software 0 06-11-2004 08:40 AM


All times are GMT -5. The time now is 03:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration