Re: merging two ext4 partitions

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

 



On 12/6/20 11:06 AM, Amadeus WM via users wrote:
On Sun, 06 Dec 2020 13:18:15 -0400, Jorge Fábregas wrote:

On 12/6/20 1:07 PM, Amadeus WM via users wrote:
Or, maybe gparted? I can delete sda1, then expand sda2 to the beginning
of the disk. Would that work?

Hi,

No, you can't. You can only expand forward; not backward (to the
beginning as you say).  For example, you could delete sda2 and expand
sda1 up until the end of the device (to have one big partition) and then
expand the filesystem...but not the other way around.


Actually I tried this on an usb stick and it worked, except that it
obliterated my sda1. In my case this would not be a big deal, because the
partition is small and I can put the stuff in it elsewhere before the
surgery.

You *can* do this, but you have to understand what is happening. First the entire partition is moved (copied) to the new position. So all 881GB of data has to be read and written. And if the process gets interrupted for any reason, your filesystem is toast. After the move is done, then the filesystem can be expanded.

Your best option is to make a backup of all the data on both partitions, delete the partitions, make the new one, then copy all the data back.
_______________________________________________
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



[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