Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

50%
+0 −0
Q&A Moving the filesystem root to a different partition and booting from it

Disclaimer: I'm not a Mint (or Ubuntu) user. Using your distro's live image: Do your partition stuff Mount the new root to the live system at /mnt[1] Mount your other partitions to the new ro...

posted 1mo ago by Iizuki‭

Answer
#1: Initial revision by user avatar Iizuki‭ · 2024-04-16T12:14:23Z (about 1 month ago)
*Disclaimer: I'm not a Mint (or Ubuntu) user.*

# Using _your distro's_ live image:

1. Do your partition stuff
2. Mount the new root to the live system at `/mnt`[^mount-location]
3. Mount your other partitions to the new root as they should be
4. Chroot into `/mnt`
5. Check your `/etc/fstab`, there should be an entry about mounting your root. Update it to mount the new root partition.[^fstab]
6. Update your initramfs image(s), perhaps with [`update-initramfs`](https://manpages.ubuntu.com/manpages/jammy/en/man8/update-initramfs.7.html)?
5. Run your distro's boot configuration scripts. Perhaps it's [`update-grub`](https://manpages.ubuntu.com/manpages/noble/en/man8/update-grub.8.html) for you? There are some moving parts in this step. MBR/EFI? Which bootloader?
9. `exit` the chroot
10. Unmount everything with `umount --all`
11. Reboot and see if it works
12. If it didn't, study the linux boot process in more detail. There are good articles on [Wikipedia](https://en.wikipedia.org/wiki/Booting_process_of_Linux) and [ArchWiki](https://wiki.archlinux.org/title/Arch_boot_process).


# Swap

Yeah it's probably best to decommission the current swap before everything. Your system will work fine without it too.

Personally I'd recommend just dropping the swap partition, and making a new swapfile when the other stuff is done. Swapfiles are just more flexible.



[^mount-location]: Doesn't actually matter where.
[^fstab]: Your distro could have some helpers for generating this file as well, based on the current mounts.