Re: F41 - I forgot to make a swap partition

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

 



On 2/26/25 13:17, Robert Moskowitz wrote:
Arg.  the Install did not default a swap partition so I forgot to work it in when I divided the drive as I wanted...

<snip/>

Since /dev/sdb4, /home is the last 800Gb with 500Gb unused, is there any way to safely shrink this partition 16Gb and then allocate that as swap?


It's been years since I did this but if you're game...

umount /dev/sda4

resize2fs (current size -8G) /dev/sda4

fdisk /dev/sda

>> delete sda4
>> new partition sda4 (previous size -8G)
>> w(rite)
>> q(uit)

** this works because deleting a partition doesn't touch the data, only the partition table. When you create the new, smaller smaller partition it will use the same blocks that contain the original resized filesystem.

Now create /dev/sda5 8G type swap.

Caveat: back up /home! use at your own risk! YMMV! This email is not from me!

Mike Wright


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