-   Linux - Newbie (
-   -   mount network hardisk (

jibtga 08-17-2012 02:12 PM

mount network hardisk

I have two pc (ubuntu). One of them has mount extenal (ntfs) hardisk. I'd like mount this external unit on the other pc too (network unit). Any help?

Thanks in advance.

TroN-0074 08-17-2012 02:39 PM

This are the instructions from the Raspberry PI support site
start by saving the default file

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.old
edit the Samba configuration file

sudo nano /etc/samba/smb.conf
Search for the section marked ##### Authentication #####
Change the text

#  security = user

  security = user
Search for the section starting [homes]
In the [homes] section, change from

read only = yes

read only = no
On another terminal create a directory to mount your external

Create a directory to store public files
sudo mkdir /home/shares
sudo mkdir /home/shares/public
sudo chown -R root:users /home/shares/public
sudo chmod -R ug=rwx,o=rx /home/shares/public

Mount your external Hard drive to that directory

sudo mount /dev/sdxx /home/shares/public/disk1
At the end of the SAMBA configuration file add the lines

  comment = Public Storage
  path = /home/shares/public
  valid users = @users
  force group = users
  create mask = 0660
  directory mask = 0771
  read only = no

Save the edited file

Press Control-X
Press y
Press [enter]

on the other terminal add your samba user

sudo smbpasswd -a youruser
type the password twice

Re start SAMBA

sudo /etc/init.d/samba restart
From your samba client open up a file browser and browse the network drives
your user will be the user in your samba client and the password you just set.

I just did these steps and it is working for me the link I posted on the beginning of this post has more screen shots and more explanations on the topic

Good luck to you.

schneidz 08-17-2012 02:42 PM

i would look into sshfs.

jefro 08-17-2012 04:36 PM

For a basic statement, a drive internal or external to a computer by any non-tcp/ip connection could be shared by some means.

Samba/cifs is a common way.

There are many other ways to access resources too.

Ftp, tftp, http, https, iscsi, nfs webdav and maybe a few other common ways.

Usually the way you need to use the data is part of the clue as to choice.

All times are GMT -5. The time now is 07:55 AM.