Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/boot partition on cdrom
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Mon Aug 20, 2007 2:47 am    Post subject: /boot partition on cdrom Reply with quote

How can I copy my boot partition to a CD-RW so I can boot from the CD-RW?
_________________
gentoo good to be true
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Mon Aug 20, 2007 2:44 pm    Post subject: Reply with quote

Probably [1] might help you.

[1] http://cutecomputer.wordpress.com/2006/10/10/boot-cdrom-through-grub/
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Mon Aug 20, 2007 3:05 pm    Post subject: Reply with quote

That's not exactly what I'm looking for, thanks though. I should have been more clear. I want all of the /boot partition, including grub, to be on a cdrom, nothing more nothing less.
_________________
gentoo good to be true
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Mon Aug 20, 2007 6:34 pm    Post subject: Reply with quote

Something like [1]?

[1] http://www.gnu.org/software/grub/manual/html_node/Making-a-GRUB-bootable-CD-ROM.html

HTH,
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Mon Aug 20, 2007 8:06 pm    Post subject: Reply with quote

That's more like it. I was able to get grub to boot from the cdrom but then this error:
Code:
root (hd0,0)
  Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.21-2-amd64 root=/dev/mapper/vg--whole-lv--root ro
    [Linux-bzimage, setup = 0x1e00, size=0x17d5b7]
initrd /initrd.img-2.6.21-2-amd64
    [Linux-initrd @ 0x379b5000, 0x63aeec bytes]
savedefault

Error 29: Disk write error

Press any key to continue...

I'm unsure what is being written at this point. I know the CD-RW is not writeable at this point but I didn't think that anything is written to the /boot partition during boot, only read from it.

It looks like this page page may have the answer... I'm going to give it a try.
_________________
gentoo good to be true
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Mon Aug 20, 2007 8:17 pm    Post subject: Reply with quote

Can you please post your grub.conf or menu.lst you've put on the bootable cdrom.
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Mon Aug 20, 2007 8:32 pm    Post subject: Reply with quote

You might want to look at lilo and mkrescue. I have in the past installed lilo only for the rescue cd it creates.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Mon Aug 20, 2007 8:46 pm    Post subject: Reply with quote

It's working. Thank you for your help massimo.

drescherjm, at this time I am going to stick with grub unless lilo / mkrescue may help with my next step...

All other partitions are located on an encrypted partition that uses lvm2. At this time, my LUKS passphrase must be entered from the keyboard. How can I have LUKS read the passphrase from my /boot partition?
_________________
gentoo good to be true
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Mon Aug 20, 2007 8:56 pm    Post subject: Reply with quote

Quote:
drescherjm, at this time I am going to stick with grub unless lilo / mkrescue may help with my next step


In my case I still have grub installed on the machine but I just emerged lilo, Created a /etc/lilo.conf and then ran mkrescue. Other than that I still boot the local machine with grub. But as for weather it would help with your passphrase I doubt it would be any easier than the steps you have made to get a bootable grub cd. Its just a easy way to get a bootable cd with your kernel and initramfs on it.

BTW, I may try this booting with grub method as well just cause I like the fancy grub menus. :)
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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