I am trying to shrink a 200GB ext4 partition by a few GB:
Code:
resize2fs -p /dev/sda5 200864640K
resize2fs 1.43.1 (08-Jun-2016)
Resizing the filesystem on /dev/sda5 to 50216160 (4k) blocks.
Begin pass 3 (max = 1545)
Scanning inode table XXXXXXXXSegmentation fault--------------
The file system was created under another linux distro (I think it was Debian or one of the Ubuntu family). Below is the output of tune2fs -l.
Finally I could shrink the partition under a Debian live system without problems. But under Slackware64 the problem persists.
The system under which the fs was created was 32bit, as was the Debian live system.
Code:
tune2fs 1.43.1 (08-Jun-2016)
Filesystem volume name: <none>
Last mounted on: /home
Filesystem UUID: 253d7f76-1b5f-4c5b-a370-dd323a2487f5
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 12656640
Block count: 50603776
Reserved block count: 2530188
Free blocks: 40981291
Free inodes: 12572737
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1011
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
RAID stride: 32743
Flex block group size: 16
Filesystem created: Wed Oct 7 14:17:00 2015
Last mount time: Thu Jul 28 20:57:49 2016
Last write time: Thu Jul 28 20:59:38 2016
Mount count: 0
Maximum mount count: -1
Last checked: Thu Jul 28 20:59:38 2016
Check interval: 0 (<none>)
Lifetime writes: 68 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: fd582c08-0085-442b-827e-2534d8c88527
Journal backup: inode blocks