Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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


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.