https://bugs.kde.org/show_bug.cgi?id=412575
Bug ID: 412575
Summary: enlarging mounted btrfs partition with "Align" option
checked leads to full loss of the partition.
Product: partitionmanager
Version: 3.3
Platform: openSUSE RPMs
OS: Linux
Status: REPORTED
Severity: major
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
enlarging mounted btrfs partition with "Align" option checked leads to data
loss.
I just wanted to enlarge the root partition, and I had the free space to do so.
Btrfs allows online resize so I used this tool to do it.
After I started the task, I noticed that the tool was also moving the whole
partition to "align" it. I think the "align" checkbox is checked by default,
and it's also hidden in the default interface behind an "advanced" button.
I did not realize that this would destroy the partition, so I didn't terminate
the task.
The partition was lost and the system crashed. I had to reload a partition
image from backups.
STEPS TO REPRODUCE
1. resize an unaligned and mounted btrfs partition that is in use (ideally a
root partition of a test system), with the "Align" option checked.
2. Wait
3. profit
OBSERVED RESULT
The partition is trashed
EXPECTED RESULT
"Align" option is disabled for mounted resize of filesystems. I'm sure moving
around a mounted ext4 or xfs partition to "align" it is equally bad, so just
disable that if the filesystem is mounted.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSuse Tumbleweed
(available in About System)
KDE Frameworks 5.62.0
Qt 5.13.1 (built against 5.13.1)
--
You are receiving this mail because:
You are watching all bug changes.