LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-30-2009, 07:27 AM   #1
qplumb
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Rep: Reputation: 0
Boot error Mint/xp/os x


Sorry to trouble you all I'm at my wit's end with this.I have 2 drives in my system sata running os x and ide running win xp.I installed mint on the ide to dual boot with xp,everything running great but now I can't boot my os x drive.I get grub error 11 with both drives connected and error 21 with only my sata connected.I can see my os x drive from my mint install.Mint is on ext3,xp is ntfs and os x is HFS+.
Thanks in advance and appologies if it's been covered before but I can't find references on google covering 2 seperate drives.
Cheers John
 
Old 04-30-2009, 09:35 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,281

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
Which drive is set first boot priority, osx or xp/Mint?

If you can boot Mint, login in and run: sudo fdisk -l command from a terminal and post the output here. That's a lower case Letter L, no a number one in the command. This shows partition information on disks.

The error 21 is 'selected disk does not exist' so I would assume (?) you installed stage1 Grub to the mbr of SATA disk and it is looking for the remaining Grub boot files which are on the other disk where Mint is installed.

Take a look at the /boot/grub/menu.lst file also to see what entry you have for OS X, if any. If you don't understand it, post menu.lst file here.
 
Old 05-01-2009, 04:31 AM   #3
qplumb
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
Which drive is set first boot priority, osx or xp/Mint?

If you can boot Mint, login in and run: sudo fdisk -l command from a terminal and post the output here. That's a lower case Letter L, no a number one in the command. This shows partition information on disks.

The error 21 is 'selected disk does not exist' so I would assume (?) you installed stage1 Grub to the mbr of SATA disk and it is looking for the remaining Grub boot files which are on the other disk where Mint is installed.

Take a look at the /boot/grub/menu.lst file also to see what entry you have for OS X, if any. If you don't understand it, post menu.lst file here.
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 * 1 14594 117220792+ af Unknown

Disk /dev/sdb: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa10ea10e

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 10102 81144283+ 7 HPFS/NTFS
/dev/sdb2 10103 24792 117997425 f W95 Ext'd (LBA)
/dev/sdb5 22160 24792 21149541 7 HPFS/NTFS
/dev/sdb6 10103 10574 3791277 83 Linux
/dev/sdb7 21664 22159 3984088+ 82 Linux swap / Solaris
/dev/sdb8 10575 21206 85401508+ 83 Linux
/dev/sdb9 21207 21663 3670821 82 Linux swap / Solaris

Partition table entries are not in disk order




I think my 2 disks are bieng treated as one large one as my sata with os x on it is 120gig.



This is the full /boot/grub/menu.lst file sorry if it's too much

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

## Graphical boot menu location
gfxmenu=/boot/gfxmenu/default.message

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sdb6 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,5)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Linux Mint 6, kernel 2.6.27-7-generic
root (hd1,5)
kernel /boot/vmlinuz-2.6.27-7-generic root=/dev/sdb6 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet

title Linux Mint 6, kernel 2.6.27-7-generic (recovery mode)
root (hd1,5)
kernel /boot/vmlinuz-2.6.27-7-generic root=/dev/sdb6 ro single
initrd /boot/initrd.img-2.6.27-7-generic

title Linux Mint 6, kernel Last successful boot
root (hd1,5)
kernel /boot/last-good-boot/vmlinuz root=/dev/sdb6 ro quiet splash last-good-boot
quiet

title Linux Mint 6, memtest86+
root (hd1,5)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
 
Old 05-01-2009, 09:41 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,281

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
Your fdisk output shows OSX on sda1 (120GB drive) and your Mint/xp on sdb which shows as 203.9GB. If I understand correctly, you are able to boot Mint and xp but not OSX? Look at the menu.lst file you posted. There is not entry for OSX! I've never used the operating system but I imagine it can be chainloaded so put this entry in the menu.lst:

Title OSX (or whatever you want)
rootnoverify (hd0,0)
chainloader +1

I'd also suggest you delete partition sda9 as there is no need to have two swap partitions.
 
Old 05-02-2009, 04:04 AM   #5
qplumb
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Original Poster
Rep: Reputation: 0
I've edited my menu.lst and now I get error 12 when selecting my osx drive,could you please edit my menu.lst and post it for me?I have my work related info on it and really need access to it.Thanks in advance John

Last edited by qplumb; 05-02-2009 at 06:41 AM.
 
Old 05-02-2009, 10:47 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,281

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
Quote:
Grub Error 12 : Invalid device requested
This error is returned if a device string is recognizable but does not fall under the other device errors.
That helps!

