Bug 448401 - error when trying to resize partition
Summary: error when trying to resize partition
Status: RESOLVED NOT A BUG
Alias: None
Product: partitionmanager
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Andrius Štikonas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-13 21:43 UTC by James Morgan
Modified: 2022-01-18 14:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
attachment-14343-0.html (1.01 KB, text/html)
2022-01-14 07:43 UTC, James Morgan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Morgan 2022-01-13 21:43:29 UTC
SUMMARY

I am trying to grow a partition on my ssd storage drive. 1.82 TiB (/dev/sdb)
I have 2 partitions on the drive: 
/dev/sdb1 Type: ext4 Size: 1.67 TiB  Used: 1.61.23 GiB  
unallocated Type: unknown Size: 156.25 GiB ---

I'd like to grow the ext4 partition to 1.82 TiB 
When I attempt to do this I get an error message saying 'Check file system on partition '/dev/sdb1' 


STEPS TO REPRODUCE
1. Open resize/move function on KDE Partition Manager
2. Use slider to grow '/dev/sdb1' (same problem occurs if I use any method. hit OK -it seems ok at this point. 
3. Hit Apply - dialogue appears to verify that I want to apply the changes- I hit Apply

OBSERVED RESULT

Dialogue appears:
'There were errors while applying operations. Aborted. KDE Partition Manager
Grow partition ‘/dev/sdb1’ from 1.67 TiB to 1.82 TiB 
Job: Check file system on partition ‘/dev/sdb1’ 
Command: e2fsck -f -y -v /dev/sdb1 
Check file system on partition ‘/dev/sdb1’: Error

Checking partition ‘/dev/sdb1’ before resize/move failed. 
Grow partition ‘/dev/sdb1’ from 1.67 TiB to 1.82 TiB: Error

EXPECTED RESULT

The partition should grow to 1.82 TiB as attempted but doesn't. 

In Konole I ran: 

e2fsck -f -y -v /dev/sdb1 

Result : 
e2fsck: No such file or directory while trying to open /deb/sdb1
Possibly non-existent device?

Presumably this is because the partition isn't mounted, but it wouldn't let me resize the partition when it is mounted. 

SOFTWARE/OS VERSIONS

Operating System: Ubuntu Studio 21.04
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-16-lowlatency
OS Type: 64-bit
Graphics Platform: X11
Processors: 12 × Intel® Xeon® CPU E5-1650 v3 @ 3.50GHz
Memory: 31.3 GiB of RAM
Graphics Processor: NV117

ADDITIONAL INFORMATION
Comment 1 Andrius Štikonas 2022-01-13 23:11:53 UTC
> e2fsck: No such file or directory while trying to open /deb/sdb1

Did you make a typo here? /deb should be /dev
Comment 2 James Morgan 2022-01-14 07:43:53 UTC
Created attachment 145448 [details]
attachment-14343-0.html

Hi Andrius

Yes. That's a typo in my report. It was dev in the cmd error.

Cheers
James

On 13 Jan 2022, 23:11, at 23:11, "Andrius Štikonas" <bugzilla_noreply@kde.org> wrote:
>https://bugs.kde.org/show_bug.cgi?id=448401
>
>--- Comment #1 from Andrius Štikonas <andrius@stikonas.eu> ---
>> e2fsck: No such file or directory while trying to open /deb/sdb1
>
>Did you make a typo here? /deb should be /dev
>
>--
>You are receiving this mail because:
>You reported the bug.
Comment 3 Andrius Štikonas 2022-01-14 10:11:07 UTC
So if you run
sudo e2fsck -f -y -v /dev/sdb1 
what's the output then?

But in general if this command fails, there is some issue with file system and partitionmanager will refuse to operate on broken file system.
Comment 4 Nate Graham 2022-01-14 23:03:01 UTC
.
Comment 5 James Morgan 2022-01-18 14:28:47 UTC
Sorry for the delayed reply. 
I ended up cutting my losses and doing a clean install. 
Thanks for your help. 
James
Comment 6 Andrius Štikonas 2022-01-18 14:38:44 UTC
Closing this then. There isn't much we can do from KDE Partition Manager in case of broken filesystem anyway besides running e2fsck which we already do.