{"id":4869,"date":"2015-04-14T13:49:46","date_gmt":"2015-04-14T13:49:46","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=4869"},"modified":"2015-04-14T13:49:46","modified_gmt":"2015-04-14T13:49:46","slug":"encrypt-usb-stick-linux","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2015\/04\/encrypt-usb-stick-linux\/","title":{"rendered":"How to Encrypted Your USB Stick For Ubuntu Linux"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/luks-encryption.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/luks-encryption.png\" alt=\"luks-encryption\" width=\"245\" height=\"245\" class=\"alignleft size-full wp-image-4870\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/luks-encryption.png 245w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/luks-encryption-150x150.png 150w\" sizes=\"auto, (max-width: 245px) 100vw, 245px\" \/><\/a><\/p>\n<p>If you have an USB flash drive or USB partition only for use in Linux computers, it&#8217;s easy to add a password protect to the drive or partition via <a href=\"http:\/\/en.wikipedia.org\/wiki\/Linux_Unified_Key_Setup\" target=\"_blank\">LUKS<\/a>+EXT4 in Ubuntu Linux using the default Disks utility. And below is the how-to.<\/p>\n<p><b><i>Before getting started, you have to backup date from the USB flash driver or the partition.<\/i><\/b><\/p>\n<p><b>1.<\/b> Search for and install <b>cryptsetup<\/b> package in Ubuntu Software Center to add disk encryption support to the default Gnome Disks utility.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/disk-encryption-support.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/disk-encryption-support.jpg\" alt=\"disk-encryption-support\" width=\"580\" height=\"178\" class=\"aligncenter size-full wp-image-4871\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/disk-encryption-support.jpg 580w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/disk-encryption-support-300x92.jpg 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><\/p>\n<p><b>2.<\/b> Launch the <b>Disks<\/b> utility from the Unity Dash or Application Menu. Plug in your USB flash drive and you will see it in the left pane.<\/p>\n<p>To encrypt the drive, first highlight the partition and click the icon on the left of minus sign to <b>unmount<\/b> it. (In the case below, I&#8217;m going to unmount the 1.7GB partition)<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/unmount-usb-stick.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/unmount-usb-stick.jpg\" alt=\"unmount-usb-stick\" width=\"580\" height=\"369\" class=\"aligncenter size-full wp-image-4872\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/unmount-usb-stick.jpg 580w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/unmount-usb-stick-300x190.jpg 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><\/p>\n<p><b>3.<\/b> Click the gear icon and select <b>Format &#8230;<\/b><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/format-usb-stick.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/format-usb-stick.jpg\" alt=\"format-usb-stick\" width=\"580\" height=\"369\" class=\"aligncenter size-full wp-image-4873\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/format-usb-stick.jpg 580w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/format-usb-stick-300x190.jpg 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><\/p>\n<p><b>4.<\/b> On next window, select encryption type &#8220;Encrypted, compatible with Linux systems (LUKS + EXT4)&#8221; from the drop-down list, type in a drive\/partition name, and set your password.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/encrypt-usb-stick.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/encrypt-usb-stick.jpg\" alt=\"encrypt-usb-stick\" width=\"582\" height=\"384\" class=\"aligncenter size-full wp-image-4874\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/encrypt-usb-stick.jpg 582w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/encrypt-usb-stick-300x197.jpg 300w\" sizes=\"auto, (max-width: 582px) 100vw, 582px\" \/><\/a><\/p>\n<p>That&#8217;s it. Next time you plug in the USB stick, you should be asked to input password to get access the partition.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/encrypted-usb-stick.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/encrypted-usb-stick.jpg\" alt=\"encrypted-usb-stick\" width=\"600\" height=\"317\" class=\"aligncenter size-full wp-image-4875\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/encrypted-usb-stick.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/04\/encrypted-usb-stick-300x158.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>If you have an USB flash drive or USB partition only for use in Linux computers, it&#8217;s easy to add a password protect to the drive or partition via LUKS+EXT4 in Ubuntu Linux using the default Disks utility. And below is the how-to. Before getting started, you have to backup date from the USB flash [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1263],"class_list":["post-4869","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-encrypted-usb-flash-drive"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/4869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=4869"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/4869\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=4869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=4869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=4869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}