Badblocks test
My Jolla C has broken some regions of flash memory that is 'mmcblk0p28' . How can i test and mark bad blocks as there is no 'badblocks' program build in ?
We have moved to a new Sailfish OS Forum. Please start new discussions there.
My Jolla C has broken some regions of flash memory that is 'mmcblk0p28' . How can i test and mark bad blocks as there is no 'badblocks' program build in ?
On JP1301 /dev/mmcblk0p28 ist formatted with btrfs, on Jolla C probably ext4. Both filesystems aren't designed specifically for use on flash storage. Bad blocks management is nowadays a matter of the medium itself (hard disks re-map bad blocks without user interaction, flash storage does wear leveling in its firmware). While the badblocks
program (that usually comes with Ted T'so's extXfs) made sense a couple of decades ago, and would theoretically be usable on a Jolla C, it is no longer advisable to use it in these days.
If you encounter read/write errors on modern media, replace them. In case of a phone's flash memory this unfortunately means you've got to replace the phone (unless you're really good at soldering or have too much money left). Those errors mean that internal mechanisms that cope with read/write errors don't work any more because there are just too many of those errors on the device.
If only a single partition is exhibiting such behavior it might be possible to free up some space in the LVM volume group (by shrinking the EXT4 filesystems and then the logical volumes) and then removing the physical volume residing on the problematic partition.
MartinK ( 2017-06-30 00:02:42 +0200 )edit@4dmonster If storage on your Jolla C does not do flash cell wear leveling, you may have a chance with a badblocks-like method. With automatic wear leveling, there are no good blocks left for re-mapping and problems will get worse over time. One way or other, your device will be unreliable and you should backup your data and replace the phone.
There's a chance that your Jolla C firmware has lvm-tools installed. With tools like lvs
, pvs
and vgs
you can look up on which LV /dev/mmcblk0p28 is used, and find out whether a badblocks-like strategy may work there. Good luck.
This thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2017-06-29 21:02:36 +0200
Seen: 405 times
Last updated: Jun 30 '17
Reflash the phone. Total recovery?
What does "Reset device" actually do? [answered]
What features would you like to see in the future for Recovery Menu?
Make available OS images and flashing tools
Jolla shutdown and then it only looping boot [answered]
Repair service, Europe (How to repair my broken screen?)
I dropped my Jolla and the screen broke, what now? [duplicate]
Application (cutespotify) can brick device
I can run btrfs recovery is not in "fastboot mode"? [duplicate]
@4dmonster, you can use recovery mode for checking memory (option 4).
Asmir ( 2017-06-29 22:50:57 +0200 )editInfo: for booting Jolla C into Recovery shutdown the phone, press&hold volume up key, turn on the phone and see "bla-bla-bla 10.42.66.66". Now connect the phone to USB-port of notebook (or computer) with Linux (it's the simplest way), open Terminal and type "telnet 10.42.66.66", press Enter.
that checking doesn't help. It totally fails if bad blocks were used by files or do nothing useful as there is no errors unless bad blocks touched.
4dmonster ( 2017-06-29 22:56:28 +0200 )edit