4

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! :)

Eliah Kagan
  • 116,445
  • 54
  • 318
  • 493
Taburetkin
  • 41
  • 1
  • 1
  • 2
  • 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](https://help.ubuntu.com/community/Grub2#Boot_Display_Behavior). – arand Jan 05 '13 at 13:17
  • The procedure is well described in this tutorial: https://help.ubuntu.com/community/BootPartition – LovinBuntu Sep 17 '12 at 07:13

2 Answers2

1

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).

arand
  • 790
  • 5
  • 13
-1

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!

Addison Montgomery
  • 1,105
  • 8
  • 21
  • 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