Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] Samba for External HD
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: Samba for External HD
13th May, 2015, 11:48 PM (This post was last modified: 23rd May, 2015 01:05 AM by deHakkelaar.)
Post: #2
deHakkelaar Offline
Administrator
******
Posts: 360
Joined: Dec 2012
Reputation: 23
RE: Samba for External HD
Hi gigles13 and welcome.
Its a bit too much your asking.
If not a little bit familiar with Linux, its like a daunting task explaining the steps in details that you have to take.
You cant take out the SD and plug it in your Mac because the SD is formatted with the BTRFS filesystem that your Mac wont be able to read without additional software to support BTRFS.
But you hardly remove your SD from the Pi anyway unless its absolutely necessary (major filesystem crash for example).

As Samba, the Linux software for making windows type of shares available on your network, is already installed and running, it shouldnt be that hard if know a little bout Linux.
Steps you have to take:
1) Connect from Mac to your Pi with an SSH client (the command line thingy);
2) Become the 'root' user so you can manipulate system services (command "su -");
3) Determine mount point on your Pi filesystem for your USB hard drive when it is connected (the "mount" command);
4) Configure Samba to share this mount point (command "nano /etc/samba/shares.conf").

Changes in that "shares.conf" file are almost instant (close all connections and wait a minute to be sure).
And you can copy/paste/alter one of the existing shares in that "shares.conf" file for your purpose first before try to secure that share with a username/pass.
Below some useful BASH commands when connected via SSH:

- Monitor Samba status (CTRL-c to exit):
watch smbstatus

- Monitor network connections on TCP ports 139 and 445 used by Samba (CTRL-c to exit) :
watch "netstat -natp | grep '139\|445'"

- Monitor number of Samba daemons/sessions (CTRL-c to exit):
watch 'ps -e | grep smbd'

- List block devices like your USB hard disk:
lsblk
fdisk -l

- Show mounted filesystems:
mount

- Create new Samba user/pass :
smbpasswd –a <SAMBA_USERNAME>

First see how far you can get Wink

There are only 10 types of people in the world: those who understand binary, and those who don't
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Samba for External HD - gigles13 - 13th May, 2015, 06:07 AM
RE: Samba for External HD - deHakkelaar - 13th May, 2015 11:48 PM
RE: Samba for External HD - gigles13 - 15th May, 2015, 03:21 AM
RE: Samba for External HD - deHakkelaar - 15th May, 2015, 07:52 PM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [PROBLEM] Samba not sharing external USB drive Deep6 5 18,545 6th Aug, 2014 11:14 AM
Last Post: mk01

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 16th Jun, 2025, 03:17 PM Powered By MyBB, © 2002-2025 MyBB Group.