[parted-devel] resizing FAT partitions does not work at all

Curtis Gedak gedakc at gmail.com
Wed Sep 23 22:45:00 UTC 2009


Hi Jim,

The script t3000-resize-fat.sh generates the same results for when I use 
parted-1.9.0.

After some testing, it appears that parted does not like to resize FAT32 
file systems if they are smaller than 256MB.

By making the below posted changes to the script I was able to create a 
FAT32 file system of about 256 MB in size (aligned to a cylinder), and 
then successfully grow it by about 8MB (one cylinder).

Hope this helps :-)
Curtis Gedak

----------
$ diff -c t3000-resize-fat.sh t3000-resize-fat-works.sh
*** t3000-resize-fat.sh    2009-09-23 16:32:29.000000000 -0600
--- t3000-resize-fat-works.sh    2009-09-23 16:31:35.000000000 -0600
***************
*** 32,38 ****
 
  test_expect_success \
      'create an empty FAT partition' \
!     'parted -s $dev mkpart primary fat32 50s 70000s > out 2>&1'
  test_expect_success 'expect no output' 'compare out /dev/null'
 
  test_expect_success \
--- 32,38 ----
 
  test_expect_success \
      'create an empty FAT partition' \
!     'parted -s $dev mkpart primary fat32 63s 530144s > out 2>&1'
  test_expect_success 'expect no output' 'compare out /dev/null'
 
  test_expect_success \
***************
*** 57,63 ****
 
  test_expect_success \
      'resize that file system' \
!     'parted -s $dev resize 1 50s 71000s'
 
  test_expect_success \
      'print partition table' \
--- 57,63 ----
 
  test_expect_success \
      'resize that file system' \
!     'parted -s $dev resize 1 63s 546147s'
 
  test_expect_success \
      'print partition table' \




More information about the parted-devel mailing list