Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Boot from CD in grub - BootableCD line in GRUB menu??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Wooff
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 101
Location: LB.CZ.EU

PostPosted: Mon Aug 29, 2005 11:53 am    Post subject: Boot from CD in grub - BootableCD line in GRUB menu?? Reply with quote

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
View user's profile Send private message
feivelda
Guru
Guru


Joined: 21 Feb 2005
Posts: 480
Location: Frankfurt, Germany

PostPosted: Mon Aug 29, 2005 12:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Wooff
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 101
Location: LB.CZ.EU

PostPosted: Mon Aug 29, 2005 12:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
feivelda
Guru
Guru


Joined: 21 Feb 2005
Posts: 480
Location: Frankfurt, Germany

PostPosted: Mon Aug 29, 2005 2:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
opqdan
Guru
Guru


Joined: 13 Dec 2004
Posts: 429
Location: Redmond, WA, USA

PostPosted: Mon Aug 29, 2005 4:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
feivelda
Guru
Guru


Joined: 21 Feb 2005
Posts: 480
Location: Frankfurt, Germany

PostPosted: Tue Aug 30, 2005 6:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Wooff
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 101
Location: LB.CZ.EU

PostPosted: Wed Aug 31, 2005 7:00 am    Post subject: Reply with quote

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
View user's profile Send private message
feivelda
Guru
Guru


Joined: 21 Feb 2005
Posts: 480
Location: Frankfurt, Germany

PostPosted: Wed Aug 31, 2005 8:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Wooff
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 101
Location: LB.CZ.EU

PostPosted: Thu Sep 01, 2005 8:12 am    Post subject: Reply with quote

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
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri Sep 02, 2005 2:51 am    Post subject: Reply with quote

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
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Fri Sep 02, 2005 4:32 am    Post subject: Reply with quote

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 ...8O

Edit: Added the link.
Back to top
View user's profile Send private message
psy_ill
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2003
Posts: 106

PostPosted: Fri Sep 02, 2005 11:57 am    Post subject: Reply with quote

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
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri Sep 02, 2005 4:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Fri Sep 02, 2005 11:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum