LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-08-2008, 05:56 PM   #1
tamtam
Member
 
Registered: May 2004
Distribution: Slackware.
Posts: 323

Rep: Reputation: 33
Slackware OpenSolaris GRUB problem


I have installed opensolaris on a PC that triple boots with Windows XP and Slackware.

I have had real problems getting both XP and Slackware to boot from opensolaris. I have to use the opensolaris GRUB for this to work.

Currently my GRUB looks like this...
Code:
#---------------------END BOOTADM--------------------

title Windows
     rootnoverify (hd1,0)
     map        (hd0) (hd1)
     map        (hd1) (hd0)
     chainloader +1

title Slackware 
     root (hd1,1)
     kernel /boot/vmlinuz-huge-2.6.24.5
I can now boot into Windows but not Slackware...
Message goes like this...
Quote:
Booting 'Slackware'

root (hd1,1)
Filesystem type is ext2fs, partition type 0x83
Error 2: Bad file or directory type

Press any key to continue...
Has this anything to do with Slackware kernel being an image...

Or can the knowledgeable people point out where I am going wrong...

Reason I am posting here is because I think this maybe more Slackware related than opensolaris...see this post for a quick run down of the steps taken...
http://www.linuxquestions.org/questi...d-lilo-674398/

Thanks in advance...
 
Old 10-08-2008, 06:59 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
The boot line does not seem to be complete
Code:
title Slackware 
     root (hd1,1)
     kernel /boot/vmlinuz-huge-2.6.24.5 ro root=/dev/hdb1
Assuming root partition is /dev/hdb1 (eg first partition on second IDE device)
 
Old 10-09-2008, 01:47 PM   #3
tamtam
Member
 
Registered: May 2004
Distribution: Slackware.
Posts: 323

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by keefaz View Post
The boot line does not seem to be complete
Code:
title Slackware 
     root (hd1,1)
     kernel /boot/vmlinuz-huge-2.6.24.5 ro root=/dev/hdb1
Assuming root partition is /dev/hdb1 (eg first partition on second IDE device)
Nope still doesn't work...
Code:
title Slackware 
     root (hd1,1)
     kernel /boot/vmlinuz-huge-2.6.24.5 root=/dev/hda2 ro
Getting annoyed now...this is beyond a joke.

Snooping around google I found these two posts...about
Quote:
Error 2:Bad file or directory

This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO.
From here
http://www.uruk.org/orig-grub/errors.html#stage2

And even more worrying is....
http://www.thelinuxlink.net/myblog/?p=87

Anyone using another distros GRUB successfully where the GRUB is in the MBR of one hard drive and Slack and LILO is on the MBR on another hard drive on the same machine...
 
Old 10-09-2008, 01:53 PM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
I would recommend getting in the grub prompt and using the "find" command to see where grub thinks the files are. I.e. start "grub" at the command line or while booting go to the interactive mode and type "find vmlinuz-huge-2.6.24.5" and variations such as "find /boot/vmlinuz-huge-2.6.24.5"
 
Old 10-09-2008, 01:58 PM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
If your root partition is /dev/hda2, your root line is wrong, it should be:
Code:
title Slackware 
     root (hd0,1)
     kernel /boot/vmlinuz-huge-2.6.24.5 root=/dev/hda2 ro
 
Old 10-09-2008, 03:55 PM   #6
tamtam
Member
 
Registered: May 2004
Distribution: Slackware.
Posts: 323

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by keefaz View Post
If your root partition is /dev/hda2, your root line is wrong, it should be:
Code:
title Slackware 
     root (hd0,1)
     kernel /boot/vmlinuz-huge-2.6.24.5 root=/dev/hda2 ro
Nope the root line is correct, because of the way opensolaris installs, it places GRUB to the MBR of the disk it is installed on. My hda (first disk) has windows and slackware on it with slacks lilo installed on the MBR of that disk. The second disk (hdb) has opensolaris on it and GRUB installed to the second disks MBR.
Opensolaris is based around the Solaris OS. It uses the Solaris the ZFS filesystem. Most other OSes won't recognize it, including Slackware. It also has it's unique GRUB. As far as I am lead to believe you have to use the opensolaris grub to load other OSes because other linux grubs cant load solaris, and lilo definately cannot.
To boot into opensolaris installed on the second disk I had to change the order of boot for the disks in the bios. In other words hda(hd0) becomes hdb(hd1) and vice versa. Therefore Slackware is now on hd1 on second partition (hd1,1). But in Slackware itself it is still in /dev/hda2.
I did not want to keep going into the bios to change the boot order of my disks every time I wanted to change OSes.

Solved the problem now. Thanks to jlliagre pointing me in the right direction initially. I read this webpage on chainloading.
http://users.bigpond.net.au/hermanzo...ainloader_boot
I managed to chainload the slackware lilo by referencing the MBR of the first disk as follows...

Code:
title        Slackware Disk MBR
root        (hd1)
chainloader    +1
Note no second parameter like (hd1,1).
Selecting Slackware Disk MBR now gives me the normal Slackware lilo splash screen where I can login to both Windows and Slackware. Nice.

After doing this I now realize I do not need the windows entry in GRUB.

Thanks to all on both the opensolaris subforum and here who helped out.
 
  


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
Slackware and opensolaris tamtam Slackware 3 10-05-2008 05:05 PM
A problem with su on OpenSolaris 2008.05 crisostomo_enrico Solaris / OpenSolaris 4 05-13-2008 04:50 AM
GRUB problem: Windows XP, Fedora Core 3, Slackware 10.1 zahadumy Linux - General 4 11-18-2005 09:43 PM
Problem booting Slackware from GRUB Spooner Slackware 2 03-05-2003 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:23 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration