Bug 465242 - Partition restore fails with misleading message about unavailable space
Summary: Partition restore fails with misleading message about unavailable space
Status: REPORTED
Alias: None
Product: partitionmanager
Classification: Applications
Component: general (show other bugs)
Version: 22.12.2
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Andrius Štikonas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-03 20:04 UTC by Gabriel Barros
Modified: 2023-12-26 13:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Barros 2023-02-03 20:04:54 UTC
SUMMARY

When trying to restore a 800Mb ISO image to a 120Gb empty drive, I get an error about space not being enough.


STEPS TO REPRODUCE
1. Insert a clean pen drive. (tried: a. no partition table; b. with clean MBR; c. with clean GPT)
2. click the unallocated space and from context menu select "Restore"
3. Select a ISO file (e.g. arch install media) Confirm defaults on next dialog.

file used: https://america.mirror.pkgbuild.com/iso/2023.02.01/archlinux-2023.02.01-x86_64.iso

OBSERVED RESULT
I get an error:
"""
It is not possible to create the target partition large enough to hold the source. 
This may happen if not all partitions on a device are correctly aligned or when copying a primary partition into an extended partition.
"""

EXPECTED RESULT
I expect the target partition created.


SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 6.1.9-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 PRO 6650U with Radeon Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: HP
Product Name: HP EliteBook 845 14 inch G9 Notebook PC

ADDITIONAL INFORMATION
Comment 1 Andrius Štikonas 2023-02-03 21:07:40 UTC
Message is a bit misleading, but what you are trying to do is not a valid operation. You are trying to restore disk image into a partition (i.e. restore /dev/sda into /dev/sda1).

At the moment partition manager does not support restoring whole disk image.
Comment 2 Gabriel Barros 2023-02-07 19:45:22 UTC
I see. Thank you. The manual does say it works on a empty region, so I assumed wrong. Guess the feature is not well named either, not just the error.

Menu items should be called "restore partition" not just "restore"/"backup".
Comment 3 Andrius Štikonas 2023-02-07 20:07:33 UTC
(In reply to Gabriel Barros from comment #2)
> I see. Thank you. The manual does say it works on a empty region, so I
> assumed wrong. Guess the feature is not well named either, not just the
> error.
> 
> Menu items should be called "restore partition" not just "restore"/"backup".

Hmm, in principle these menu entries are in "Partition". All operations in it are partition specific. There is also device menu for device-wide things.
Comment 4 Gabriel Barros 2023-02-12 02:49:09 UTC
>  these menu entries are in "Partition". All operations in it are partition specific. There is also device menu for device-wide things.

makes sense for the menus. 

In the "devices" menu i see "restore partion table"

On the partition menu there's only "restore" and that do make sense in that menu as you mention.

I think my confusion is when you right click an empty drive's empty space. is that showing me the menu for partition or device (since there's no partition)
Comment 5 Andrius Štikonas 2023-02-12 18:18:14 UTC
(In reply to Gabriel Barros from comment #4)
> I think my confusion is when you right click an empty drive's empty space.
> is that showing me the menu for partition or device (since there's no
> partition)

That's still the same partition menu. You get device menu if you right click on the very top line (or if you have a floating device panel, you can right click there).

If you still think that's bit confusing, I guess we could add extra word Partition there. I.e. "Backup partition", "Restore partition". But we already have a tooltip that shows that when you hover your mouse above "Backup" menu entry.
Comment 6 Gabriel Barros 2023-12-26 13:26:59 UTC
Reading the whole history again, i do think it is confusing

i said:

> > 2. click the unallocated space and from context menu select "Restore"

and you explained my mistake as:

> Message is a bit misleading, but what you are trying to do is not a valid operation. You are trying to restore disk image into a partition (i.e. restore /dev/sda into /dev/sda1).

So, when i click the "unallocated" I'm clicking "sda1"? that is confusing, yes. What do you suggest we change the text to?