Are there any SD Card diagnostic utility programs out there for Ubuntu? I would like to run tests on my SD card to check capacity, write speed etc. I have one for windows but I am looking for a Linux flavor and hope to find some source code.
4 Answers
Look for Disk Utility on you dash (as an option press Alt+F2 and type palimpsest)
Click on the disk you want information from, to test it click on Benchmark
To start benchmark, select Read only or Read/Write benchmark
- 74,785
For Ubuntu 13.04 and later...
From the dash
From the command line
gnome-disks
Usage
Select the disk you wish to test.
Find the menu in the top right and select Benchmark...
A window will appear. Click Start Benchmark... to see:
I left the defaults and clicked Start Benchmarking.... It will run for a while, building the chart over time.
You can see that my new SD card's read rate is around 7 MB/s, while the write rate is only slightly over 2 MB/s.
The model shown here is a SanDisk Ultra SDXC with an advertised speed of up to 30 MB/s. As you can see, the transfer rate is not as advertised.
- 5,888
Reported Capacity
$ df -h /media/sdcard
Real capacity and write speed
$ dd if=/dev/zero of=/media/sdcard/testfile bs=10M
1xx+0 records in 1xx+0 records out 9xx bytes (9.4 GiB) copied, 34.xx seconds, 271 MB/s
dd will fill up all the space. Remove the testfile afterwards.
- 6,912
- 3,424
There is also f3 (Repository, doc), that specifically aims at detecting fraudulent cards (f3 stands for "fight flash fraud").
It was suggested here first.
- 456
dfwill reveal the capacity reported by the SD card, but that may not be the true capacity.dd if=/dev/nulldoes nothing because/dev/nullis always empty. I think you meandd if=/dev/zero. – Zaz Sep 05 '14 at 20:53cat /dev/zero > /media/sdcard/testfile– Zaz Sep 05 '14 at 21:06