{"id":7340,"date":"2015-01-12T00:28:40","date_gmt":"2015-01-11T15:28:40","guid":{"rendered":"https:\/\/the-world-star.com\/?p=7340"},"modified":"2026-11-28T17:43:19","modified_gmt":"2026-11-28T08:43:19","slug":"sharing-a-fat32-usb-hard-drive-over-samba-on-an-ubuntu-server","status":"publish","type":"post","link":"https:\/\/the-world-star.com\/en\/server\/sharing-a-fat32-usb-hard-drive-over-samba-on-an-ubuntu-server-7340\/","title":{"rendered":"Sharing a FAT32 USB Hard Drive Over Samba on an Ubuntu Server"},"content":{"rendered":"<p>My router broke, so I bought a replacement without thinking\u2014only to realize it didn&#039;t have a USB port! Suddenly, my network HDD, which I used for backing up smartphone photos and more, was out of commission. This is super inconvenient! Should I buy another router? Before doing that, I decided to build an Ubuntu server to do the exact same thing! So, I&#039;ve been tinkering with it for fun. Once I get bored of playing around with it, I&#039;ll probably buy a new router.<br \/>\nThe machine I&#039;m using is an EeePC 901 netbook. It&#039;s got an SSD, runs quietly, and makes for a great little setup.<strong>[The Pitfalls]<\/strong>The hard drive I used (which I&#039;ve been using all this time) connects via USB and is formatted in FAT32. Since copying huge video files over the network is painfully slow\u2014you really have to plug it directly into the PC\u2014FAT32 works best for my needs. However, this FAT32 filesystem turned out to be the main problem.<strong>The FAT32 format itself was the issue.<\/strong>After mounting the drive, installing Samba via the GUI, and setting up file sharing just like you would in Windows Explorer, everything seemed easy, but I couldn&#039;t write any files to it. It took me a while to figure out why: because it&#039;s FAT32, individual file permissions cannot be set, nor can they be changed...<br \/>\nThe key lies in the mount options.<br \/>\nSince it&#039;s on a local network, I used &quot;umask=000&quot; for full access. (If that didn&#039;t work out, &quot;022&quot; was another option). This was the culprit.<br \/>\nAnother crucial thing is setting the owner and group: &quot;uid=1000,gid=1000&quot;, matching the ID I normally use to log into Ubuntu.<br \/>\nSo, I ended up with something like this.<strong>[\/etc\/fstab]<\/strong>&quot;UUID=0128-FB77 \/home\/nethdd vfat users,suid,dev,exec,rw,uid=1000,gid=1000,umask=000,utf8,auto,async 0 0&quot;<br \/>\nAs for &quot;UUID=0128-FB77&quot;\u2014figuring out how to get the device ID was a bit tricky, though I&#039;ve forgotten how I did it now.<br \/>\nThere&#039;s plenty of information out there, so just Google it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My router broke, so I bought a replacement without thinking\u2014only to realize it didn&#039;t have a USB port! Suddenly, my network HDD, which I used for backing up smartphone photos and more, was out of commission. This is super inconvenient! Should I buy another router? Before doing that, I decided to build an Ubuntu server [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2137,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"https:\/\/175.41.248.22\/uncategorized\/ubuntu%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%80%80fat32%e3%81%aeusb%e3%81%aehdd%e3%81%aesamba%e3%81%a7%e3%81%ae%e5%85%ac%e9%96%8b-1312\/","_lightning_design_setting":{"layout":"default"},"footnotes":""},"categories":[3],"tags":[137,139,140,1457,1458,67,134,135,136],"class_list":["post-7340","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-samba","tag-vnc","tag-listen","tag-port-check","tag-router","tag-server","tag-ubuntu","tag-fat32","tag-smb","en-US"],"_links":{"self":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/7340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/comments?post=7340"}],"version-history":[{"count":1,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/7340\/revisions"}],"predecessor-version":[{"id":7341,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/7340\/revisions\/7341"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/media\/2137"}],"wp:attachment":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/media?parent=7340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/categories?post=7340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/tags?post=7340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}