Please consider that it is potentially dangerous and can easily destroy all the data on a volume.JRD wrote:If it's ok, I will try to ask about it when installing grub2.
I think you should:
- ensure there really is only one partition and a (for parted) valid MBR
- don't touch the end of the partition
- print output of parted <dev> unit s print
- Give a very BIG warning
- (give the user the possibility to backup his data and recommend it)
I found no way to address sectors with gparted.JRD wrote:I think you could simply do it with gparted, which will also reduce the filesystem in the same time.