Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 08-19-2007, 08:12 PM   #1
Registered: Sep 2004
Posts: 37

Rep: Reputation: 15
/boot partition on cdrom

I am running debian testing version on a laptop with two physical partitions. The first for /boot and the second is an encrypted lvm2 with /, /usr, /var, /tmp, swap, /home. LUKS is used and a passphrase must be entered to access the partitions. I would like to make a copy of my /boot partition and put it on a CD-RW so I can boot the system from the CD-RW instead of the /boot on the internal hard drive.

Could someone tell me how to copy a /boot partition from a hard drive to a CD-RW so that it is bootable?

I was able get my boot partition onto a CD-RW so I can now boot from it. These are basically the steps I took:

mkdir -p iso/boot

cp -r /boot/* iso/boot/

cp /usr/lib64/grub/x86_64-pc/stage2_eltorito iso/boot/grub/

# comment out "savedefault" from menu.lst

genisoimage -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o grub.iso iso

In getting to this point, I found these links most helpful:

Last edited by bobotoes; 08-21-2007 at 01:19 PM.
Old 09-01-2007, 03:48 PM   #2
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
I'm posting a reply so that anyone subscribed can see that you managed to achieve your objective. Thanks for taking the time to explain how you did it. BTW, would I be correct in assuming that the reason you did this was because you didn't want any non-encrypted data on the drive? Just curious.
Old 09-01-2007, 11:46 PM   #3
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Originally Posted by win32sux View Post
I'm posting a reply so that anyone subscribed can see that you managed to achieve your objective.
Thanks for doing that. Perhaps the system should be set up where notifications are sent out when edits occur as well as when new posts are added to a thread.


Thanks for posting the solution. This is the first I've heard of genisoimage. Do you know if there any significant difference in capabilites from mkisofs?
Old 11-23-2008, 02:45 PM   #4
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
The first for /boot and the second is an encrypted lvm2 with /, /usr, /var, /tmp, swap, /home.
What are the GRUB options that you use to boot this and did you add modules to support the encrypted lvm?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB: How to boot WinXP (NTLDR, NTDETECT.COM & BOOT.INI) from boot partition (EXT2) ? Rayen16 Linux - Software 1 05-25-2006 12:09 PM
How to restore partition table without a CDROM? welson_sun Fedora - Installation 2 10-11-2005 03:30 PM
How to give cdrom access for user & can i mount FAT32 partition atomatically on boot? Ninja_212 *BSD 3 03-09-2005 03:01 PM
Help with swap partition and CDROM drive beddy Linux - Hardware 2 05-20-2004 04:03 AM
9.1 install, boot from cdrom, select source as cdrom, Can't find disk jake555 Slackware 1 10-30-2003 10:34 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration