Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In the process of setting up an encrypted Windows partition along with a dual booting Ubuntu, I have had to install the GRUB bootloader onto a partition /dev/sda1 instead of the MBR. In this setup /dev/sda1 is a Dell recovery partition.

It actually works fine believe it or not. I have written basic pointers.

To a point. On the system I was testing this on, I ended up with GRUB installed on two partitions, sda1 and sda2. Is there a way to remove the GRUB blockfiles from one of these?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You mean removing the grub boot sector so that it won't boot from it? It is just the first sector in your drive or partition.

Backup, be very cautious!

$ dd if=/dev/sda1 bs=512 count=1 of=sda1.bootsector.backup
$ dd if=/dev/zero of=/dev/sda1 bs=512 count=1
share|improve this answer
    
Aha I think that's what I'm looking for. Am I right in thinking this should have no effect on the partition itself, as long as it is not windows (ie. Dell system recovery partition)? –  Rqomey May 9 '12 at 16:02
    
yes, filesystems should not be using the boot block in any event. –  johnshen64 May 9 '12 at 16:14
    
+1 for recommending to back it up before doing anything with it. I've seen people in IRC say "oops" then fight with it for a while. Definitely easier to say dd if=/home/user/backups/sda1.boot.bkup of=/dev/sda1 bs=512 count=1 and have it fixed. –  Rob May 9 '12 at 16:35

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.