LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   (Advanced) Booting Ubuntu installed on HDD from encrypted USB stick or similar (https://www.linuxquestions.org/questions/ubuntu-63/advanced-booting-ubuntu-installed-on-hdd-from-encrypted-usb-stick-or-similar-871122/)

i00 03-26-2011 08:21 AM

(Advanced) Booting Ubuntu installed on HDD from encrypted USB stick or similar
 
Hi there,

For my first post I have a brain teaser. I'm wanting to boot my desktop computer from an USB stick. With either a grub password, or a redundant encryption feature.

Does any of you have experience with this?

All I can find is completely installing linux on USB sticks.

The USB stick contains an EXT3 filesystem and all that I want is GRUB to look for the kernel etc. in /dev/sda1/boot/ which is my SSD. So I guess it will have to mount the drive first. Has any of you found guides to this or similar sort of setups? Because the internet is ruled by noobs, and they all want the same thing.

I remember from my previous education, you can copy the bootsector with the dd command and then copy the kernel etc, and run update-grub, yet the steps are not clear to me..

Any help would be much abliged.

i00

theNbomr 03-26-2011 02:11 PM

Your grub just needs to know how to read the media, and you can specify any installed disk as the source of the boot files. That grub is loaded from a USB stick is really irrelevant. The kernel and initrd are specified as usual, and the location from which they are loaded is the root media:
Code:

# hd0 and partition number can be any valid media
root            (hd0,0)

There may be some chicanery required to ascertain what media is assigned the the various hd numbers, but that is all just system-specific configuration.

--- rod.

i00 03-27-2011 09:18 AM

That's what I thought
 
Thank you kind sir.


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