<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><div class="ecxgmail_extra">on the xo-4 and intel I use the following to get storage devices</div></div><div class="ecxgmail_extra"><br></div><div class="ecxgmail_extra">ls -lav /dev |grep brw| grep disk| gawk 'NR==1' |gawk --field-separator=' ' '{ print $10 }'</div><div class="ecxgmail_extra"><br></div><div class="ecxgmail_extra">but on rpi2 this yields</div><div class="ecxgmail_extra"><br></div><div class="ecxgmail_extra"><div class="ecxgmail_extra">brw-rw---- 1 root disk 7, 0 Mar 8 18:30 loop0</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 7, 1 Dec 31 1969 loop1</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 7, 2 Dec 31 1969 loop2</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 7, 3 Dec 31 1969 loop3</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 7, 4 Dec 31 1969 loop4</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 7, 5 Dec 31 1969 loop5</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 7, 6 Dec 31 1969 loop6</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 7, 7 Dec 31 1969 loop7</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 179, 0 Dec 31 1969 mmcblk0</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 179, 1 Dec 31 1969 mmcblk0p1</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 179, 2 Dec 31 1969 mmcblk0p2</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 179, 3 Dec 31 1969 mmcblk0p3</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 0 Dec 31 1969 ram0</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 1 Dec 31 1969 ram1</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 2 Dec 31 1969 ram2</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 3 Dec 31 1969 ram3</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 4 Dec 31 1969 ram4</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 5 Dec 31 1969 ram5</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 6 Dec 31 1969 ram6</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 7 Dec 31 1969 ram7</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 8 Dec 31 1969 ram8</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 9 Dec 31 1969 ram9</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 10 Dec 31 1969 ram10</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 11 Dec 31 1969 ram11</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 12 Dec 31 1969 ram12</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 13 Dec 31 1969 ram13</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 14 Dec 31 1969 ram14</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 1, 15 Dec 31 1969 ram15</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 8, 0 Dec 31 1969 sda</div><div class="ecxgmail_extra">brw-rw---- 1 root disk 8, 1 Dec 31 1969 sda1</div><div><br></div><div>is there a reliable algorithm to identify sd cards, usb thumb drives or hdd drives?</div></div> </div></body>
</html>