- Status Closed
- Percent Complete
- Task Type Bug Report
- Category Core
- Operating System Release 1 (Zaxxon)
- Severity Critical
- Reported Version Hotfix 5
Attached to Project: OpenPandora Main OS
Opened by Stefan Nowak - 08.07.2011
Last edited by Stefan Nowak - 13.07.2011
Opened by Stefan Nowak - 08.07.2011
Last edited by Stefan Nowak - 13.07.2011
FS#237 - /dev/mmcblkN - N sometimes points to left, sometimes to right SD card slot! Unreliable! Dangerous!
SPECIFICATION:
According to http://pandorawiki.org/SD_compatibility_list
/dev/mmcblk0 is the left SD card slot (the one being closer to the headphone check)
/dev/mmcblk1 is the right SD card slot
I trusted that device path specification.
And it was correct MOST of the time.
But sadly only most of the time, NOT ALWAYS!!!
This bug is severely dangerous, as a (possibly critical) command could unexpectedly affect a device other than the one you intended it for!
BUG INCIDENT:
Sadly, I realized this bug at the worst possible moment!
I issued the command: shred -fvz /dev/mmcblk0
but it erased the card in the RIGHT slot.
I realized that because the card inserted on the left has 16GB, and the one on the right 128MB.
I checked both the card positions and my entered command, to exclude my own mistake. Sadly it was not a clumsy mistake: This severe bug really exists!
BUG REPRODUCIBILITY:
I already slightly witnessed this bug during the last days, but thought it was just a coincidence.
I.e. in GParted the larger card showed up at the wrong device path.
I did a refresh and/or ejected/re-inserted the card, and the expected device path was back again, and I did not think further about this incident.
Only today with this fatal shred incident, I eventually realized this behavior is a bug.
Luckily I had my data backed up.
Closed by Stefan Nowak
13.07.2011 10:54
Reason for closing: Not a bug
Additional comments about closing: Wiki contained misleading info. Was corrected in this version: http://pandorawiki.org/?oldid=8655
13.07.2011 10:54
Reason for closing: Not a bug
Additional comments about closing: Wiki contained misleading info. Was corrected in this version: http://pandorawiki.org/?oldid=8655