{"id":119,"date":"2006-12-03T15:05:48","date_gmt":"2006-12-03T13:05:48","guid":{"rendered":"http:\/\/jerome.harckmans.be\/?p=119"},"modified":"2006-12-03T15:05:48","modified_gmt":"2006-12-03T13:05:48","slug":"new-lacie-hard-drive","status":"publish","type":"post","link":"https:\/\/jerome.harckmans.be\/?p=119","title":{"rendered":"New Lacie Hard Drive"},"content":{"rendered":"<p>I finally received my new external hard drive:<\/p>\n<p><a href=\"http:\/\/www.flickr.com\/photos\/97056403@N00\/312814444\/\" class=\"tt-flickr\"><img loading=\"lazy\" src=\"http:\/\/static.flickr.com\/115\/312814444_bdbdbb25b6_m.jpg\" alt=\"Lacie Porsche 320GB\" width=\"240\" height=\"180\" border=\"0\" \/><\/a> <a href=\"http:\/\/www.flickr.com\/photos\/97056403@N00\/312814442\/\" class=\"tt-flickr\"><img loading=\"lazy\" src=\"http:\/\/static.flickr.com\/111\/312814442_9de0e5b725_m.jpg\" alt=\"Lacie Porsche 320GB\" width=\"240\" height=\"180\" border=\"0\" \/><\/a><\/p>\n<p>As I was getting short on space on my internal drive (83GB dedicated to \/home), I ordered a Lacie Porsche 320GB USB2.0 hard drive on <a href=\"http:\/\/www.pixmania.com\">Pixmania<\/a> (the lowest price I found on the web). I received it some days later.<\/p>\n<p>Although Linux is not supported according to the requirements, it worked like a charm once connected to an USB slot. Lacie drives are per default formatted in FAT, which is nice if you want to share your disk between window$ and Linux\/Mac\/*nix.<\/p>\n<p>But I rapidly reformatted it like that:<\/p>\n<div class=\"coding\">\n<pre>\n# fdisk \/dev\/sdc\n...\n(p to print the partition table)\n...\n     Device Boot      Start         End      Blocks   Id  System\n\/dev\/lacie1               1       37082   297861133+  83  Linux\n\/dev\/lacie2           37083       38913    14707507+  83  Linux\n<\/pre>\n<\/div>\n<p>One big partition (~300GB) formatted in ext3 journaled system, and a small one (~15GB) which I still have to format in FAT.<\/p>\n<p>Here are some advantages of that way of formatting if you are using Linux:<\/p>\n<ul>\n<li>ext3 allows you to store files bigger than 4GB (DVD iso image, &#8230;), where FAT doesn&#8217;t.<\/li>\n<li>ext3 is not subject to fragmentation. FAT is!<\/li>\n<li>I mainly use this disk under Linux, to store backups, etc. Ext3 allows me to keep file permissions as on my system. FAT doesn&#8217;t&#8230;<\/li>\n<li>FAT is a window$ format&#8230; And as you know, window$ sucks!<\/li>\n<\/ul>\n<p>However, I have kept some room for a FAT partition in order to transfer big files from windows to Linux and vice versa (some friends and family are still using windows).<\/p>\n<p>The next thing I had to do was to configure udev to automatically populate <strong>\/dev<\/strong> with <strong>lacie1<\/strong> and <strong>lacie2<\/strong> (corresponding to the two partitions), instead of the defaults sd*. That way, I can always access my drive with the same path, whatever the devices already connected (USB keys, camera, &#8230;). To do that, I created a new <strong>\/etc\/udev\/rules.d\/20-lacie.rules<\/strong> file:<\/p>\n<div class=\"coding\">\nBUS==&#8221;usb&#8221;, KERNEL==&#8221;sd*&#8221;, SYSFS{idVendor}==&#8221;059f&#8221;, SYSFS{idProduct}==&#8221;0651&#8243;, NAME=&#8221;lacie%n&#8221;\n<\/div>\n<p>The idVendor and idProduct data can be found using <strong>lsusb<\/strong>. Adding the appropriate rule in <strong>\/etc\/fstab<\/strong> is the final step:<\/p>\n<div class=\"coding\">\n<pre>\n\/dev\/lacie1     \/mnt\/lacie     ext3     auto,user     0 0\n<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I finally received my new external hard drive: As I was getting short on space on my internal drive (83GB dedicated to \/home), I ordered a Lacie Porsche 320GB USB2.0<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,6],"tags":[],"_links":{"self":[{"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/posts\/119"}],"collection":[{"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=119"}],"version-history":[{"count":0,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions"}],"wp:attachment":[{"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}