I'm assuming that you are able to boot Mint and xp, is that correct??

I'm assuming you have your OSX drive set as first boot priority in your BIOS, can you check to be sure?

Grub doesn't always see drives/partitions the same way as you get with the fdisk command for a variety of reasons. I would suggest that to find out how Grub sees your drives, log in to Mint and as root with sudo command type 'grub' at the command line. You should get this prompt 'grub>' (w/o quotes)

At the grub prompt, type geometry (hd0) (hit enter key) then geometry (hd1) (hit enter key) and post the output here.

If Mint and xp boot, no need to change any other entries. You could try changing the entry for OSX to:

rootnoverify (hd0,0)
makeactive
chainloader +1

There must be a space after rootnoverify as well as after chainloader.
No sure if this will work as I've never used Grub to boot OSX.

Did a little googling and didn't find much. The site below indicates you may need to copy a file from osx to /boot/grub directory. It's under the 'Ubuntu" users section since Mint is based on Ubuntu.
 
Old 05-02-2009, 12:43 PM   #7
qplumb
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Original Poster
Rep: Reputation: 0
When I set mint up I used the drive containing xp and lft the drive with osx on it purely for that.I've tried lots of different edits on my menu.lst and have errors everytime.I can boot xp and mint.The drive with osx on is the drive that grub has loaded I'm sure because if I change boot order in bios to the xp/mint drive xp loads by default.
Here is my grub output you requested

grub> geometry (hd0)

Error 21: Selected disk does not exist

grub> geometry (hd1)

Error 21: Selected disk does not exist
I've edited menu.lst and now get error 23 error while parsing number
on boot when selecting osx.
Thanks for your continued help it's very much appriciated.

Last edited by qplumb; 05-02-2009 at 12:48 PM.
 
Old 05-02-2009, 03:09 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,281

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
In my last post, I referred to a site with some info on dual-booting osx and Linux but forgot to post the link. Did a brief search again but can't find anything useful. From what I read, booting OSX with Grub involves a little more than dual-booting with windows. Never tried it so I don't have any experience.

You might try adding the word 'boot' to the end of the entry for OSX in menu.lst.

Very strange that you are booting xp and Mint with Grub and get no output from the geometry commands!

I think this is the site I saw earlier, didn't mean much to me but I'm not familiar with the system. Might help you?

http://cy8erpunkthunk.blogspot.com/2...and-osx86.html

One option is to restore the OSX bootloader (whatever that is) to the mbr of its disk, then disconnect that drive and put Grub on the mbr of the second drive w/Mint & xp.
 
Old 05-04-2009, 05:07 AM   #9
qplumb
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Sorted!


Here is my new menu.lst


title Linux Mint 6, kernel 2.6.27-7-generic
root (hd1,5)
kernel /boot/vmlinuz-2.6.27-7-generic root=/dev/sdb6 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet

title Linux Mint 6, kernel 2.6.27-7-generic (recovery mode)
root (hd1,5)
kernel /boot/vmlinuz-2.6.27-7-generic root=/dev/sdb6 ro single
initrd /boot/initrd.img-2.6.27-7-generic

title Linux Mint 6, kernel Last successful boot
root (hd1,5)
kernel /boot/last-good-boot/vmlinuz root=/dev/sdb6 ro quiet splash last-good-boot
quiet

title Linux Mint 6, memtest86+
root (hd1,5)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
noroot
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Mac OSx Leopard
root (hd0,0)
savedefault
makeactive
map (hd0) (hd0)
map (hd0) (hd0)
chainloader +1

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1



Ever os now boots!Fantastic thank you
 
  


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
Newbie with Mint/ Linux needs to install Clam AV in Mint after 4 Wdws Trogan attack BAKEAPPLEFARM Linux Mint 6 03-24-2010 08:38 PM
Newbie with Mint/ Linux would like to iinstall WINE on Mint so found no help for this BAKEAPPLEFARM Linux Mint 4 05-08-2009 08:33 AM
After using Mint 6 USB to tranfser files on XP drives I get a grub 21 Error when boot Barlowjim Linux - Newbie 8 03-14-2009 04:19 PM
How do I replace Linux Mint with Suse 11.0 on PC with Win XP Mint and Ubuntu? jremsen Linux - Software 4 02-15-2009 06:54 AM
re installation of grub in Linux mint after installing xp over mint sampad.sarangi General 1 01-15-2008 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:50 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration