The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 13,608β€…    Votes:  3β€…
Tags: boot   grub2   18.04  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/1088129
Title: Fully Move Grub to New Partition
ID: /2018/10/28/Fully-Move-Grub-to-New-Partition
Created: October 28, 2018    Edited:  June 12, 2020
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


256 MB for /boot and 200 GB for /

You have lots of space but /boot directory is β€œspace challenged”. I’d suggest moving /boot from sdb5 to / on sdb6.

Your current plan of moving /boot to new partition sdb7 which is only 512 MB seems limited. Sometimes my /boot can be many GB if I’m testing out multiple kernels.

How to move /boot to /

There is already an answer here:

Yes it is possible. Also its not easy. If you intent to move separated /boot partition and or / partition you should consider first of all changing the fstab entries.

If you are moving the files to new partition then don’t forget to use cp -p while copying to preserve permissions. adjust then your /etc/fstab to the new UUID’s of partitions that you will use. YOu can get the partition uuid by running blkid /dev/sdXn where X is name of the drive and n number of partition.

You can also use blkid to attach labels to your partitions and then mount via labels which is much easier read man blkid to learn more.

After you change the partitions and adjust /etc/fstab you should run the update-grub - available on Debian/Ubuntu script or grub-mkconfig -o /boot/grub/grub.cfg to generate a new config file and then reinstall grub into the first hdd that you bot from. grub-install --recheck /dev/sdb

Of course do not forget that when copiying mount a new / or /boot partition on /mnt and after copying all of the files mount them as / and /boot chroot and only then run update of the grub if you want things to be done correctly.

⇧ XPS13 will not suspend with kernel 4.19 Replugging network cable doesn't reconnect  β‡©