Escolar Documentos
Profissional Documentos
Cultura Documentos
# replace ampersands and preceding spaces with a # semicolons for sequential execution
to to to to
NAME" replacing yes NAME 1" replacing yes NAME 2" replacing yes NAME 3" replacing yes
[kyoto:~/Desktop] rds% sudo diskutil unmount /Volumes/NO\ NAME Volume /Volumes/NO NAME unmounted
OpenBSD and Xubuntu would use umount /[devicepath]. Using the block device reference to the X4SD slot, we can copy the card to a binary le using dd.
[kyoto:~/Desktop] rds% sudo dd if=/dev/disk1s1 of=sdcard.bin 1951677+0 records in 1951677+0 records out 999258624 bytes transferred in 1203.276878 secs (830448 bytes/sec)
1 of 2
03/26/2013 16:19
[kyoto:~/Desktop] rds% sudo dd if=sdcard.bin of=/dev/disk1s1 1951677+0 records in 1951677+0 records out 999258624 bytes transferred in 1203.276878 secs (830448 bytes/sec) [kyoto:~/Desktop] rds% cmp /dev/disk1s1 ~/Desktop/sdcard.bin [kyoto:~/Desktop] rds%
Here we write to all four slots simultaneously on a Xubuntu machine. It's feasible that using hubs and multiple X4SD, we could write to more than four cards at once on a machine with enough CPUs/CPU cores. However, there's a practical limit to the amount of I/O operations one would want to run at the same time. Perhaps writing to each bank of cards sequentially would be the best practice? Since I was only provided a single test unit, that remains an academic question.
rds@okinawa-lin2:~$ && dd if=sdcard.bin && dd if=sdcard.bin && dd if=sdcard.bin 1951677+0 1951677+0 999258624 1951677+0 1951677+0 999258624 1951677+0 1951677+0 999258624 1951677+0 1951677+0 999258624
sudo dd if=sdcard.bin of=/dev/sdc1 & \ of=/dev/sdd1 & \ of=/dev/sde1 & \ of=/dev/sdf1 &
records in records out bytes (999 MB) records in records out bytes (999 MB) records in records out bytes (999 MB) records in records out bytes (999 MB)
copied, 270.799 s, 3.7 MB/s copied, 423.987 s, 2.4 MB/s copied, 775.1 s, 1.3 MB/s copied, 860.479 s, 1.2 MB/s
Appendices
Determining Media Paths
Here's the abridged results of running mount on our various test systems with the X4SD plugged in and all four of its slot occupied. This output will look different based on what's connected to an individual system.
(local) (local) (local) (local) type type type type vfat vfat vfat vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks) (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks) (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks) (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)
Xubuntu Linux /dev/sdd1 on /media/BF2C-1214 /dev/sdf1 on /media/02A3-1214 /dev/sde1 on /media/3A3A-1214 /dev/sdc1 on /media/5AED-1214 Mac OS X /dev/disk2s1 /dev/disk4s1 /dev/disk3s1 /dev/disk1s1 on on on on /Volumes/NO /Volumes/NO /Volumes/NO /Volumes/NO
3 (local, nodev, nosuid) 2 (local, nodev, nosuid) (local, nodev, nosuid) 1 (local, nodev, nosuid)
OpenBSD okinawa-bsd2.my.domain 5.1 GENERIC.MP#207 amd64 Linux okinawa-lin2 3.2.0-39-generic #62-Ubuntu SMP Wed Feb 27 22:05:17 UTC 2013 i686 i686 i386 GNU/Linux Darwin kyoto 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
Copyright 2013 Synchrotech, all rights reserved. Synchrotech, a Division of Synchronized Technologies, Inc. http://www.synchrotech.com 3333 Wilshire Boulevard, Suite 806 Los Angeles, CA 90010 TEL: 213.368.3760 TEL USA: 800.793.9207 FAX: 213.368.3765
2 of 2
03/26/2013 16:19