{"id":348,"date":"2005-12-17T13:18:06","date_gmt":"2005-12-17T05:18:06","guid":{"rendered":""},"modified":"2010-06-25T11:55:07","modified_gmt":"2010-06-25T03:55:07","slug":"using_a_portable_hdd_under_linux","status":"publish","type":"post","link":"https:\/\/nick.onetwenty.org\/index.php\/2005\/12\/17\/using_a_portable_hdd_under_linux\/","title":{"rendered":"Using a portable HDD under Linux"},"content":{"rendered":"<p>I needed something to backup my thesis and collected reference papers (just in case something happens to them during the move back to Perth). I considered getting a DVD writer, a flash-based MP3 player, or a portable HDD.<\/p>\n<p>I wanted something that I could use to move stuff from place to play, so a DVD writer wasn&#8217;t really convenient. I didn&#8217;t think that I would use (any of) the extra features of the flash-based MP3 player and storage was fairly limited. So it was down to the Seagate 5GB Pocket Drive and a 20GB Pocket Drive from Dick Smith. Since the 20GB was only AU$20 more (at AU$197) I decided that it was much better &#8220;bang for buck&#8221;.<\/p>\n<p>Here are some photos of the unit with size comparison to standard (issue if you were in the US Airforce in the 80s) items:<\/p>\n<p><img src=\"https:\/\/i2.wp.com\/nick.onetwenty.org\/wp-content\/uploads\/b2evo\/pc170362.jpg?w=840\" border=\"0\" alt=\"\" data-recalc-dims=\"1\" \/><\/p>\n<p><img src=\"https:\/\/i1.wp.com\/nick.onetwenty.org\/wp-content\/uploads\/b2evo\/pc170363.jpg?w=840\" border=\"0\" alt=\"\" data-recalc-dims=\"1\" \/><\/p>\n<p>Anyhow, after I got the 20GB portable HDD I connected it to my machine (running Ubuntu) and expected it to &#8220;just work&#8221;&#8230; nothing happened. It wasn&#8217;t formatted, so I found the where plugdev connected the device:<\/p>\n<pre>\r\nls -la \/dev\/* | grep plugdev\r\n<\/pre>\n<p>I created a few partitions (one for Linux-only and one for Windows-also) using fdisk. The partition table now looks like this:<\/p>\n<pre>\r\nDisk \/dev\/sdb: 20.0 GB, 20000268288 bytes\r\n64 heads, 32 sectors\/track, 19073 cylinders\r\nUnits = cylinders of 2048 * 512 = 1048576 bytes\r\n\r\n   Device Boot      Start         End      Blocks   Id  System\r\n\/dev\/sdb1               1        4769     4883440   83  Linux\r\n\/dev\/sdb2            4770       19073    14647296    c  W95 FAT32 (LBA)\r\n<\/pre>\n<p>Finally I formatted the partitions to make them usable:<\/p>\n<pre>\r\nsudo mkfs.ext3 \/dev\/sdb1\r\nsudo mkdosfs -F32 \/dev\/sdb2\r\n<\/pre>\n<p><em>Updated: fixed mkdosfs command (thanks Steve!)<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I needed something to backup my thesis and collected reference papers (just in case something happens to them during the move back to Perth). I considered getting a DVD writer, a flash-based MP3 player, or a portable HDD. I wanted something that I could use to move stuff from place to play, so a DVD &hellip; <a href=\"https:\/\/nick.onetwenty.org\/index.php\/2005\/12\/17\/using_a_portable_hdd_under_linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Using a portable HDD under Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":67,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paLsRH-5C","_links":{"self":[{"href":"https:\/\/nick.onetwenty.org\/index.php\/wp-json\/wp\/v2\/posts\/348"}],"collection":[{"href":"https:\/\/nick.onetwenty.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nick.onetwenty.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nick.onetwenty.org\/index.php\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/nick.onetwenty.org\/index.php\/wp-json\/wp\/v2\/comments?post=348"}],"version-history":[{"count":1,"href":"https:\/\/nick.onetwenty.org\/index.php\/wp-json\/wp\/v2\/posts\/348\/revisions"}],"predecessor-version":[{"id":3930,"href":"https:\/\/nick.onetwenty.org\/index.php\/wp-json\/wp\/v2\/posts\/348\/revisions\/3930"}],"wp:attachment":[{"href":"https:\/\/nick.onetwenty.org\/index.php\/wp-json\/wp\/v2\/media?parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nick.onetwenty.org\/index.php\/wp-json\/wp\/v2\/categories?post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nick.onetwenty.org\/index.php\/wp-json\/wp\/v2\/tags?post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}