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
15th May, 2015, 03:21 AM
Post: #3
gigles13 Offline
Registered
Posts: 2
Joined: May 2015
Reputation: 0
RE: Samba for External HD
Thanks so much for answering me!

So, I figured out how to connect to the Pi through the terminal window. Success!

And then I figured out the rest of it! Wow! That was actually not bad at all. Thanks so much! Smile

(13th May, 2015 11:48 PM)deHakkelaar Wrote:  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 (wait a minute to be sure) and you can copy/paste/alter one of the existing shares for your purpose first before try to secure that share with a username/pass.
Below some useful BASH commands when connected via SSH:

- Samba status:
smbstatus

- Show network connections on TCP ports 139 and 445 used by Samba:
netstat -nat | grep '139\|445'

- Monitor number of Samba daemons/sessions:
watch 'ps -e | grep smbd'

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

- Show mounted filesystems:
mount

First see how far you can get Wink
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:25 PM Powered By MyBB, © 2002-2025 MyBB Group.