[Parted-maintainers] Bug#546799: -q option prevents fatresize

Matt B epinephrine_junky at yahoo.com
Fri Sep 23 00:29:33 UTC 2011


Check this out:
1)   fatresize info (-i) shows 4.1GB FAT filesystem
clone#
fatresize -i /dev/sda2
fatresize
1.0.2 (04/18/10)
FAT:
fat32
Size:
4195352576
Min
size: 536870912
Max
size: 200048565760
2)Set the new size smaller to 3501MiB with –q (quiet
aka quite in man pages)
clone#
fatresize -q -s 3501Mi /dev/sda2
3)Check info and note that size is unchanged
(WTF!)
clone#
fatresize -i /dev/sda2
fatresize
1.0.2 (04/18/10)
FAT:
fat32
Size:
4195352576
Min
size: 536870912
Max
size: 200048565760
4)Set the size again without the –q argument
and recheck the info
clone#
fatresize -s 3501Mi /dev/sda2
fatresize
1.0.2 (04/18/10)
clone#
fatresize -i /dev/sda2
fatresize
1.0.2 (04/18/10)
FAT:
fat32
Size:
4195352576
Min
size: 536870912
Max
size: 200048565760
5)Blast it!  WTF is going on.  Try without –q using
a different size
clone#
fatresize -s 3001Mi /dev/sda2
fatresize
1.0.2 (04/18/10)
clone#
fatresize -i /dev/sda2
fatresize
1.0.2 (04/18/10)
FAT:
fat32
Size:
3102092800
Min
size: 536870912
Max
size: 200048565760
6)Huh?  Set the size back to original without –q
clone#
fatresize -s 4001Mi /dev/sda2
fatresize
1.0.2 (04/18/10)
clone#
fatresize -i /dev/sda2
fatresize
1.0.2 (04/18/10)
FAT:
fat32
Size:
4198498304
Min
size: 536870912
Max
size: 200048565760
7)Ok that worked now repeat original problem.
clone#
fatresize -q -s 3501Mi /dev/sda2
clone#
fatresize -i /dev/sda2
fatresize
1.0.2 (04/18/10)
FAT:
fat32
Size:
4198498304
Min
size: 536870912
Max
size: 200048565760
8)Holy crap.  –q seems to introduce some weird behavior.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/parted-maintainers/attachments/20110922/9c8f9262/attachment-0001.html>


More information about the Parted-maintainers mailing list