Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am testing dual-boot system and want to generate a boot failure when boot into one of the systems (both are Linux), basically to test grub-reboot function. My question is how to easily modify some files to cause boot failure (should be easily recoverable)? Thanks.

share|improve this question
up vote 0 down vote accepted

Edit /boot/grub/grub.cfg and comment out the initrd line from the entry you want to fail. Without the initrd the kernel will panic trying to locate the rootfs by uuid.

share|improve this answer
    
Thanks, will give it a try. – user276851 Jul 10 '14 at 0:48

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.