- DISCLAIMER: this guide is provided here only "just for fun" for experimental, research and educational purposes without any guarantees (or warranties, responsibilities, obligations, liabilities etc.; even no repeatability guaranteed, as this guide has been based solely on just one particular specimen device, sorry), so use it at your own risk (even more, the so-called "reverse engineering" can possibly be illegal in some areas);
- ATTENTION (DANGER): it can result in an irreversible destruction of ALL or ANY data stored on the target device (including the loss of important metadata like device usage statistics, but it's not wise to hope it will heal / recover / restore any worn-out memory blocks / chips or make the device good as new in performance) and, in theory, on some other storage devices -- please back up ALL the valuable data FIRST;
- CAUTION: it may even brick your device;
- WARNING: moreover, it may void the warranty, if any.
- Feel safe & free to enjoy! ;-)
Software & hardware info, reviews, notes, tutorials, FAQs and HOWTOs...
Having fun is mandatory!
Showing posts with label drive. Show all posts
Showing posts with label drive. Show all posts
2014-07-01
Hints: how to upgrade customized Micron C400 SSDs to the latest generic firmware version
Important notes:
2014-06-10
HOWTO: work around SATA HDD hotplug problem (in Linux)
Sometimes some SATA controllers do not recognize an attached HDD if it was hot-plugged after the Linux system has been booted. Fortunately, there're some simple workarounds (note: it should work for some PATA controllers too).
---
Last updated: 2014-06-20
- A standard "soft" solution (should work by default):
- Connect the HDD to the SATA controller (and make sure it doesn't get auto-recognized by the system).
- Force a rescan of SCSI buses:
# for h in /sys/class/scsi_host/host*/scan; do echo "- - -" > $h; done - Ensure the drive has been recognized (check the
dmesglogs, runlsblketc.) and enjoy it!
- A more "aggressive" method
(note: some old SATA controller made by VIA Technologies and managed bysata_viakernel driver is used here for sample purposes; should work with any recent 2.6+ Linux kernel versions):- To prevent any data loss, flush caches & unmount all the mounted partitions for all the drives connected to any VIA SATA controller(s) installed on the affected system!
- Remove the kernel driver module (verbosity is helpful sometimes):
# modprobe -v -r sata_via - Physically attach (or detach) any drives to the VIA SATA controller.
- Re-insert the kernel module:
# modprobe -v sata_via - Enjoy!
---
Last updated: 2014-06-20
2013-01-06
HOWTO: stress-test a USB flash drive for bad blocks in Linux
Once upon a time you may like to test your USB flash drive [or maybe a SATA HDD, who knows] for bad blocks.
First of all, backup all the data stored on the target drive;
then you should unmount any mounted partitions located on that drive:
Then you can begin the tests (CAUTION: these tests will destroy all the stored data on the tested drive).
You can use
or with pseudorandom data:
and it will stop unexpectedly on a bad block.
And there's also a little more handy utility called
It will sequentially fill the entire
References:
First of all, backup all the data stored on the target drive;
then you should unmount any mounted partitions located on that drive:
# umount /dev/sdz1
You can use
dd utility to fill the drive with zeros:# dd if=/dev/zero of=/dev/sdz
# dd if=/dev/urandom of=/dev/sdz
And there's also a little more handy utility called
badblocks:# badblocks -wso /tmp/badblocks.log /dev/sdz
/dev/sdz device with some patterns (0xAA, 0x55, 0xFF, 0x00), then read and compare the read data with an actual pattern. A list of bad blocks will be written to /tmp/badblocks.log file.References:
Subscribe to:
Posts (Atom)