You are not logged in.

#1 2017-12-22 18:32:40

easydizzy
Member
Registered: 2017-12-22
Posts: 11

How to mark parted effect after resizepart?

I followed the instruction on wiki of *parted*, but the disk space isn't affect by the command (the result of `fdisk -l` does not change although inside parted the result of `print` changed indeed). I wonder where I did wrong or how to make gparted effect after reboot? There is the result of `gparted` What I want is the unallocated space under /dev/sdb5/ to be unallocated under /dev/sdb/

There is the image: image url

Thank you in advance!

Offline

#2 2017-12-22 18:46:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,863

Re: How to mark parted effect after resizepart?

did you see that big fat warning in the image?

Offline

#3 2017-12-22 18:53:40

easydizzy
Member
Registered: 2017-12-22
Posts: 11

Re: How to mark parted effect after resizepart?

That warning is hard to miss. But what I want to to move unallocated space from /dev/sdb5 to /dev/sdb like the grey space besides the /dev/sdb5 (another image). It's easy to do with gparted but I wonder how should I do it in live usb with parted?

Offline

#4 2017-12-22 19:01:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,863

Re: How to mark parted effect after resizepart?

Ok. It would then seem that you intentionally shrinked the FS, but forgot to shrink the partition
https://wiki.archlinux.org/index.php/GN … partitions
The resizepart commands.

Offline

#5 2017-12-22 19:21:35

easydizzy
Member
Registered: 2017-12-22
Posts: 11

Re: How to mark parted effect after resizepart?

I actually did that as well. My command is `resizepart /dev/sdb 5 157286400` since I want to shrink to 150GB, but it does not make any change. So I wonder if my command is wrong or something else?

Offline

#6 2017-12-22 21:16:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,863

Re: How to mark parted effect after resizepart?

There are *two* resizepart calls - one in parted and one to tell the kernel.
The parted one is the more relevant one and notice that you need to pass the partition end and not the size in that call.

Offline

Board footer

Powered by FluxBB