Closed Bug 908916 Opened 11 years ago Closed 10 years ago

[Devices][User Story] Recognize unformatted SD card

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(feature-b2g:2.1)

VERIFIED FIXED
2.1 S3 (29aug)
feature-b2g 2.1

People

(Reporter: daniel.kulesz, Assigned: iliu)

References

Details

(Whiteboard: [ucid:Device10, 2.1, ft:devices][2.1-feature-qa+])

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 (Beta/Release)
Build ID: 20130803215302

Steps to reproduce:

- erased an existing mSD card using "dd" and the "/dev/zero" device.
- plugged this mSD card into my b2g device (inari) running stock OPEN_EU_DEV_FFOS_V1.0.0B01
- turned the device on and booted B2G


Actual results:

- nothing happened
- the card does not get listed, "media storage" under settings says "no storage found"
- after formatting the card externally B2G properly recognized the card


Expected results:

- B2G should have detected an unformatted SD card, asking the user if he wants to format it. Other systems (i.e. Android) or firmware (i.e. various digital cameras) behave like this, and a user should expect this behavior from B2G as well.
User story:
As a user, I want to be able to format an unformatted SD card in order to use it in a FirefoxOS device
Summary: Unformatted SD cards are not handled → [Devices][User Story] Recognize unformatted SD card
Whiteboard: [ucid:Device19, 1.4:p2, ft:devices]
Whiteboard: [ucid:Device19, 1.4:p2, ft:devices] → [ucid:Device10, 1.4:p2, ft:devices]
Blocks: 943825
No longer blocks: 943825
Depends on: 943825
Depends on: 971615
No longer blocks: 1.4-devices-targeted
Whiteboard: [ucid:Device10, 1.4:p2, ft:devices] → [ucid:Device10, 2.0:p2, ft:devices]
Whiteboard: [ucid:Device10, 2.0:p2, ft:devices] → [ucid:Device10, 2.0, ft:devices]
Status: UNCONFIRMED → NEW
Ever confirmed: true
feature-b2g: --- → 2.0
feature-b2g: 2.0 → ---
Whiteboard: [ucid:Device10, 2.0, ft:devices] → [ucid:Device10, 2.1, ft:devices]
No longer blocks: 2.0-devices
Blocks: 2.1-devices
I'm pretty sure that detecting that an sdcard is unformatted or not formatted as vfat will fall under the AutoMounter (dom/system/gonk).

vold will try to run a chkdsk on the volume, and that will fail. The AutoMounter should detect that reflect the status (probably through device storage) so that the settings app can detect this and allow the volume to be formatted.
Component: Gaia::System → General
Or maybe I should have left this as Gaia::System and filed a new bug for the AutoMounter portion? I'm not sure whether this was intended to be a meta bug or not. My apologies if I changed it and shouldn't have.
feature-b2g: --- → 2.1
QA Whiteboard: [COM=Storage]
QA Whiteboard: [COM=Storage] → [COM=Storage][2.1-feature-qa+]
Assignee: nobody → iliu
Flags: in-moztrap?(ashiue)
QA Contact: ashiue
QA Whiteboard: [COM=Storage][2.1-feature-qa+] → [COM=Storage]
Whiteboard: [ucid:Device10, 2.1, ft:devices] → [ucid:Device10, 2.1, ft:devices][2.1-feature-qa+]
Target Milestone: --- → 2.1 S2 (15aug)
https://moztrap.mozilla.org/manage/cases/?filter-suite=653
Flags: in-moztrap?(ashiue) → in-moztrap+
Target Milestone: 2.1 S2 (15aug) → 2.1 S3 (29aug)
Resolved fixed as all dependent bugs closed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Verified landed
Gaia      2be78d83a760fa3b9638fe51c266b442d14597f1
Gecko     https://hg.mozilla.org/mozilla-central/rev/1db35d2c9a2f
BuildID   20140831160203
Version   34.0a1
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.