Results (using btrfs-compsize tool):
$ sudo compsize /boot/ /bin/ /usr/
Processed 240794 files, 88025 regular extents (89183 refs), 162022 inline.
Type Perc Disk Usage Uncompressed Referenced
TOTAL 50% 2.7G 5.3G 5.4G
none 100% 1.1G
Seems that btrfs ignores compression attribute if compression was set using
mount option.
So, the solution is to set compression attributes per-directory:
1) remove 'compress=zstd' from your fstab root record
2) sudo btrfs property set /boot compression lzo # ensure this dir will remain
The simplest workaround for the moment:
sudo btrfs property set /boot compression lzo # ensure this dir will remain
readable by grub
sudo btrfs filesystem defragment -vr /boot # ensure /boot gets recompressed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which
This would be an enhancement request.
** Changed in: grub2 (Ubuntu)
Status: Confirmed => Triaged
** Changed in: grub2 (Ubuntu)
Importance: Undecided => Wishlist
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
** Also affects: grub2 (Arch Linux)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1751517
Title:
ubuntu bionic grub can't boot zstd compressed filesystem
> Another option:
> Archlinux uses this patched grub version:
>
> https://github.com/Antynea/grub-btrfs
This is doubly wrong. Archlinux does not use what you linked, but
instead uses mainline version with some patches
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: grub2 (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1751517
Title:
possible workaround:
Patch all btrfs-tools so that they don't compress files accessed by grub with
zstd.
pitfall:
If users repair the filesystem from a live-cd, (eg. run defragmentation), they
must make sure that they don't compress files acessed by grub with zstd.
Another option:
Archlinux
There may be non root partitions that users want to compress with zstd
so you shouldn't
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1751517
Title:
ubuntu bionic grub can't boot zstd compressed
I wonder if I should be disabling zstd support in btrfs-progs, if we
cannot boot them.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1751517
Title:
ubuntu bionic grub can't boot zstd compressed
** Package changed: grub (Ubuntu) => grub2 (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1751517
Title:
ubuntu bionic grub can't boot zstd compressed filesystem
To manage notifications
** Package changed: update-manager (Ubuntu) => grub (Ubuntu)
** Description changed:
- In the /etc/fstab of installed ubuntu bionic sytem I specified compress=zstd
for the btrfs root filesytem
+ In the /etc/fstab of installed ubuntu bionic system I specified compress=zstd
for the btrfs root
12 matches
Mail list logo