If your system currently uses a boot partition, but you want your /boot
path to remain on your root partition instead of being separated out to a discrete partition, follow this guide.
This guide assumes you are using the GRUB bootloader. Do not follow this guide if you installed RebornOS with systemd-boot as the bootloader, as it only supports FAT16/32 file systems and therefore needs an FAT16/32 boot partition in order to access the
/boot
directory.
Run lsblk
and note the device name (first column) of the partition with mountpoint /boot
.
Unmount the boot partition with sudo umount /boot
Mount it to another place with sudo mount /dev/<device name of boot partition> /mnt
Move all the content of the boot partition to the now empty /boot directory with sudo mv -v /mnt/* /boot
.
Remove the line in /etc/fstab
regarding the /boot
partition. You can use nano to edit the file: sudo nano /etc/fstab
If you are on an UEFI installation run sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi
.
If you are on a legacy BIOS installation, run sudo grub-install --target=i386-pc /dev/<device name of system disk>
.
After that run sudo grub-mkconfig -o /boot/grub/grub.cfg
You can now unmount the former boot partition with sudo umount /mnt
and remove it in your partition manager of choice.