Re: How to change root "/" partition?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/1/24 9:08 PM, Robin Laing wrote:
Hello,

On upgrade to Fedora 41, I got stuck due to lack of space on "/" partition.  I had an unused partition that was more than double the size of the present root partition.

I rsyncd the data across to the new partition
    sudo rsync -avPAHXx --numeric-ids --exclude="lost+found" - exclude="home" --exclude="boot" / /mnt/TEMP/

The above line was recommended on a web page.

That might work, but you'll have to force a relabel at boot and probably need selinux not enforcing. You'll need to change the UUID in the fstab and the kernel command line.

I made sure the partition was in the crypttab file.

It's encrypted?  That's an extra layer of trouble for changes.

I did other stuff and finally changed /etc/default/grub to point to the new partition and remade the grub.cfg file.

That's not enough.  You have to change the bootloader entries as well.

There must be an "official" procedure to do this.

There is no official procedure.

The easy way is to boot a live image and use gparted to either copy the root partition to the other partition (and wipe the original one) or if the partitions are adjacent, you can remove the larger partition and resize the root partition to take the space.

--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux