Re: How to increase size of /boot partition

2024-05-04 Thread George N. White III
On Fri, May 3, 2024 at 2:52 PM richard emberson 
wrote:

> Just today I upgraded from 39 to 40 but there was an issue:
> dnf told me I needed some 800k more space in my /boot partition to proceed.
> I had two kernels in /boot so I dnf removed those associated with the older
> of the two kernels. I then successfully upgraded.
>
[...]

> I realize one way is to backup /home and then reinstall Fedora but

1) that seems like a lot of work and
> 2) it would mean that the machine in question would then have to
> use Wayland rather than Xorg.
>

Bots have taken over the internet, and contrary to "bot" wisdom, Fedora 40
still has Xorg.

Systems upgraded over many years often have packages that not present in
current F40.  Resulting issues can be difficult to understand as few users
will have those old packages.   Doing a fresh install every few years keeps
you closer to a configuration others have, so any issues you do encounter
will probably affect others, but "all problems are shallow given enough
eyes".

A fresh install also gives you the option of moving to xfs or btrfs.

-- 
George N. White III
--
___
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


Re: How to increase size of /boot partition

2024-05-03 Thread John Pilkington

On 03/05/2024 18:52, richard emberson wrote:

Just today I upgraded from 39 to 40 but there was an issue:
dnf told me I needed some 800k more space in my /boot partition to proceed.
I had two kernels in /boot so I dnf removed those associated with the older
of the two kernels. I then successfully upgraded.
I fear the next time I do a dnf update which includes a new kernel I will
be told, again, that there is not enough space in my /boot partition.

So, how can I increase the size of the /boot partition? Many partitions,
like /tmp, are bigger than they need to be.

Here is what how the /sda disk is organized.
$ lsblk
NAME  MAJ:MIN RM   SIZE RO TYPE  
MOUNTPOINTS

sda 8:0    0 223.6G  0 disk
├─sda1  8:1    0   250M  0 part  /boot
├─sda2  8:2    0 105.5G  0 part
│ └─luks-a2ebb2b0-527d-47f3-83ef-e5908805f31d
│ 253:3    0 105.5G  0 crypt /ssd
├─sda3  8:3    0  97.7G  0 part
│ └─luks-35719a97-5898-4420-9a56-1576ffdc6db3
│ 253:1    0  97.7G  0 crypt /
├─sda4  8:4    0 1K  0 part
├─sda5  8:5    0   9.8G  0 part
│ └─luks-5ee2ed8e-4bdf-43e1-adb0-34a70610a77f
│ 253:2    0   9.8G  0 crypt /tmp
└─sda6  8:6    0   9.8G  0 part
   └─luks-03c06df8-f9b9-4f0d-847e-79a7ed527888
   253:0    0   9.8G  0 crypt [SWAP]

$ df -h
Filesystem  Size  Used Avail Use% Mounted on
/dev/dm-1    96G   22G   70G  25% /
devtmpfs    4.0M 0  4.0M   0% /dev
tmpfs    16G 0   16G   0% /dev/shm
tmpfs   6.3G  1.8M  6.3G   1% /run
/dev/sda1   237M  179M   42M  82% /boot
/dev/dm-2   9.5G  260K  9.0G   1% /tmp
/dev/dm-3   104G  193M   99G   1% /ssd
/dev/dm-4   1.9T  1.2T  630G  66% /home
/dev/dm-5   1.7T  903G  736G  56% /data1
/dev/dm-6    20G   12G  6.9G  63% /var
tmpfs   3.2G  152K  3.2G   1% /run/user/1000


Thanks for any help give.

I realize one way is to backup /home and then reinstall Fedora but
1) that seems like a lot of work and
2) it would mean that the machine in question would then have to
use Wayland rather than Xorg.

Richard


This isn't a direct reply to your question:  IIUC you need to run a 
'live' image to do that.


But I installed f40 a few days ago, and today "dnf upgrade" installed 
kernel-6.8.8 but *not* vmlinuz-6.8.8, so booting failed.


My /boot partition is 450 GB, and I now have two bootable f40 kernels 
and a recent rescue kernel.  There's no room for another.  You probably 
don't have a "recovery" option.


I now have "installonly_limit=2" in /etc/dnf/dnf.conf, but a new "dnf 
upgrade" after that said there was "nothing to do".  What did work was ( 
while running 6.8.7):


sudo dnf remove kernel-core-6.8.8
sudo dnf upgrade

and then when "systemctl list-jobs" was clear, "sudo systemctl reboot"

I, too, would prefer to have a bigger /boot, but this info might help.

John P


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


Re: How to increase size of /boot partition

2024-05-03 Thread Samuel Sieb

On 5/3/24 14:03, Samuel Sieb wrote:
The easiest option would be to use a live boot, shrink the /ssd 
partition by 1GB, shift it forward, then give that space to /boot.  I 
assume that gparted can handle LUKS.  And of course, make sure you have 
a backup for whatever is in that partition if it's important.


This might require a grub update depending on what happens during the 
resize of /boot.  I'm not sure if grub uses fixed offsets to the files 
in /boot.  I haven't used bios boot for a long time.

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


