LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount network hardisk (https://www.linuxquestions.org/questions/linux-newbie-8/mount-network-hardisk-4175422647/)

jibtga 08-17-2012 02:12 PM

mount network hardisk
 
Hi

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 http://elinux.org/R-Pi_NAS
start by saving the default file
Code:

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

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

#  security = user
to
Code:

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

read only = yes
to
Code:

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

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
Code:

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

[public]
  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
Code:

Press Control-X
Press y
Press [enter]

on the other terminal add your samba user
Code:

sudo smbpasswd -a youruser
type the password twice

Re start SAMBA
Code:

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 02:16 PM.