The ordering is going to prevent you from shrinking.

/boot is last and you likely cannot get enough space out of that one.
I am not sure what would happen if you made p2 smaller or if it would
even let you create a p7 that is after p2 but before p3.

And with all shrinks you must shrink the fs first and then make the
partition smaller.  if you reverse the order it won't work and you
will have to revert the partition change to mount the fs and/or find
your data after reboot. it may appear to work immediately (still has
access) but fail hard on reboot.

And you cannot resize smaller some fses (xfs for sure, btrfs seems to
have limits and needs to be carefully done--don't ask me how I run
away from anything btrfs).

On Wed, Jul 26, 2023 at 12:22 PM KarlderLetzte
<karlderlet...@holnishaus.de> wrote:
>
> hello everybody,
>
> i need some space on disk for a second installation.
> therefore i want to safely shrink my fedora installation.
>
> here is the disk layout:
> Label: 'fedora_localhost-live'  uuid: ceb296ac-852b-420c-af45-
> 3cb3d5cb1f9d
>         Total devices 1 FS bytes used 156.97GiB
>         devid    1 size 269.47GiB used 200.02GiB path /dev/nvme0n1p6
>
> nvme0n1
>
> ├─nvme0n1p1
> │    vfat   FAT32       A544-D3FB
> ├─nvme0n1p2
> │    ext4   1.0         e42d229f-bb34-460b-80cc-4b50fcdf1754
> ├─nvme0n1p3
> │    swap   1           3021cbd8-230e-4c61-8f2a-6faeb8fd6b5f
> [SWAP]
> ├─nvme0n1p4
> │    vfat   FAT32       E9A3-DD63                             581,4M
> 3% /boot/efi
> ├─nvme0n1p5
> │    ext4   1.0         92299ff3-bb02-42a8-a734-16b7c0dc16a6  558,7M
> 36% /boot
> └─nvme0n1p6
>      btrfs        fedora_localhost-live
>                         ceb296ac-852b-420c-af45-3cb3d5cb1f9d
> /var/lib/docker/btrfs
>
> /home
>
> /
>
> i tried it with gparted, but if i want to shrink, a warning appears,
> that it is possible,to not boot anymore.
>
> my question:
> is there a safe way to shrink?
>
> regards
> karl
> _______________________________________________
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> 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@lists.fedoraproject.org
> Do not reply to spam, report it: 
> https://pagure.io/fedora-infrastructure/new_issue
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to