Mailinglist Archive: opensuse-bugs (4652 mails)

< Previous Next >
[Bug 1044169] New: YaST2 partitioner try to shrink into lower size than user requested and fails
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Tue, 13 Jun 2017 20:08:51 +0000
  • Message-id: <bug-1044169-21960@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=1044169


Bug ID: 1044169
Summary: YaST2 partitioner try to shrink into lower size than
user requested and fails
Classification: openSUSE
Product: openSUSE Distribution
Version: Leap 42.2
Hardware: Other
OS: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: YaST2
Assignee: yast2-maintainers@xxxxxxx
Reporter: opensuse.lietuviu.kalba@xxxxxxxxx
QA Contact: jsrain@xxxxxxxx
Found By: ---
Blocker: ---

Created attachment 728841
--> http://bugzilla.opensuse.org/attachment.cgi?id=728841&action=edit
y2logs

YaST partioner says, that ntfs partition use 6.65 GiB and allows to shrink it
to new size of 6.66 GiB. But it fails at 6.7 and 6.8 GiB, but success at 6.9
GiB

In y2logs I see:
"Space in use : 7138 MB (34.1%)"

If I ask to resize to 6.7 GiB, I see:
New volume size : 7028433408 bytes (7029 MB)
/usr/sbin/ntfsresize -f -s 7028437k '/dev/sda2'
ERROR: New size can't be less than the space already occupied by data.
As it try to shrink to 7028433408/1024/1024/1024=6.546 GiB

If I ask to resize to 6.8 GiB, I see:
New volume size : 7132852736 bytes (7133 MB)
/usr/sbin/ntfsresize -f -s 7132860k '/dev/sda2'
ERROR: New size can't be less than the space already occupied by data.
As it try to shrink to 7132852736/1024/1024/1024=6.643 GiB

If I ask to resize to 6.9 GiB, I see:
New volume size : 7237276160 bytes (7238 MB)
It success as it try to shrink to 6,74/1024/1024/1024=6.740 GiB


############

After that I try try to even more shrink with GParted.
GParted allowed to shrink to 6.65 GiB.
Gparted run these commands:

# to check filesystem and (if possible) fix
ntfsresize -i -f -v /dev/sda2

# to run simulation
ntfsresize --force --force -s 7137656832 --no-action /dev/sda2

# real resize
ntfsresize --force --force -s 7137656832 /dev/sda2


############

I run updated openSUSE 42.2

All partitioning tools installed from default repos

# rpm -q parted ntfs-3g ntfsprogs
parted-3.1-23.1.x86_64
ntfs-3g-2013.1.13-4.5.x86_64
ntfsprogs-2013.1.13-4.5.x86_64

# rpm -q yast2-storage
yast2-storage-3.1.106-3.1.x86_64

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >
Follow Ups