Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I copied a backup of my entire VPS (Debian on OpenVZ) on a USB drive, and want to boot from this USB to test something on my server (in fact its duplicate). However, there is no nothing in the boot directory (I've no idea how OpenVZ boots the OS). How can I make the USB bootable?

Do I need to install GRUB on the USB? If yes, how can I do this NOT to affect the GRUB on my HDD (my main computer). I do not want to make a dual boot, it is just temporary booting from USB.

share|improve this question

1 Answer 1

You will need to install a kernel and GRUB. OpenVZ uses kernel virtualization, so it doesn't have a bootloader in the traditional way.

To convert your VPS, you best start a live disk, chroot into your VPS and then install an appropriate kernel as well as grub. (don't forget to generate your boot folder after installing grub)

share|improve this answer
    
Thanks for the clarification, but I do not want to touch the VPS. Instead, I want to play with the backup. Can I install kernel on an external drive (USB)? –  All Sep 17 '12 at 18:36
    
Yes that's what I meant :) –  Lucas Kauffman Sep 17 '12 at 20:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.