Jim Meyering wrote:
Curtis Gedak wrote:
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

Hmm...
I tried what you suggested, but it still doesn't work with 1.9.
[however, I did track down one bug: two changes that recently
 moved from next to master modified FAT file system handling,
 and one introduced a bug.  I expect to revert them soon.]

Are you sure that your final resize succeeded?
If so, please show the actual commands you used
as well as before and after results of running this:

    parted -s $dev u s p

(I tried with 1.9 built from source, and the 1.8.8 from Fedora 11 as
well as the one from debian unstable -- all with this same result)
Here are the commands I used:

    dev=/dev/sde
    parted -s $dev mklabel gpt
    parted -s $dev mkpart primary fat32 63s 530144s

    # if needed, wait for the partition device (e.g., /dev/sdd1) to appear
    mkfs.vfat -F 32 ${dev}1
    parted -s $dev resize 1 63s 546147s

That final parted invocation always fails with this:

    No Implementation: GNU Parted cannot resize this partition to this size.
    We're working on it!

Hi Jim,

I retried these steps on a virtual machine I built with Fedora 11. I installed the latest parted git master branch and ran into a different problem.

The testing below shows that that either:
    a) parted does not recognize the FAT32 file system
or
b) the mkfs.vfat v3.0.1 command does not properly create the FAT32 file system.


# parted
GNU Parted 1.9.0.115-96bb5
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) quit quit
# dev=/dev/sdb
# parted -s $dev mklabel gpt
# parted -s $dev u s p
Model: ATA VMware Virtual I (scsi)
Disk /dev/sdb: 8388608s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End  Size  File system  Name  Flags

# parted -s $dev mkpart primary fat32 63s 530144s
# parted -s $dev u s p
Model: ATA VMware Virtual I (scsi)
Disk /dev/sdb: 8388608s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End      Size     File system  Name     Flags
1      63s    530144s  530082s               primary

# mkfs.vfat -F 32 ${dev}1
mkfs.vfat 3.0.1 (23 Nov 2008)
# parted -s $dev u s p
Model: ATA VMware Virtual I (scsi)
Disk /dev/sdb: 8388608s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End      Size     File system  Name     Flags
1      63s    530144s  530082s               primary

# parted -s $dev resize 1 63s 546147s
Error: Could not detect file system.
# parted -s $dev u s p
Model: ATA VMware Virtual I (scsi)
Disk /dev/sdb: 8388608s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End      Size     File system  Name     Flags
1      63s    530144s  530082s               primary

#


_______________________________________________
parted-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/parted-devel

Reply via email to