Re: How to increase size of /boot partition

2024-05-03 Thread Tom Horsley
On Fri, 3 May 2024 13:55:49 -0700
richard emberson wrote:

> So, how can I increase the size of the /boot partition? Many partitions,
> like /tmp, are bigger than they need to be.

Might be worth a reinstall from scratch. I always make just a single /
partition and let all those other things be subdirectories. Never run
out of space unless the whole system runs out of space. You might be able to
do that with various copies of other partitions, renames, and merging
all the partitions into one with a disk tool running on a live image,
but probably have to reinstall grub at a minimum to make it work and
if I tried it, I'd probably screw something up and have to reinstall
anyway :-).
--
___
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


Re: How to increase size of /boot partition

2024-05-03 Thread Go Canes
On Fri, May 3, 2024 at 1:52 PM richard emberson  wrote:
>
> Just today I upgraded from 39 to 40 but there was an issue:
> dnf told me I needed some 800k more space in my /boot partition to proceed.
> I had two kernels in /boot so I dnf removed those associated with the older
> of the two kernels. I then successfully upgraded.
> I fear the next time I do a dnf update which includes a new kernel I will
> be told, again, that there is not enough space in my /boot partition.

I recently had to resize my /boot.  The original install was several
Fedora versions back was 500MB, and more recent installs are 1GB.

What I did was backup my file systems to an external USB drive, boot
off the netinstall ISO, re-partition, re-mkfs, restore, then go
through all the UUID hassles recently documented in another thread.
If you have a sufficient drive to use for backups this may be the
easiest solution - it is probably the safest.

You are using LUKS which may complicate things.
--
___
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


Re: How to increase size of /boot partition

2024-05-03 Thread Samuel Sieb

On 5/3/24 13:55, richard emberson wrote:

Just today I upgraded from 39 to 40 but there was an issue:
dnf told me I needed some 800k more space in my /boot partition to proceed.
I had two kernels in /boot so I dnf removed those associated with the older
of the two kernels. I then successfully upgraded.
I fear the next time I do a dnf update which includes a new kernel I will
be told, again, that there is not enough space in my /boot partition.

So, how can I increase the size of the /boot partition? Many partitions,
like /tmp, are bigger than they need to be.

Here is what how the /sda disk is organized.
$ lsblk
NAME  MAJ:MIN RM   SIZE RO TYPE  
MOUNTPOINTS

sda 8:0    0 223.6G  0 disk
├─sda1  8:1    0   250M  0 part  /boot
├─sda2  8:2    0 105.5G  0 part
│ └─luks-a2ebb2b0-527d-47f3-83ef-e5908805f31d
│ 253:3    0 105.5G  0 crypt /ssd
├─sda3  8:3    0  97.7G  0 part
│ └─luks-35719a97-5898-4420-9a56-1576ffdc6db3
│ 253:1    0  97.7G  0 crypt /
├─sda4  8:4    0 1K  0 part
├─sda5  8:5    0   9.8G  0 part
│ └─luks-5ee2ed8e-4bdf-43e1-adb0-34a70610a77f
│ 253:2    0   9.8G  0 crypt /tmp
└─sda6  8:6    0   9.8G  0 part
    └─luks-03c06df8-f9b9-4f0d-847e-79a7ed527888
    253:0    0   9.8G  0 crypt [SWAP]

$ df -h
Filesystem  Size  Used Avail Use% Mounted on
/dev/dm-1    96G   22G   70G  25% /
devtmpfs    4.0M 0  4.0M   0% /dev
tmpfs    16G 0   16G   0% /dev/shm
tmpfs   6.3G  1.8M  6.3G   1% /run
/dev/sda1   237M  179M   42M  82% /boot
/dev/dm-2   9.5G  260K  9.0G   1% /tmp
/dev/dm-3   104G  193M   99G   1% /ssd
/dev/dm-4   1.9T  1.2T  630G  66% /home
/dev/dm-5   1.7T  903G  736G  56% /data1
/dev/dm-6    20G   12G  6.9G  63% /var
tmpfs   3.2G  152K  3.2G   1% /run/user/1000


This looks like you've been upgrading for a very long time.  This type 
of layout and partition sizes is ancient.  /tmp isn't even a partition now.


The easiest option would be to use a live boot, shrink the /ssd 
partition by 1GB, shift it forward, then give that space to /boot.  I 
assume that gparted can handle LUKS.  And of course, make sure you have 
a backup for whatever is in that partition if it's important.


An alternative would be to reformat the /tmp partition for /boot, move 
the contents, adjust fstab, and update grub.  But that's a lot more 
space than needed.



Thanks for any help give.

I realize one way is to backup /home and then reinstall Fedora but
1) that seems like a lot of work,


Yes, but maybe it's time. :-)


2) it would mean that the machine in question would then have to
use Wayland rather than Xorg and


Why would that be?  You must have been listening to some misinformation. 
 If your current install can use Xorg, then re-installing won't be any 
different.



