Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.