{"id":2659,"date":"2016-10-07T11:20:05","date_gmt":"2016-10-07T11:20:05","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=2659"},"modified":"2016-10-07T11:46:55","modified_gmt":"2016-10-07T11:46:55","slug":"usb-drives","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/command-line\/file-system-command-line\/usb-drives","title":{"rendered":"USB Drives"},"content":{"rendered":"<h4>\nMount A USB Memory Stick \/ Drive<br \/>\n<\/h4>\n<h5>\nList available devices<br \/>\n<\/h5>\n<pre>\r\n<code>\r\nls -l \/dev\/disk\/by-uuid\/\r\n<\/code><\/pre>\n<p>\nSDA1 will be your USB memory stick (unless you have multiple). &nbsp;What it means:\n<\/p>\n<p style=\"margin-left: 40px;\">\nThe SD means SCSI device which also incoporates USB drives.<br \/>\nThe A means the 1st drive found (the next would be SDB, SDC, etc)<br \/>\nThe 1 means&nbsp;the&nbsp;first&nbsp;partition&nbsp;of the device (multiple partitions will give SDA2, SDA3, etc)\n<\/p>\n<h5>\nCreate a directory to assign it to and apply ownership of it<br \/>\n<\/h5>\n<p>\nNote that &quot;usb&quot; can be anything you want,\n<\/p>\n<p>\nsudo mkdir \/media\/usb sudo chown -R pi:pi \/media\/usb\n<\/p>\n<h5>\nMount the USB Drive<br \/>\n<\/h5>\n<pre>\r\n<code>\r\nsudo mount \/dev\/sda1 \/media\/usb -o uid=pi,gid=pi\r\n<\/code><\/pre>\n<p>\nYou can now access your drive using the path \/media\/usb\/\n<\/p>\n<h5>\nUn-mount the USB drive<br \/>\n<\/h5>\n<pre>\r\n<code>\r\nsudo umount \/media\/usb\r\n<\/code><\/pre>\n<p>\nE.g. if you want to remove it before the RPi is powered down\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mount A USB Memory Stick \/ Drive List available devices ls -l \/dev\/disk\/by-uuid\/ SDA1 will be your USB memory stick (unless you have multiple). &nbsp;What it means: The SD means SCSI device which also incoporates USB drives. The A means the 1st drive found (the next would be SDB, SDC, etc) The 1 means&nbsp;the&nbsp;first&nbsp;partition&nbsp;of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[133],"tags":[],"class_list":["post-2659","post","type-post","status-publish","format-standard","hentry","category-file-system-command-line"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=2659"}],"version-history":[{"count":2,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2659\/revisions"}],"predecessor-version":[{"id":2662,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2659\/revisions\/2662"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=2659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=2659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=2659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}