3) with Wayland I could not use xfce4.


If you install with xfce, then that's what you'll be using...
--
___
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


How to increase size of /boot partition

2024-05-03 Thread richard emberson

Just today I upgraded from 39 to 40 but there was an issue:
dnf told me I needed some 800k more space in my /boot partition to proceed.
I had two kernels in /boot so I dnf removed those associated with the older
of the two kernels. I then successfully upgraded.
I fear the next time I do a dnf update which includes a new kernel I will
be told, again, that there is not enough space in my /boot partition.

So, how can I increase the size of the /boot partition? Many partitions,
like /tmp, are bigger than they need to be.

Here is what how the /sda disk is organized.
$ lsblk
NAME  MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sda 8:00 223.6G  0 disk
├─sda1  8:10   250M  0 part  /boot
├─sda2  8:20 105.5G  0 part
│ └─luks-a2ebb2b0-527d-47f3-83ef-e5908805f31d
│ 253:30 105.5G  0 crypt /ssd
├─sda3  8:30  97.7G  0 part
│ └─luks-35719a97-5898-4420-9a56-1576ffdc6db3
│ 253:10  97.7G  0 crypt /
├─sda4  8:40 1K  0 part
├─sda5  8:50   9.8G  0 part
│ └─luks-5ee2ed8e-4bdf-43e1-adb0-34a70610a77f
│ 253:20   9.8G  0 crypt /tmp
└─sda6  8:60   9.8G  0 part
   └─luks-03c06df8-f9b9-4f0d-847e-79a7ed527888
   253:00   9.8G  0 crypt [SWAP]

$ df -h
Filesystem  Size  Used Avail Use% Mounted on
/dev/dm-196G   22G   70G  25% /
devtmpfs4.0M 0  4.0M   0% /dev
tmpfs16G 0   16G   0% /dev/shm
tmpfs   6.3G  1.8M  6.3G   1% /run
/dev/sda1   237M  179M   42M  82% /boot
/dev/dm-2   9.5G  260K  9.0G   1% /tmp
/dev/dm-3   104G  193M   99G   1% /ssd
/dev/dm-4   1.9T  1.2T  630G  66% /home
/dev/dm-5   1.7T  903G  736G  56% /data1
/dev/dm-620G   12G  6.9G  63% /var
tmpfs   3.2G  152K  3.2G   1% /run/user/1000


Thanks for any help give.

I realize one way is to backup /home and then reinstall Fedora but
1) that seems like a lot of work,
2) it would mean that the machine in question would then have to
use Wayland rather than Xorg and
3) with Wayland I could not use xfce4.

Richard
--
___
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


How to increase size of /boot partition

2024-05-03 Thread richard emberson

Just today I upgraded from 39 to 40 but there was an issue:
dnf told me I needed some 800k more space in my /boot partition to proceed.
I had two kernels in /boot so I dnf removed those associated with the older
of the two kernels. I then successfully upgraded.
I fear the next time I do a dnf update which includes a new kernel I will
be told, again, that there is not enough space in my /boot partition.

So, how can I increase the size of the /boot partition? Many partitions,
like /tmp, are bigger than they need to be.

Here is what how the /sda disk is organized.
$ lsblk
NAME  MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sda 8:00 223.6G  0 disk
├─sda1  8:10   250M  0 part  /boot
├─sda2  8:20 105.5G  0 part
│ └─luks-a2ebb2b0-527d-47f3-83ef-e5908805f31d
│ 253:30 105.5G  0 crypt /ssd
├─sda3  8:30  97.7G  0 part
│ └─luks-35719a97-5898-4420-9a56-1576ffdc6db3
│ 253:10  97.7G  0 crypt /
├─sda4  8:40 1K  0 part
├─sda5  8:50   9.8G  0 part
│ └─luks-5ee2ed8e-4bdf-43e1-adb0-34a70610a77f
│ 253:20   9.8G  0 crypt /tmp
└─sda6  8:60   9.8G  0 part
  └─luks-03c06df8-f9b9-4f0d-847e-79a7ed527888
  253:00   9.8G  0 crypt [SWAP]

$ df -h
Filesystem  Size  Used Avail Use% Mounted on
/dev/dm-196G   22G   70G  25% /
devtmpfs4.0M 0  4.0M   0% /dev
tmpfs16G 0   16G   0% /dev/shm
tmpfs   6.3G  1.8M  6.3G   1% /run
/dev/sda1   237M  179M   42M  82% /boot
/dev/dm-2   9.5G  260K  9.0G   1% /tmp
/dev/dm-3   104G  193M   99G   1% /ssd
/dev/dm-4   1.9T  1.2T  630G  66% /home
/dev/dm-5   1.7T  903G  736G  56% /data1
/dev/dm-620G   12G  6.9G  63% /var
tmpfs   3.2G  152K  3.2G   1% /run/user/1000


Thanks for any help give.

I realize one way is to backup /home and then reinstall Fedora but
1) that seems like a lot of work and
2) it would mean that the machine in question would then have to
use Wayland rather than Xorg.

Richard
--
___
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