LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
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.
 
Old 08-17-2012, 01:39 PM   #2
TroN-0074
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 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.
 
Old 08-17-2012, 01:42 PM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,133

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
i would look into sshfs.
 
Old 08-17-2012, 03:36 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,676

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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