Yikes, looks like gparted has an off by one: it set the partition size
one sector two small. Do you have any thoughts on this Curtis?
On 01/31/2014 02:16 PM, ano...@users.sourceforge.net wrote:
> Package: gparted
> Version: 0.17.0-4
>
> I tried to shrink-and-move a partition on an external hard drive. It
> seems that gparted shrunk the parition to 93768726 4K blocks, but then
> resized the parition to only 750149807 512-byte sectors (93768725.875 4K
> blocks). The post-shrink e2fsck then errored out before the partition
> could be moved.
>
> gparted log attached.
>
Title: GParted Details
GParted 0.17.0 --enable-libparted-dmraid --enable-online-resize
Libparted 2.3
Move /dev/sdb1 to the right and shrink it from 1.82 TiB to 357.70 GiB 00:34:04 ( ERROR )
|
|
calibrate /dev/sdb1 00:00:00 ( SUCCESS )
|
|
path: /dev/sdb1 start: 2048 end: 3907029166 size: 3907027119 (1.82 TiB)
|
|
check file system on /dev/sdb1 for errors and (if possible) fix them 00:12:59 ( SUCCESS )
|
|
e2fsck -f -y -v -C 0 /dev/sdb1
|
|
Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information 720259 inodes used (0.59%, out of 122101760) 1666 non-contiguous files (0.2%) 256 non-contiguous directories (0.0%) # of inodes with ind/dind/tind blocks: 54238/1153/4 81366570 blocks used (16.66%, out of 488378389) 0 bad blocks 51 large files
576227 regular files 134638 directories 1120 character device files 740 block device files 24 fifos 0 links 7472 symbolic links (6954 fast symbolic links) 29 sockets ------------ 720250 files
|
e2fsck 1.42.9 (28-Dec-2013)
|
|
|
shrink file system 00:21:05 ( SUCCESS )
|
|
resize2fs -p /dev/sdb1 375074904K
|
|
Resizing the filesystem on /dev/sdb1 to 93768726 (4k) blocks. Begin pass 2 (max = 2011620) Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Begin pass 3 (max = 14905) Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Begin pass 4 (max = 135768) Updating inode references XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX The filesystem on /dev/sdb1 is now 93768726 blocks long.
|
resize2fs 1.42.9 (28-Dec-2013)
|
|
|
shrink partition from 1.82 TiB to 357.70 GiB 00:00:00 ( SUCCESS )
|
|
old start: 2048 old end: 3907029166 old size: 3907027119 (1.82 TiB)
|
new start: 2048 new end: 750151854 new size: 750149807 (357.70 GiB)
|
|
check file system on /dev/sdb1 for errors and (if possible) fix them 00:00:00 ( ERROR )
|
|
e2fsck -f -y -v -C 0 /dev/sdb1
|
|
The filesystem size (according to the superblock) is 93768726 blocks The physical size of the device is 93768725 blocks Either the superblock or the partition table is likely to be corrupt! Abort? yes
|
e2fsck 1.42.9 (28-Dec-2013)
|
|
|
|
========================================
signature.asc
Description: OpenPGP digital signature