LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-26-2015, 09:16 PM   #1
Arry74
LQ Newbie
 
Registered: Aug 2015
Posts: 2

Rep: Reputation: Disabled
Linux as my Home Server - setting up Samba and harddisks correctly


Hi

I hope someone on here is able to assist me.

I have decided to use Linux (Ubuntu) as the host operating system for my new home server.

This new server is going to be used for file storage (for my windows boxes, my media player etc etc, and also for storing VirtualBox images)

I have used Linux a long long time ago so am basically a newbie.

My problem is as follows.

In the server I have 3 hardisks

120gb SSD, 3TB SATA and 1TB Sata.

When I installed Ubuntu is asked where to install the OS so I said the SSD.

So when I look at my disks it has set them up as

sda - 3tb
sdb - 1tb
sdc - ssd

When I load Ubuntu in the Devices section of the GUI is has 3 entries, 1 says Computer which is the SSD and where the OS is, 2 says 3.0TB Volume and 1 says 1tb volume.

I have now also installed SAMBA.

Questions:

1. When I installed Ubuntu I chose the SSD as EXT4 and installed it there, is this the recommended way of installing Linux?

2. All of the research I have done on Samba indicates when sharing out files / folders with Windows machines etc to share out say /media/drive1 as an example. The Linux system files and folders are only on the SSD.

If I want to share out something on my other two SATA disks, how do I do that? When I look at the properties of a file that I add onto one of the disks, it says say /media/username/219f99ee5c69475/foldername

So basically it is naming the hardrive volumes with an ID of sorts.

How do I make it so that I create files and folders on these Sata drives and share them out with my windows boxes.

Thanks in advance and I hope what I have written has been explained properly.

Cheers
 
Old 08-26-2015, 09:53 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,930
Blog Entries: 28

Rep: Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602
Welcome to LQ.

Boy! That's a mouthful. I think the answers may be beyond a simple forum post.

I'm going to suggest you take a look at Samba by Example. I think that will help you more than a bunch of disjointed forum posts. Don't be dismayed by the fact that it refers to Samba v. 3; the part of Samba you need didn't change between v. 3 and v. 4.

Samba by Example takes you through scenarios for setting up Samba, ranging from very simple to very complex, including example configuration files. (You can get a PDF here. I still have my printed-out copy on my bookshelf.)

When I set up my first file server with Samba, I had all the same questions you have and I found what I needed by about page 20.

You also need to look into how to configure your /etc/fstab to mount the partitions properly (that is, the way you want them to be mounted).

As for setting up Samba, there are three steps:
  1. Create the directories to be shared and configure them as "shared" in the directory permissions. This one is simple, but takes place independently of the samba configuration and is often overlooked by first-timers. Like I was.
  2. Create your /etc/samba/samba.conf file, then start samba. This is more complicated.
  3. Troubleshoot anything that's not working.

As an aside, the more specific information you provide, the easier it will be for others to help you. You might want to take a look at this; it will help you help us help you.

Edit:

If I remember correctly, Ubuntu by default includes samba-client, but does not include samba-server. You may need to install samba-server from the repos.

Last edited by frankbell; 08-26-2015 at 10:52 PM. Reason: Remembered something.
 
Old 08-27-2015, 03:25 AM   #3
Arry74
LQ Newbie
 
Registered: Aug 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks very much for the reply mate, I will have a look at what you have suggested and let you know how I go, thanks again.
 
Old 08-27-2015, 09:22 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,930
Blog Entries: 28

Rep: Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602
The first time I set up my home network, I think I poked at it for about two weeks until I was happy with it. That was with Slackware v. 10 and Windows XP.

Good luck and let us know, with as much detail as possible, if you run into specific issues.
 
  


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
Permissions not setting correctly when transferring via Samba wewtaco Linux - Software 3 07-18-2015 02:09 AM
setting up home proxy linux server hendersx Linux - Server 3 03-08-2012 03:52 AM
problems with setting linux home server Doctor22 Linux - Server 6 04-05-2007 06:52 AM
Setting up a Linux home server slash587 Linux - Networking 3 03-19-2006 02:57 AM
/home on two harddisks ZaphyR Linux - General 3 09-03-2004 07:47 AM

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

All times are GMT -5. The time now is 10:25 PM.

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
Open Source Consulting | Domain Registration