1

Topic: error resizing sd-card gpart

i followed instructions to resize a sd-card partition:
https://www.htpcguides.com/easy-resize- … th-ubuntu/

i wanted to resize  7.36 gb to 5.08 but i got an error "new size smaller than minimum" I tried the same 7.36 gb to 5.86 gb. Same error.
See both gparted_detail.htm logfiles.

I am new in Linux world so if anyone can help me?

thanks
Paul
====

GParted 0.25.0 --enable-libparted-dmraid --enable-online-resize

Libparted 3.2
Shrink /dev/sdj2 from 7.36 GiB to 5.86 GiB  00:00:22    ( ERROR )
        
calibrate /dev/sdj2  00:00:00    ( SUCCESS )
        
path: /dev/sdj2 (partition)
start: 94208
end: 15523839
size: 15429632 (7.36 GiB)
check file system on /dev/sdj2 for errors and (if possible) fix them  00:00:21    ( SUCCESS )
        
e2fsck -f -y -v -C 0 /dev/sdj2  00:00:21    ( SUCCESS )
        
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

130896 inodes used (27.57%, out of 474832)
41 non-contiguous files (0.0%)
137 non-contiguous directories (0.1%)
# of inodes with ind/dind/tind blocks: 0/0/0
Extent depth histogram: 113496/13
1149272 blocks used (59.59%, out of 1928704)
0 bad blocks
1 large file

102247 regular files
10938 directories
55 character device files
25 block device files
0 fifos
1423 links
17619 symbolic links (17296 fast symbolic links)
3 sockets
------------
132310 files
e2fsck 1.42.13 (17-May-2015)
shrink file system  00:00:01    ( ERROR )
        
resize2fs -p /dev/sdj2 6144000K  00:00:01    ( ERROR )
        
resize2fs 1.42.13 (17-May-2015)
resize2fs: New size smaller than minimum (1626614)

=====
GParted 0.25.0 --enable-libparted-dmraid --enable-online-resize

Libparted 3.2
Shrink /dev/sdj2 from 7.36 GiB to 5.08 GiB  00:00:19    ( ERROR )
        
calibrate /dev/sdj2  00:00:00    ( SUCCESS )
        
path: /dev/sdj2 (partition)
start: 94208
end: 15523839
size: 15429632 (7.36 GiB)
check file system on /dev/sdj2 for errors and (if possible) fix them  00:00:19    ( SUCCESS )
        
e2fsck -f -y -v -C 0 /dev/sdj2  00:00:19    ( SUCCESS )
        
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

130896 inodes used (27.57%, out of 474832)
41 non-contiguous files (0.0%)
137 non-contiguous directories (0.1%)
# of inodes with ind/dind/tind blocks: 0/0/0
Extent depth histogram: 113496/13
1149272 blocks used (59.59%, out of 1928704)
0 bad blocks
1 large file

102247 regular files
10938 directories
55 character device files
25 block device files
0 fifos
1423 links
17619 symbolic links (17296 fast symbolic links)
3 sockets
------------
132310 files
e2fsck 1.42.13 (17-May-2015)
shrink file system  00:00:00    ( ERROR )
        
resize2fs -p /dev/sdj2 5324800K  00:00:00    ( ERROR )
        
resize2fs 1.42.13 (17-May-2015)
resize2fs: New size smaller than minimum (1626614)

2

Re: error resizing sd-card gpart

You might try resizing to a larger partition size.

Also you might try using a newer version of GParted, such as 0.28.1 available on GParted Live.

3

Re: error resizing sd-card gpart

Of course i can do that, but why is it not possible to resize to a smaller partition?

The Ubunto- software manager tells me version 0.25 is up to date and i do not know how to install the version 0.28.1

4

Re: error resizing sd-card gpart

The distro packaged version of gparted can vary from distro to distro.  The ubuntu package is over 2 years old, and while 0.25.0 is the "latest" in the ubuntu package libraries, it is far from the latest official released version of GParted.

The reason I suggest booting from media containing GParted Live is because it contains updated versions of all of the other software libraries and file system tools used by GParted.  The error message might be due to a bug in one of these other libraries or tools.

5

Re: error resizing sd-card gpart

gedakc wrote:

The distro packaged version of gparted can vary from distro to distro.  The ubuntu package is over 2 years old, and while 0.25.0 is the "latest" in the ubuntu package libraries, it is far from the latest official released version of GParted.

The reason I suggest booting from media containing GParted Live is because it contains updated versions of all of the other software libraries and file system tools used by GParted.  The error message might be due to a bug in one of these other libraries or tools.

Clear, but as i wrote i am not very familiar yet with Unbutu and Linux.
How do i install the latest package of Gparted in Unbutu?

thx

6

Re: error resizing sd-card gpart

pgasgm2016 wrote:

How do i install the latest package of Gparted in Unbutu?

You would either have to wait for Ubuntu to create the package, or else you could compile your own version using the instructions found under the Develop page.