Bug 1046096

Summary: Can't mount fat32 USB stick: issue on the partition table
Product: [openSUSE] openSUSE Tumbleweed Reporter: Pierre Bonamy <flyos>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Dumpfile from the first sectors of the USB stick
Output of udevadm info -e /dev/sdb
Output of udevadm info -e /dev/sdb1

Description Pierre Bonamy 2017-06-27 07:58:59 UTC
Created attachment 730322 [details]
Dumpfile from the first sectors of the USB stick

Since a recent upgrade in Tumbleweed, USB sticks that were used to host a live USB can't be mounted in KDE Plasma anymore.

Step to reproduce:
1- Download the Leap ISO, I used the NET install image from:
        https://software.opensuse.org/distributions/leap
2- Plug a USB key and copy the ISO on the USB key using:
        sudo dd if=/home/pierre/Downloads/openSUSE-Leap-42.2-NET-x86_64.iso of=/dev/sdc bs=4M status=progress && sync
3- Unplug & Replug (probably not necessary...)
4- Open Gparted, remove partitions on the USB key (don't touch the partition table!), create a new one in FAT32, put a label of your liking (say "MYLABEL"). This was a bit brutal and not cautious, but it creates roughly what you need, a formatted USB stick.

This result in the following different behaviour in Leap and Tumbleweed:
- In Leap, when you plug the USB stick, Plasma reads a USB device named "MYLABEL" and mount it without problem. Gparted sees it as a FAT32 partitioned device, as does fdisk. This would be the expected behaviour.
- In Tumbleweed, when you plug the USB stick, Plasma reads a USB device named "openSUSE-Leap..." and can't mount it. Gparted sees it as a ISO9660 partitioned device, but fdisk sees it as a FAT32 partitioned one.

See a dumpfile of the first sectors of the USB stick attached. This dumpfile was obtained using:
sudo dd if=/dev/sdc of=dumpfile bs=1M count=10

More information can be found on the opensuse-factory mailing list:
https://lists.opensuse.org/opensuse-factory/2017-06/msg00683.html
Comment 1 Pierre Bonamy 2017-06-29 01:43:23 UTC
Most likely a duplicate of:
https://bugzilla.opensuse.org/show_bug.cgi?id=1046268

*** This bug has been marked as a duplicate of bug 1046268 ***
Comment 2 Pierre Bonamy 2017-07-06 10:28:31 UTC
Created attachment 731381 [details]
Output of udevadm info -e /dev/sdb

Using a USB stick containing the content of the dumpfile of this bug.
Comment 3 Pierre Bonamy 2017-07-06 10:29:21 UTC
Created attachment 731382 [details]
Output of udevadm info -e /dev/sdb1

Using a USB stick containing the content of the dumpfile of this bug.