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've installed Ubuntu 12.04 on a partition with BTRFS as its file system, but it appears that grub2 seems to have some issues with that file system. For some reason it takes it very long time to boot and it doesn't display OS-selection screen at all.

So I decided to move my /boot to a separate partition with ext2 file system. But I don't know what steps exactly should I take to do it. Please, help! :)

share|improve this question
1  
I don't think the fact that the OS-selection doesn't display has anything to do with btrfs, it's just a grub2 setting, see wiki. –  arand Jan 5 '13 at 13:17
add comment

3 Answers

The procedure is well described in this tutorial: https://help.ubuntu.com/community/BootPartition

share|improve this answer
add comment

Roughly speaking:

  1. Create a partiton and format to ext2
  2. Copy contents from old /boot folder to new partition root
  3. Edit fstab with a separate boot entry, and run grub-install for the new boot location (using the --boot-directory= option)
  4. Boot and pray

It might be more convenient to do this from a liveCD (can easier be fixed if something goes wrong then).

share|improve this answer
add comment

You could do it with GParted. Follow this steps:

  1. Install GParted at the software center or with sudo apt-get install gparted in the terminal.
  2. Unmont the /boot partition, in example: sudo unmont /dev/sda7 supposing that the /boot partition is on /dev/sda7. If you don't know where is it, you can look at GParted.
  3. Execute it and enter your root's password when it asks for it.
  4. Now, click on /dev/sda7 (of course, assuming that /boot is on /dev/sda7). Then, click on the Remove Partition button.
  5. After removing it, select the new unassigned space, and then click on Create new partition.
  6. Now, just create a new boot partition as you did in the installation process. When you end, click on the Apply all the changes button.
  7. Install grub on it: sudo grub-install /dev/sda7 (assuming that the new partition was /dev/sda7).

Restart, and it should work. I hope it so! And tell us if it worked!

share|improve this answer
1  
How about editing /etc/fstab accordingly? It will simply not be possible to update kernels if you don't have a /boot in your running system. Also, I think installing Grub to a partition like /dev/sda7 is not what you want if you need to boot from it directly. –  gertvdijk Sep 16 '12 at 11:28
add comment

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.