I have a USB stick that's showing some weird problems. I'd like to create a number of partitions (3?) and use RAID over those partitions to ensure resilience to failure. Is this a good idea? How do I do this in Linux?
RAID on USB stick
linux;raid
This should not be difficult. You create three partitions (make sure they have a 1 MiB alignment or what your erase block size is) and combine them afterwards:mdadm --create /dev/md5 --metadata=1.1 --raid-devices=3 --level=mirror \  --bitmap=internal --assume-clean /dev/sdx1 /dev/sdx2 /dev/sdx3And to use it:mdadm --assemble /dev/md5 /dev/sdx1 /dev/sdx2 /dev/sdx3In order to reduce the write accesses you may put the write intent bitmap on a different device. If you are sure that the MD device will always be stopped cleanly then you may omit the bitmap.