Need some help setting up a Linux share

Deadjasper

2[H]4U
Joined
Oct 28, 2001
Messages
2,568
I have a 3TB drive named DATA. I want to share this drive with both other Linux systems and Windows. After following the instructions found on another site, it still doesn't work (surprise, surprise). Neither the share nor the computer is showing up on the network.

As per instructions I found, I added the following to the end of smb.conf

[share]
comment = Ubuntu File Server Share
path = mnt/DATA
browsable = yes
guest ok = yes
writable = yes
create mask = 755

Any help mucho appreciated. :)
 
I have a 3TB drive named DATA. I want to share this drive with both other Linux systems and Windows. After following the instructions found on another site, it still doesn't work (surprise, surprise). Neither the share nor the computer is showing up on the network.

As per instructions I found, I added the following to the end of smb.conf

[share]
comment = Ubuntu File Server Share
path = mnt/DATA
browsable = yes
guest ok = yes
writable = yes
create mask = 755

Any help mucho appreciated. :)

If the above is exactly what you have, then you're missing a leading / if it's mounted at /mnt/DATA
 
If the above is exactly what you have, then you're missing a leading / if it's mounted at /mnt/DATA

I added the leading / but still no joy. But the box did show up on another Linux box but no share access. Also, I asume it's mounted at /mnt/DATA, how can I check?
 
I added the leading / but still no joy. But the box did show up on another Linux box but no share access. Also, I asume it's mounted at /mnt/DATA, how can I check?
You could use the df command and look for your device. ex:
Code:
[user@hostname ~]$ df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 3.9G     0  3.9G   0% /dev
tmpfs                    3.9G  136M  3.8G   4% /dev/shm
tmpfs                    3.9G  2.2M  3.9G   1% /run
tmpfs                    3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/mapper/fedora-root   49G   19G   28G  41% /
tmpfs                    3.9G  408K  3.9G   1% /tmp
/dev/sda2                976M  184M  726M  21% /boot
/dev/sda1                200M   18M  183M   9% /boot/efi
/dev/mapper/fedora-home  107G  4.2G   97G   5% /home
/dev/sdb1                  3T  500G  2.5G   16% /mnt/DATA

Alternatively, you could browse to that location (gui, terminal, whatever) and see what if you can get there. if it's not mounted then /mnt will not contain DATA.

Backing up a little bit.. is the 3TB an additional drive, or is your OS installed onto that as well?
 
You could use the df command and look for your device. ex:
Code:
[user@hostname ~]$ df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 3.9G     0  3.9G   0% /dev
tmpfs                    3.9G  136M  3.8G   4% /dev/shm
tmpfs                    3.9G  2.2M  3.9G   1% /run
tmpfs                    3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/mapper/fedora-root   49G   19G   28G  41% /
tmpfs                    3.9G  408K  3.9G   1% /tmp
/dev/sda2                976M  184M  726M  21% /boot
/dev/sda1                200M   18M  183M   9% /boot/efi
/dev/mapper/fedora-home  107G  4.2G   97G   5% /home
/dev/sdb1                  3T  500G  2.5G   16% /mnt/DATA

Alternatively, you could browse to that location (gui, terminal, whatever) and see what if you can get there. if it's not mounted then /mnt will not contain DATA.

Backing up a little bit.. is the 3TB an additional drive, or is your OS installed onto that as well?

I found the mount point and it wasn't /mnt/DATA. I corrected smb.conf and still no joy. What I'm trying to accomplish here is to have DATA show up in Windows Explorer and Caja. Judging by this page -

https://help.ubuntu.com/community/H...rminal) - Uncomplicated, Simple and Brief Way!

At the bottom of the page where it tells how to access the share it lists what to me is a bunch of gibberish. To me, a network share should be accessible to any file browser.
 
oh?! did not know....
they're just the most vocal about Linux, thought they might help...
 
I found the mount point and it wasn't /mnt/DATA. I corrected smb.conf and still no joy. What I'm trying to accomplish here is to have DATA show up in Windows Explorer and Caja. Judging by this page -

https://help.ubuntu.com/community/How to Create a Network Share Via Samba Via CLI (Command-line interface/Linux Terminal) - Uncomplicated, Simple and Brief Way!

