Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-17-2012, 01:12 PM   #1
LQ Newbie
Registered: Jun 2012
Posts: 16

Rep: Reputation: Disabled
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.
Old 08-17-2012, 01:39 PM   #2
Senior Member
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
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.
Old 08-17-2012, 01:42 PM   #3
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
i would look into sshfs.
Old 08-17-2012, 03:36 PM   #4
Registered: Mar 2008
Posts: 21,963

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount virtualbox hardisk to ramdisk problem shogun1234 Linux - Virtualization and Cloud 1 11-28-2011 05:37 PM
External Hardisk mount nirmit Linux - Server 2 05-14-2008 09:06 AM
How to mount USB hardisk? cn_chopsticks Linux - Newbie 10 05-22-2005 04:03 PM
How to mount USB hardisk? cn_chopsticks Linux - Software 5 05-22-2005 01:55 AM
How to mount HFS+ (journaled) hardisk? carboncopy Slackware 12 12-01-2004 10:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration