{"id":2040,"date":"2009-02-21T14:32:42","date_gmt":"2009-02-21T14:32:42","guid":{"rendered":"http:\/\/www.ni0l.com\/?p=2040"},"modified":"2009-02-21T14:32:42","modified_gmt":"2009-02-21T14:32:42","slug":"how-to-mount-a-network-drive-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.n0zb.com\/index.php\/2009\/02\/21\/how-to-mount-a-network-drive-in-ubuntu\/","title":{"rendered":"How-to: Mount a Network drive in Ubuntu"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/www.ni0l.com\/pictures\/ubuntu-logo.jpg\" class=\"alignleft\" width=\"129\" height=\"118\" \/> Ubuntu is a great distribution of linux &#8211; setup is quick and painless.  However, mounting network drives can sometimes get tricky.  Here is a great reference to get through it.<\/p>\n<p>From the blog <a href=\"http:\/\/www.automaticable.com\/2008-01-18\/how-to-mount-a-network-drive-in-ubuntu\/\">Automaticable<\/a>:<\/p>\n<p>#1 First you will need to install the \u201csmbfs\u201d package. This is what we will use to mount the drive.<\/p>\n<p>    sudo aptitude install smbfs<\/p>\n<p>#2 We will also need a folder to mount the drive in. I used \/media\/public.<\/p>\n<p>    sudo mkdir \/media\/public<\/p>\n<p>#3 Then, we need to edit \/etc\/fstab. This is where we add all the information needed to find and mount the drive. Open \/etc\/fstab using the command:<\/p>\n<p>    gksudo gedit \/etc\/fstab<\/p>\n<p> At the end of the file add the following lines:<\/p>\n<p>     Mount our network drive<br \/>\n    \/\/SERVER\/SHARE \/MOUNT-POINT smbfs guest 0 0<\/p>\n<p>Where \u201cSERVER\u201d is the name of your drive on the network. This can be either a name or IP address. For example, mine was \u201cMAXTOR\u201d. Replace \u201cSHARE\u201d with the folder in the drive you\u2019d like to mount\u2013 mine was \u201cPublic\u201d. \u201cMOUNT-POINT\u201d is the directory we created earlier, such as \u201c\/media\/public\u201d. The rest of the parameters have to do with permissions, and also where you can add advanced options. For more information on the advanced preferences, see<\/p>\n<p>    man mount.smbfs<\/p>\n<p>#4 The final step is to tell the system to reload \/etc\/fstab and mount our drive. Do this with the command:<\/p>\n<p>    sudo mount -a<\/p>\n<p>Then, you\u2019re done! At this point you should be able to see the files in your drive with the command<\/p>\n<p>    ls \/MOUNT-POINT<\/p>\n<p>More info <a href=\"https:\/\/wiki.ubuntu.com\/MountWindowsSharesPermanently\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu is a great distribution of linux &#8211; setup is quick and painless. However, mounting network drives can sometimes get tricky. Here is a great reference to get through it. From the blog Automaticable: #1 First you will need to install the \u201csmbfs\u201d package. This is what we will use to mount the drive. sudo &hellip; <a href=\"https:\/\/www.n0zb.com\/index.php\/2009\/02\/21\/how-to-mount-a-network-drive-in-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How-to: Mount a Network drive in Ubuntu&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[5],"tags":[148],"class_list":["post-2040","post","type-post","status-publish","format-standard","hentry","category-computers","tag-linux"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9vUOZ-wU","jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.n0zb.com\/index.php\/wp-json\/wp\/v2\/posts\/2040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.n0zb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.n0zb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.n0zb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.n0zb.com\/index.php\/wp-json\/wp\/v2\/comments?post=2040"}],"version-history":[{"count":0,"href":"https:\/\/www.n0zb.com\/index.php\/wp-json\/wp\/v2\/posts\/2040\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.n0zb.com\/index.php\/wp-json\/wp\/v2\/media?parent=2040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.n0zb.com\/index.php\/wp-json\/wp\/v2\/categories?post=2040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.n0zb.com\/index.php\/wp-json\/wp\/v2\/tags?post=2040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}