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 09-26-2006, 10:51 AM   #16
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32

Ah I gotchya! I thought you installed it with the other OS in there already. I was like it prompts you for dual boot during install.

Cheers
 
Old 09-26-2006, 01:33 PM   #17
Tom "Techno" Earl
Member
 
Registered: Sep 2006
Posts: 37

Original Poster
Rep: Reputation: 16
Hi guys,

just a slight problem,

I can now dual boot, but every other time I get:

Error 21: Selected Disk does not exist

It boots windows for a while and then suddenly shutsdown, restarts and then I get this error, I can boot Linux first time, it's just every other time, it won't boot windows!!

I'm sorry to keep bugging you, but you've all been a great help!

Thanks
 
Old 10-18-2007, 01:57 PM   #18
Tom "Techno" Earl
Member
 
Registered: Sep 2006
Posts: 37

Original Poster
Rep: Reputation: 16
Sorry to be a pain! But...

How would I get GRUB to boot the windows disk first, there is a setting called "Default" which is set to "0", should I set it to "1"?

I think that should do it, if it wont, please tell me!!

Thanks again for the support!

Tom
 
Old 10-18-2007, 03:30 PM   #19
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
Yes, one can simply edit GRUB to boot to any possible menu item choice, if Windows is the second choice(1) then all should be OK. One can also rename 'Other' to 'Windows' if desired.


For this: 'Error 21: Selected Disk does not exist' some additional editing GRUB to may be needed, but you need to post the grub.conf file and the device.map file found in the same location (/boot/grub/) for one to be sure. The output from the typed command 'fdisk -l' is also helpful with this issue.
 
Old 10-19-2007, 05:56 AM   #20
Tom "Techno" Earl
Member
 
Registered: Sep 2006
Posts: 37

Original Poster
Rep: Reputation: 16
Hi all,

That default setting worked nicely!

I found out what the error 21 was...

I had a faulty disk, it would start, then stop working, after about 10 mins, it would start again, weird , but, I got a new HD, and that's working beautifully!

Thanks for all your help

Tom
 
Old 10-19-2007, 08:52 AM   #21
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Section A of this thread describes details of installing Linux and Windows to separate disks.

You sound to have the problem licked.

Last edited by saikee; 10-19-2007 at 08:56 AM.
 
Old 11-07-2007, 05:27 PM   #22
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
Yes that makes sense! Sorry if I seemed rude, didn't meant to be!
 
Old 05-19-2008, 04:37 PM   #23
Tom "Techno" Earl
Member
 
Registered: Sep 2006
Posts: 37

Original Poster
Rep: Reputation: 16
Hey,

Sorry to bug y'all again!

I've just upgraded to FC9, I now cannot boot my Windoze HD.

I now have reconfigured my hardware slightly. I now have 2 SATA drives, 1 x 350GB Linux, 1 x 80GB shared and 1 x 160GB IDE windoze.

Here are the ouptuts to the commands you asked for earlier:

$ /sbin/fdisk -l
Code:
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d064d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26         417     3148740   83  Linux
/dev/sda3             418         482      522112+  82  Linux swap / Solaris
/dev/sda4             483       38913   308697007+   5  Extended
/dev/sda5             483       32777   259409556   83  Linux
/dev/sda6           32778       37999    41945683+  83  Linux
/dev/sda7           38000       38652     5245191   83  Linux
/dev/sda8           38653       38913     2096451   83  Linux

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00087c7e

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb4   *           1           1           0    0  Empty
Partition 4 does not end on cylinder boundary.

Disk /dev/sdc: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3bdeb6ce

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1       20022   160826683+   7  HPFS/NTFS
$ cat /etc/grub.conf
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/sda2
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.25.3-18.fc9.i686)
        root (hd0,0)
        kernel /vmlinuz-2.6.25.3-18.fc9.i686 ro root=UUID=d0f2c535-0ef5-4128-b876-6e163ea48920 rhgb quiet
        initrd /initrd-2.6.25.3-18.fc9.i686.img
#title Fedora (2.6.25-14.fc9.i686)
#       root (hd0,0)
#       kernel /vmlinuz-2.6.25-14.fc9.i686 ro root=UUID=d0f2c535-0ef5-4128-b876-6e163ea48920 rhgb quiet
#       initrd /initrd-2.6.25-14.fc9.i686.img
title Windoze
        rootnoverify (hd0,0)
        chainloader +1
