[Bug 1820090] Re: SRU: fix FAT recognition after resizing
Alkis Georgopoulos
1820090 at bugs.launchpad.net
Wed Mar 20 06:41:34 UTC 2019
Hi, I verify that the proposed packages work as expected in bionic.
I created a 300 MB fat32 image, resized it with the updated packages, and it was still readable by "file -s /dev/loop5p1" and by MS Windows.
# dpkg -l '*parted*' | grep ^ii
ii gparted 0.30.0-3ubuntu2 amd64 GNOME partition editor
ii libparted-fs-resize0:amd64 3.2-20ubuntu0.2 amd64 disk partition manipulator - shared FS resizing library
ii libparted2:amd64 3.2-20ubuntu0.2 amd64 disk partition manipulator - shared library
ii parted 3.2-20ubuntu0.2 amd64 disk partition manipulator
** Tags removed: bionic verification-needed verification-needed-bionic
** Tags added: verification-done-bionic
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to parted in Ubuntu.
https://bugs.launchpad.net/bugs/1820090
Title:
SRU: fix FAT recognition after resizing
Status in parted package in Ubuntu:
Fix Released
Status in parted source package in Bionic:
Fix Committed
Bug description:
After resizing a FAT partition with any tool that uses libparted
(parted, gparted) in Bionic, the file system is no longer recognizable
by Microsoft Windows.
This fix has been applied in Cosmic+.
The Debian bug report is:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=840710
The patch applied upstream is:
http://git.savannah.gnu.org/cgit/parted.git/commit/?id=c0d394abac4d6d2ce35c98585b6ecb33aea48583
[Test case]
* Use e.g. gparted to format a USB stick with MBR and a fat32 partition.
* Verify that it's readable by Windows.
* Check for correct output similar to this:
# file -s /dev/sdf1
/dev/sdf1: DOS/MBR boot sector, code offset 0x58+2, OEM-ID "mkfs.fat", sectors/cluster 16,
Media descriptor 0xf8, sectors/track 32, heads 64, hidden sectors 2048, sectors 30447616
(volumes > 32 MB), FAT (32 bit), sectors/FAT 14864, serial number 0x7a03dea6, label: "ASDF "
* Resize it to e.g. 1 MB less.
* Verify that it's no longer readable by Windows.
* Check for wrong output similar to this:
# file -s /dev/sdf1
/dev/sdf1: DOS/MBR boot sector
[Regression Potential]
Minimal, the patch is an upstream one and already tested in Debian, in the Gparted live CD, and in newer Ubuntu releases.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/parted/+bug/1820090/+subscriptions
More information about the foundations-bugs
mailing list