Skip to main content

USB Flash Drives RAID 0 on Linux - Pair of SanDisk Ultra 32gb CZ48 USB 3.0

Gear Review

Linux RAID 0 on USB Flash Drives

*Doubling Speed and Storage with Off-the-Shelf USBs*

2
Drives
64
GB Array
RAID
0
~50%
Read Increase
Section I

Introduction: The Quest for USB RAID

I was able to create a Linux RAID 0 Array with two (2) SanDisk 32gb Ultra USB 3.0 Flash Drives. I opted for RAID 0 - Striping as it would give me one logical 64gb Drive with theoretically 'double' the speed.

Due to the Linux Test Machine having only USB 2.0 ports, the theoretical maximum it could achieve is limited by USB 2.0 max speed of 480mbits/sec (roughly 60mb/sec).

 

Section II

Building the RAID 0 Array

Initial Setup & Single Drive Performance

Initial test of a Single USB Flash Drive showed a 30mb/sec Read Speed.

To begin, I installed mdadm, which was conveniently located in the Ubuntu Software Center. I reviewed other users' guides, and none worked exactly as described. However, after reviewing each one, I was able to piece together the necessary terminal commands and steps to take.

 

Steps Taken to Create RAID 0
  • sudo -s — Enter Superuser mode
  • Enter Admin Password — Provide administrative credentials
  • mdadm -Cv /dev/md0 -l0 -n2 /dev/sdc /dev/sdd — Create the RAID 0 array
  • mke2fs /dev/md0 — Format the new RAID array with ext2 filesystem
  • mount /dev/md0 /mnt/samsung — Mount the array to a designated directory

I also had to mess around in disks to get things to work. Afterward, I renamed the Lost+Found folder to 'USB Files' as that was the only folder that allowed me to edit data on the new RAID Array.

Section III

Performance Benchmarks

RAID 0 Array Performance

The RAID 0 array did improve speeds by 50% on READ, achieving 46mb/sec. This might be the most I can expect on USB 2.0 ports. On a USB 3.0 machine, I anticipate a more significant boost; I was experiencing about 75mb/sec READ on a Windows PC with USB 3.0 ports, and it might enjoy 150mb/sec+ if that were a Linux machine!

Benchmark Results Comparison

I tried the Disks Utility - Benchmark and it gave me these results:

ConfigurationObserved Read SpeedObserved Write SpeedAvg Access Time
Single USB Flash Drive30 MB/sN/AN/A
RAID 0 Array (Actual)46 MB/sN/AN/A
RAID 0 Array (Benchmark)70 MB/s20 MB/sN/A
Laptop HDD (Benchmark)47 MB/sN/AN/A
Single USB Drive (Benchmark)~30 MB/s~6 MB/sBetter than RAID
I'm skeptical of the 70mb/sec READ speed from the Disk Utility benchmark as I was only able to get at most 54mb/sec in actual transfers. However, the WRITE speed seems reasonable and I did observe that on actual file transfers.

Another possibility of why I'm not observing 70mb/sec READ speeds is maybe the laptop's HDD is the bottleneck? The WD 250gb HDD is giving me about 47mb/sec which is what I was observing in the data transfer from the RAID USBs. The RAID improved the READ speed, however...interestingly the Avg Access Time is better on the single USB Flash Drive vs. the RAID.

  

Section IV

Conclusion: Practicality and Future Thoughts

The plus-side, I now have a logical 64gb USB Flash Drive and don't feel 'as bad' in buying two (2) 32gb drives...when I should have gotten another bad-ass 64gb CZ80 Extreme. To make it even better...this running RAID 0 makes it technically faster than the a single CZ80 could have ever been in a USB 2.0 port. And perhaps make it on par in READ speed at least on a USB 3.0 port.

This isn't practical at the moment. One technical problem I haven't figured out is how to automatically get the RAID Array identified and mounted properly without having to manually access it in the DISKS utility. If that were automated and allowed the USB Flash Drives to instantly build the RAID Array mount, that would be awesome.

The other downside...the USB Flash Drives must work as a pair and on a Linux Environment that can recognize them. Maybe that's okay as I'll only use these in the Lab.

Happy to have experimented with this unique storage setup!

Comments

Popular posts from this blog

Sony MDR-ZX100 vs ZX-110 vs ZX-310 Series Headphones

Gear Review Budget Audio Face-off: Sony ZX Series Review Comparing the ZX-100, ZX-110, and ZX-310 for your everyday carry ~3 Models ~$10–$20 Price 2.5+ Years Longevity Table of Contents ① Build Quality ② Cost Comparison ③ Sound Quality ④ Overall Value ⑤ Upgrade Path Section I Build Quality The Sony ZX series headphones primarily feature a durable plastic construction. My ZX-100 has lasted over 2½ years, enduring countless tosses into my backpack and car without any issues. However, the lower-end ZX-100 and ZX-110 models have a significant downside: poor-quality earpads.   The Earpad Problem Over time, the earpads on the ZX-100 and ZX-110 disintegrate, leaving vinyl flakes that stick to your hair and ears. The ZX-310 comes with upgraded earpads that don't suffer from this problem — a clear win in the build department. Tip: If your earpads start to flake, it is a sign of material degradation; consider replacing the cushions or upgrading to a model with more durable synthetic lea...

Casio G-Shock 5600 vs 6900 vs 9000

Gear Review Finding the Perfect Fit: My G-Shock Journey A deep dive into balancing form, function, and wrist presence. 4 Models Tested 2 Favorite Series 1 Non-negotiable Feature Table of Contents ① The Quest for Size ② Best Compromise: G9000 Mudman Series ③ Feature Needs: G/GW vs DW ④ The Lineup: Models at a Glance ⑤ Final Verdict: 5600 Wins Section I The Quest for Size After trying out several G-Shock models, I've developed a better sense of the specific features and design elements I appreciate most. While features are always a plus, my main priority is size. Here's how some of the models I've tried stack up. 5600 Series For overall size, the 5600 series stands out as a favorite due to its compact, comfortable form. It's slim, lightweight, and fits well on my wrist without being too bulky. Although the 6900 series provides the benefit of a well-placed front illumination button, the 5600 remains the ideal size for everyday wear.   Section II Best Compromise: G900...

Casio MTD 1010 the $30 Submariner Homage

Diver-Style Watches  ·  Budget Horology Casio MTD-1010 Oyster Quartz  ·  Ref. MTD-1010-1AV The Best Budget Submariner Homage $30 eBay Price 41.5mm Case Size 10 ATM Water Resistance 20mm Lug Width If you're on the hunt for an affordable watch that channels the classic diver aesthetic of the Submariner, look no further than the Casio MTD-1010. Priced at around $30 on eBay, this model offers incredible value for anyone who loves a good deal.   Table of Contents ① Affordable Elegance ② Function Over Frills ③ Best Bang for Your Buck ④ Specs & Practical Tips Section I Affordable Elegance The MTD-1010 strikes a bala...