$ cat /boot/grub/device.map
Code:
(fd0)   /dev/fd0
(hd0)   /dev/sda
(hd1)   /dev/sdb
(hd2)   /dev/sdc
Hope that's been enough help for you to help!

Thanks

Tom
 
Old 05-19-2008, 07:56 PM   #24
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
According to your Grub's device.map the 3rd disk (hd2) is the device sdc and sdc1 is the only partition that has ntfs filing system. Thus your Windows is in (hd2,0) or /dev/sdc1.

To boot it the /etc/grub.conf should have the following lines (red is the alteration, blue is the addition)
Code:
title Windoze
        rootnoverify (hd2,0)
map (hd2) (hd0)
map (hd0) (hd2)
        chainloader +1
 
Old 05-20-2008, 03:56 AM   #25
Tom "Techno" Earl
Member
 
Registered: Sep 2006
Posts: 37

Original Poster
Rep: Reputation: 16
Hi Saikee,

I just tried your suggestion, it came up with error 22: No Such Partition...

Seems there is something strange going on, I've tried nearly every possibility I can think of! Maybe some fresh eyes on the subject would help...

Thanks

Tom
 
Old 05-20-2008, 07:21 AM   #26
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I know for a fact that the disk order may be changed in the Bios automatically if a hard disk is inserted or withdrawn.

Therefore the device.map derived by Grub may not be up to date.

The sure fire method to find this out is to get it from the horse's mouth. In other word you talk to Grub directly in a Grub prompt. To get a Grub prompt you have to disable the following commands in the /etc/grub.conf by adding a # in front
Code:
#splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
Once done that the boot screen turns to text mode and by pressing the "c" key you drop yourself into a Grub prompt

In a Grub prompt you can boot any PC system directly. So the first thing is to ask Grub to display the partition layout of all the 3 disks by commands
Code:
geometry (hd0)
geometry (hd1)
geometry (hd2)
If the (hd2) shows up only one partition with type No 7 then that will be your MS Windows and you can enter the lines at Grub prompt to fire it up as
Code:
rootnoverify (hd2,0)
map (hd2) (hd0)
map (hd0) (hd2)
chainloader +1
boot
If (hd1) has it then change the hd2 references above to hd1.

The geometry statements should reproduce the partition layout of the Linux command "fdisk -l" except the partition references are to Grub's convention.

Let me say this, as I have told everybody, that there is no installed PC operating system in existence that cannot be booted by Grub manually in a Grub prompt. The manual instructions are listed in /etc/grub.conf. All you need to do is to type the lines exactly as they appear in the /etc/grub.conf and then add the command "boot" at the end as the green light to Grub to fire up that system. There is nothing to it.
 
Old 05-21-2008, 05:16 PM   #27
Tom "Techno" Earl
Member
 
Registered: Sep 2006
Posts: 37

Original Poster
Rep: Reputation: 16
Hey all!

Success!! I have tried the geometry statements you suggested, that shed some light on the subject. It seems I was mistaken. Linux has been on hd0 since it was installed, and windows started on hd2, then for some reason changed to hd1. I have put the updated grub.conf entry below:

Code:
title Windoze
      map (hd1) (hd0)
      map (hd0) (hd1)
      rootnoverify (hd1,0)
      chainloader +1
      makeactive
      boot
This seems to work perfectly, hope that can be of some help to somebody as well as me!

Thanks for all the help!!

Tom
 
Old 05-21-2008, 07:57 PM   #28
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Glad to see you got it sorted.

If there is something difficult in Linux it cannot be the booting!
 
  


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 question changing boot order making windows boot first nfsutim Linux - Newbie 29 10-27-2012 01:53 PM
Getting 64-bit GRUB to boot Windows XP on a second HD? Tom "Techno" Earl Linux - Newbie 1 09-21-2006 01:42 PM
dual boot - Grub won't boot Windows on /windows/D partition biosol SUSE / openSUSE 9 04-09-2006 09:14 PM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 06:26 AM
Need help with 64bit Fedora/ 32 bit Windows Dual Boot Sliceman Fedora - Installation 0 05-20-2004 05:18 PM

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

All times are GMT -5. The time now is 04:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration