LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-19-2007, 09:12 PM   #1
bobotoes
Member
 
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?

--EDIT--
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:
http://www.gnu.org/software/grub/man...le-CD-ROM.html
http://pusling.com/blog/?p=25

Last edited by bobotoes; 08-21-2007 at 02:19 PM.
 
Old 09-01-2007, 04:48 PM   #2
win32sux
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-02-2007, 12:46 AM   #3
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
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.

@bobotoes,

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, 03:45 PM   #4
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
Quote:
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?
 
  


Reply


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 01:09 PM
How to restore partition table without a CDROM? welson_sun Fedora - Installation 2 10-11-2005 04:30 PM
How to give cdrom access for user & can i mount FAT32 partition atomatically on boot? Ninja_212 *BSD 3 03-09-2005 04:01 PM
Help with swap partition and CDROM drive beddy Linux - Hardware 2 05-20-2004 05:03 AM
9.1 install, boot from cdrom, select source as cdrom, Can't find disk jake555 Slackware 1 10-30-2003 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:57 PM.

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