View previous topic :: View next topic |
Author |
Message |
Wooff Tux's lil' helper
Joined: 19 Jun 2004 Posts: 101 Location: LB.CZ.EU
|
Posted: Mon Aug 29, 2005 11:53 am Post subject: Boot from CD in grub - BootableCD line in GRUB menu?? |
|
|
Hi, is it possible to have "Boot from CD" line in grub menu? To boot from gentoo liveCD or knoppix. And is it possible to boot from any other bootCD like WinInstalCD?
Can you write me full grub line? Thanx a lot ((-:
W |
|
Back to top |
|
|
feivelda Guru
Joined: 21 Feb 2005 Posts: 480 Location: Frankfurt, Germany
|
Posted: Mon Aug 29, 2005 12:07 pm Post subject: |
|
|
I don't know it for sure, but try
rootnoverify (hd2,0)
makeactive
chainloader +1
At rootnoverify you should use the link in /dev for your cdrom.
At my machine, this would be hdc, so hd2,0 |
|
Back to top |
|
|
Wooff Tux's lil' helper
Joined: 19 Jun 2004 Posts: 101 Location: LB.CZ.EU
|
Posted: Mon Aug 29, 2005 12:34 pm Post subject: |
|
|
hi, thanx for reply.
how can I find this link to cdrom?
Do I need to create it?
I read something about links inside grub (grub# map (hd3) (hd1)). It is this.
W |
|
Back to top |
|
|
feivelda Guru
Joined: 21 Feb 2005 Posts: 480 Location: Frankfurt, Germany
|
Posted: Mon Aug 29, 2005 2:09 pm Post subject: |
|
|
What I mean, is in /dev
You mount your cdrom by mount /dev/cdrom or /dev/dvd
But the same should done by mount /dev/hdc
Try this, if this works, edit your grub.conf and tell me if you can boot from cd |
|
Back to top |
|
|
opqdan Guru
Joined: 13 Dec 2004 Posts: 429 Location: Redmond, WA, USA
|
Posted: Mon Aug 29, 2005 4:58 pm Post subject: |
|
|
Your PC should boot from a bootable CD automaticlly if it is in the drive, completely bypassing Grub. What use do you have for needing it as an entry in the grub menu? If you put the CD in and reboot the computer, it will boot into the disk before it even gets to grub. This goes for any bootable CD whether it be a Linux distro or Windows. Just make sure that your bios is set to have the CDROM checked before the hard disk. |
|
Back to top |
|
|
feivelda Guru
Joined: 21 Feb 2005 Posts: 480 Location: Frankfurt, Germany
|
Posted: Tue Aug 30, 2005 6:03 am Post subject: |
|
|
At this point you don't have the choice to boot your system on hard disk or the system on cd.
And with this view it isn't so useless, because you don't need to change your boot sequence every time. |
|
Back to top |
|
|
Wooff Tux's lil' helper
Joined: 19 Jun 2004 Posts: 101 Location: LB.CZ.EU
|
Posted: Wed Aug 31, 2005 7:00 am Post subject: |
|
|
TO opqdan: Its easy. I just dont want to change boot sequence every time and even more I can easyly set a password to BIOS and password to GRUB at BOOTCD line. Its mean nobody will be able to boot to my machine.
TO feivelda: I dont know how and what shout I write to grub.conf
title boot CD
root (hd2,0)
????? |
|
Back to top |
|
|
feivelda Guru
Joined: 21 Feb 2005 Posts: 480 Location: Frankfurt, Germany
|
Posted: Wed Aug 31, 2005 8:38 am Post subject: |
|
|
Code: | title boot CD
rootnoverify (hd2,0)
makeactive
chainloader +1 |
I think so. But try first:
umount /mnt/cdrom ( if your cdrom or dvd is mounted, if the paths are differet for you, paste them )
mount /mnt/hdc /mnt/cdrom
if this works, then the code above shall be right |
|
Back to top |
|
|
Wooff Tux's lil' helper
Joined: 19 Jun 2004 Posts: 101 Location: LB.CZ.EU
|
Posted: Thu Sep 01, 2005 8:12 am Post subject: |
|
|
hmm it does not work
there is map device file
/boot/grub/device.map
where you can map physical devices to grub name
I have there: map (hd2) (/dev/cdroms/cdrom0)
and when try to boot it cant find that device ))-:
W |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Fri Sep 02, 2005 2:51 am Post subject: |
|
|
Wooff wrote: | there is map device file
/boot/grub/device.map
where you can map physical devices to grub name |
This file is not used at boot time, it is only used during GRUB installation.
What you are trying to do will not work (at least not with GRUB).
opqdan is correct, the BIOS needs to boot from the CD first, before the bootloader is able to access the CD. |
|
Back to top |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Fri Sep 02, 2005 4:32 am Post subject: |
|
|
Wellll... maybe, maybe not.
Here's one solution I saw a while back - others have created (fd) images on CD and made them bootable.
Some-one will always find a way to hack anything ...
Edit: Added the link. |
|
Back to top |
|
|
psy_ill Tux's lil' helper
Joined: 06 Jul 2003 Posts: 106
|
Posted: Fri Sep 02, 2005 11:57 am Post subject: |
|
|
There is a point in booting the cd from GRUB instead of letting the BIOS do the work: I want to install MS-DOS (needed for my old music software for the OPL3-chip, there is no other program which does the same thing) to one hard drive and MS-WINDOWS (needed for my digital camera to work, Linux doesn't support it yet) to another hard drive.
Now, there is a problem: both OS:s claims the MBR for themselves and does not accept being installed in any hard drive other than the master on the first controller. In order to do this, I must first install one of the OS:s, move around my hard drives and then install the other.
If I could boot a cd from GRUB, I would be able to do the hard drive swapping in software (in GRUB) instead of irl and the procedure (which may be needed to redo) would cause me less of a headache. |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Fri Sep 02, 2005 4:12 pm Post subject: |
|
|
syg00 wrote: | Here's one solution I saw a while back - others have created (fd) images on CD and made them bootable. |
Newer versions of GRUB also support booting the CD in no-emulation mode (no floppy image required).
The point is, GRUB only supports CD booting if the CD is selected in the BIOS as your boot device, and GRUB is installed on the CD (not the harddrive). |
|
Back to top |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Fri Sep 02, 2005 11:29 pm Post subject: |
|
|
Look at the link I posted - it's a solution that allows selection of a CD for booting from a HD based grub boot. |
|
Back to top |
|
|
|