Re: How to change root "/" partition?

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

 



On 2024-12-03 00.18, Samuel Sieb wrote:
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.


That I did. I may have made a mistake when I did it. I was using a live image but may have not done it properly. In my other response, I had disabled selinux instead of permissive. My mistake and as I said, a lesson learned. Don't do it again.


I made sure the partition was in the crypttab file.

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


I have used encryption for so long on all systems. Just got in the habit. It did add a bit of work but not that much.


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.


Okay, that is something I didn't know. Something that was not in any documents I looked at.

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.



That is what I tried. Resizing an encrypted partition is filled with warnings. I may build a new drive for the system and then test increasing the partition. This computer is my main workhorse.

I finally have a working system and learned much. Over the break, when I get caught up, may do some experimenting on how to do this and maybe write it up.

This may be a good thing to learn VMs with.

Robin

--
_______________________________________________
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