At the bottom of the page where it tells how to access the share it lists what to me is a bunch of gibberish. To me, a network share should be accessible to any file browser.
Step 8 on that page is not overly relevant to what you're trying to do. It's just getting the samba client utilities installed and using them to connect to itself to prove the share is working.

If samba is starting successfully, you should be able to see a "share" share from your windows box by going to explorer and punching in \\IPADDRESS_OF_LINUX_BOX\ and press enter. (I think where naib was going) If it doesn't then you need to work through it a layer at a time.
Is the firewall on? Is it allowing smb traffic? (if on, try turning it off to see if you get a different experience)
after that, you're digging into samba. Can you confirm it's running? Can you glean any information about what it's doing from the log files? 'systemctl status samba', journalctl, and log files in /var/log/samba/ could be useful here.
with/after that, you'll be looking at your samba configuration and filesystem permissions. Does the directory you pointed to in the path= line exist and can the samba user access it?
 
Sharing across the network is usually fairly easy with Linux. I haven't had any issues. I don't run a firewall, however and I generally search via IP.
 
are you running ubuntu?

if you run testparm does it show any errors in the samba config?
# testparm

are both smbd and nmbd running?
# systemctl status nmbd
# systemctl status smbd

is the firewall running, what ports are open?
# sudo iptables -L

does netstat show the ports open for smb/nmb?
# netstat -an | egrep ":445|:139|:138"

can you mount it by hand instead of browsing for the share
sudo mount.cifs //<server ip>/games /mnt -o username=<your username>
 
I see no reply to my query yet the OP still wants help...

To determine whether this is a NetBIOS issue, workgroup issue or firewall issue Actually performing the test requested is not only useful but polite considering this is FREE support
 
Jasper should also specify if he actually installed Samba or just edited a configuration file :)

And as per Bulletdust, I hear he got permbanned by Lord gracious Kyle. No idea why. I'm actually thinking of finding an another site myself.
 
Sorry guys, I got fed up and gave it a break for the night. I'll jumping back in shortly. Yes, I did install Samba. Stand by, I'll report back shortly. Thanks to all.
 
OK, I turned off the firewall and now I can access the shares from the other Ubuntu system but DATA isn't showing up.

smb.conf -
smbconf.jpg


Mount Point?
smbconf2.jpg


Also, I have no idea where the /media/ came from.
 
No good place to do this, so I'll do it here:

And as per Bulletdust, I hear he got permbanned by Lord gracious Kyle. No idea why. I'm actually thinking of finding an another site myself.

Bulletdust may have occasionally been an asshole- to me even!- but he was also very knowledgeable and helpful. I find myself disturbed at the idea that he might be permanently banned, rather than just be put on a short breather, of which I've had plenty myself...
 
OK, I turned off the firewall and now I can access the shares from the other Ubuntu system but DATA isn't showing up.

You have it formatted in EXT4, which windows generally cannot read without a little help.

edit: Also since they showed up after you turned the firewall off, it really shows you were having port issues and need to verify the ports are open.
 
You have it formatted in EXT4, which windows generally cannot read without a little help.
The filesystem is moot. Windows isn't directly accessing the raw device. It is communicating via CIFS.

@OP
Right so part of this is a port/firewall issue. This is easily solved by opening SMB ports (445 at least) but for now access is needed


What is the permissions of as on the Linux system of /media/sparkey/DATA

Use: stat, ls -l or a screenshot of permissions.
What is the full SMB.conf file? This will show what user guest is mapped to. If the equivalent local Linux user does not have read let alone write to the media directory in question then they won't be able to access the share or write to it
 
Well hell, I'm screwed. :mad: I installed Firefox-esr, rebooted and now all I get is a blinking cursor, no error messages, just a blinking cursor.
 
lol, there are tons of ways of getting into Linux and uninstalling Firefox.

Either way, I am sick and cannot spend much time looking. I'm sure someone here can answer from memory lol
 
I was able to get back in using boot-repair and was able to install Firefox esr 52 which is what caused this mess.

Some days are diamonds, some days are stones...... :(
 
Back
Top