How to create a separate /boot partition after installation when dual booting?
You can not create more that 4 primary partitions in MBR.
I suggest temporarily removing /sda3 swap partition.
Move left side of /sda4 right.
Remove /sda3.
Create an extended partition in unallocated space.
Create two partitions inside the extended.
Format one as swap, the other as ext2 for /boot.
Update /etc/fstab with new UUIDs and mount points for swap and /boot.
You will have to update /etc/fstab in both Arch and Ubuntu to mount the new partition as /boot
and also copy there contents of both boot directories.
You will also need to re-install grub after that.
These operations can be done while booted from Ubuntu LiveUSB.
But it will be much easier to have two separate /boot
partitions for each OS.
And also ext3
is not a good choice for /boot
. I would recommend ext2
.
ext3
is similar to ext4
but obsolete. ext2
does not have journal, it works faster. Journal is not that important for /boot
.
So there is not reason to use ext3
. You can choose between default ext4
or ext2
.
daltonfury42
Updated on September 18, 2022Comments
-
daltonfury42 over 1 year
I dual boot Arch Linux and Ubuntu. I have the following partition setup:
Here
sda1
is where Ubuntu is installed, Arch onsda2
.New Partition #2
is the proposed /boot.sda4
is a common home for both the OS.The grub was installed by Arch. I would like to create a separate /boot partition for encrypting the root filesystems of both the OSes.
I am following this guide on Community Wiki, and have a few questions.
The guide is written for 10.04 and does not mention anything about dual booting. Will it still work? I already have 500 MB of unallocated free space which I can use for /boot. Then why should I use the live disk? Can't I do everything from my current Ubtunu installation?
This is what I understand. /boot partition can't be shared between operating systems. Since I require /boot for my Arch, I should copy the contents of /boot from Arch to the newly created /boot from Ubuntu. Now I can reboot to Arch. Then I should change the fstab of arch to mount the new /boot. Then I install GRUB on the /boot partition from Arch. Should I make any changes to Ubuntu's fstab? Will this break Ubuntu?
If what intend to do is wrong, how do I do this?
-
daltonfury42 almost 9 years@Pilot6 Done! xx
-
Pilot6 almost 9 yearsIs it an MBR partition table or GPT?
-
Pilot6 almost 9 yearsAnd where is 500 MB unallocated?
-
daltonfury42 almost 9 years@Pilot6, You caught my lie. I will resize swap to get the 500 mb. I will change the question. It's MBR.
-
Ron almost 9 yearsBoot partition can be shared between distros, but managing it is painful!
-
-
daltonfury42 almost 9 yearsI did a repartitioning before seeing your answer. I've updated the question. Thanks for the answer, but it does not answer my question.
-
Pilot6 almost 9 years@daltonfury42 Got you. I will try to give some guide.
-
daltonfury42 almost 9 yearsThanks, one more clarification. Why not seperate /boot for Arch with the grub and a non-seperate /boot for ubuntu? Maybe if I do it like this, I won't have to touch Ubuntu installation. The grub will detect Ubuntu and load it. Is that OK?
-
Pilot6 almost 9 yearsYou can do this way too. Grub should detect all OSes.
-
daltonfury42 almost 9 yearsWait. I am doing all this to encrypt Ubuntu. If so, the /boot of Ubuntu will be encrypted. Won't it make Ubuntu unbootable?
-
Pilot6 almost 9 yearsWhat is the point of encrypting /boot?
-
daltonfury42 almost 9 yearsLet us continue this discussion in chat.
-
daltonfury42 over 8 yearsWhy ext3 is not a good choice and ext2 is recommended?