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
|
|||
|
|||
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 There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
« Next Oldest | Next Newest »
|
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 | 17,598 |
6th Aug, 2014 11:14 AM Last Post: mk01 |