Re: Enlarging the swap partition

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

 



When you have a notebook install, you are locked into the drive you have and whatever you did on the partitioning, you are stuck with, for the most part.  No adding a new drive with additional partitions.

I originally deleted the default LVM setup and then created the ext4 partitions you see in the original post.  The Fedora installer created those partitions.  It was my oversight in not making swap larger in the 1st place; I was controling the install knobs.

Once you make /home to use up all the remaining space on your drive, you are stuck.  Other than getting a bigger SSD and using dd to move /, /boot and /home to the new drive where you made a larger swap.

Or follow instructions to resize /home smaller.

Or create a swap file.  I have plenty of space in the / partition for making a swap file.

On 7/27/19 10:24 AM, sixpack13 wrote:
If I were you I would get rid off that partion schema and would change it to GUID partioning !
I don't know if it's able to do without new installation !

In my view/with my understanding:
if you ever get in the position/the need to do an new install with new partioning your /home on an logical partition is in danger. - maybe I'm wrong ?! -

If you move to GUID partioning you circumvent the barrier of 4 primary partions OR 3 prim. plus x logical.
You simply get more then 4 primary partitions. - don't know the limit -
And you are able - during a later  new install - to leave your /home in an primary partition untouched and just mount it  during an new install. For the other partitions (/, swap, ...) you are free to format /re-partitioning them without putting /home in danger. - no need to tell that a user data backup is important anyway -

Hints:
- you need a partition named  "Bios Boot" with 1-2 MB size as a first (?) partition.
- you need (I'm unsure if this still relevant !!!) "inst.gpt" as boot parameter for your install media
https://docs.fedoraproject.org/en-US/Fedora/25/html/Installation_Guide/sect-boot-options-advanced.html

- leave some space (10-15 %) on your ssd un-partitioned ( again, don't know if this still valid)

my config:
sudo fdisk -l /dev/nvme0n1 :

Disk /dev/nvme0n1: 465,8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 970 EVO Plus 500GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: F881C380-A695-4C12-BD2E-73B0D205EFAC

Device             Start       End   Sectors  Size Type
/dev/nvme0n1p1      2048      6143      4096    2M BIOS boot
/dev/nvme0n1p2      6144  97662975  97656832 46,6G Linux filesystem
/dev/nvme0n1p3  97662976 781258751 683595776  326G Linux filesystem
/dev/nvme0n1p4 781258752 820322303  39063552 18,6G Linux filesystem

swap is on another disk !

mount|grep ext4 :

/dev/nvme0n1p2 on /home type ext4 (rw,relatime,seclabel)
/dev/nvme0n1p3 on /home/ron/DATA type ext4 (rw,relatime,seclabel)
/dev/nvme0n1p4 on / type ext4 (rw,relatime,seclabel)

.../DATA
- an extra partition carries movies/mp3/iso's, etc. mostly big data I'm lazy to move around during new installs.
- extra partition cause it allows to format /home too during new installs, if needed

/home and .../DATA are backup-ed weekly !

a drawback with .../DATA if I format /home:
/home/<user> is created during first gnome login, e.g. I can't mark it to mount it during install => a need to edit /etc/fstab AFTER first login/user creation, but I do it anyway to mount /var/tmp as tmpfs to !

cat /etc/fstab :
UUID=...  /                       ext4    defaults        1 1
UUID=...  /home             ext4    defaults        1 2
UUID=...  swap               swap    defaults,discard=pages        0 0
#
UUID=.... / /home/ron/DATA                   ext4    defaults        1 2
#
tmpfs   /var/tmp   tmpfs    defaults,nosuid,nodev,noexec,mode=1777  0 0
_______________________________________________
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
_______________________________________________
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