LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-13-2002, 05:08 PM   #1
ngomong
Member
 
Registered: Apr 2002
Posts: 54

Rep: Reputation: 15
Grub - how to point to my CD-ROM drive?


I'm trying to go dual-boot... adding a Win disk to my Linux system.

I'm following the directions laid out in the Grub + Win9x HOW-TO.

My question is, how do I tell grub to point to my cdrom-drive, instead of a floppy, for the boot disk? This is the part of the grub.conf file I need to edit:
Code:
title DOS Boot Disk
	map (hd0,0) (hd0,2)
	map (hd0,2) (hd0,0)
	chainloader (fd0)+1
Furthermore, my CD-ROM drive is on the SCSI chain.

Last edited by ngomong; 06-13-2002 at 09:31 PM.
 
Old 06-13-2002, 07:08 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
if it's on the primary slave it's hd0, 1
 
Old 06-13-2002, 08:50 PM   #3
ngomong
Member
 
Registered: Apr 2002
Posts: 54

Original Poster
Rep: Reputation: 15
Actually, if it were primary slave, wouldn't it be (hd1,0)?

Also, my drive is on the SCSI chain... would it perhaps be scd0?
 
Old 06-13-2002, 09:03 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
right, I had it backwards. the first number is the drive number

the second is the partition number
 
Old 06-13-2002, 09:19 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
it appears that grub does not distinguish between scsi and ide, so the first drive is hd0, 0 if it's hda1 or sda1

maybe you can use

kernel root=/dev/sda1

or whatever it is

i guess it depends on the bios setup

Last edited by DavidPhillips; 06-13-2002 at 09:22 PM.
 
Old 06-13-2002, 09:33 PM   #6
ngomong
Member
 
Registered: Apr 2002
Posts: 54

Original Poster
Rep: Reputation: 15
Yeah, but it's a CD-ROM drive...

I tried sd0, sr0, scd0, etc...

I'll keep trying different things.
 
Old 06-13-2002, 10:10 PM   #7
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Unless things have changed, grub doesn't recognize a cdrom drive as bootable. So, you can't assign drive number.

Quote:
The device.map file.


This file is used by grub to map GRUB based drive names to the Linux counterparts. An example of this file would be:


(fd0) /dev/fd0

(hd0) /dev/hda

(hd1) /dev/hdb

(hd2) /dev/hdc

(hd3) /dev/sda

(hd4) /dev/sdb


In this example, the system has the CD-ROM located at /dev/hdd (IDE secondary slave). You will notice that it is not listed in the device.map file. CD-ROMS are not listed as GRUB does not consider them to be a boot capable hard drive. The device.map file will only list the drives that were installed when the OS was installed. If, for example, you changed the order of the drives (swapped primary master and slave drives for example) or added another hard drive to the system, this file may need to be edited to reflect those changes.
I got that from here.

When you designate a drive it's hd0 or hd1. hd0,0 refers to the first partition on the hd0 drive. Also, when grub assigns drive numbers it will skip over nonbootable drives and empty connections on the ide channels. Example. If you have a hard drive on the primary master and the secondary slave and a cdrom drive on primary slave and nothing on secondary master, the primary master will be hd0 and the secondary slave will be hd1. The cdrom drive and the empty connection are assigned no number.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create an alias (apache) to point to a cd-rom/dvd verlossen Linux - Networking 1 11-20-2005 03:50 PM
Move mount point to another physical drive? michaelsanford Linux - General 2 05-06-2005 01:42 PM
Hard Drive Mount Point Question The Oate Mandriva 6 08-03-2004 08:25 PM
cd-rom drive working in knoppix Hard drive installation dj_dubbbz Linux - Newbie 5 03-02-2004 10:58 AM
mount point on new drive mnauta Linux - General 5 01-09-2004 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:59 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