[RESOLVED] Best way to set up semi-permanent share

Ask questions about Arch Linux ARM. Please search before making a new topic.

[RESOLVED] Best way to set up semi-permanent share

Postby floydbloke » Wed Mar 09, 2011 6:32 am

Linux noob here so apologies for dumb questions or erroneous terminology
Got my shiny new Dockstar yesterday and up and running with Arch Linux ARM now.
I’ll be attaching an external USB drive to be shared through Samba to become common storage for the various Windows PCs around the house.
What’s the best way to make sure that this drive gets mounted automatically on reboot, to the mountpoint defined as the shared folder in SMB.CONF
Will UDEV do the job somehow, or should I follow step six in the ‘Ten Steps to set up a Dockstar’ wiki
Last edited by floydbloke on Mon Mar 14, 2011 11:05 pm, edited 1 time in total.
floydbloke
 
Posts: 15
Joined: Fri Mar 04, 2011 12:25 am

Re: Best way to set up semi-permanent share

Postby coastal » Wed Mar 09, 2011 2:16 pm

i believe you just to include samba as part of your daemon list you'll be done.
coastal
 
Posts: 16
Joined: Sun Feb 13, 2011 12:10 am

Re: Best way to set up semi-permanent share

Postby WarheadsSE » Wed Mar 09, 2011 3:08 pm

Other than that, you may need to specify in fstab, but it should be rather straight forward.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Best way to set up semi-permanent share

Postby floydbloke » Wed Mar 09, 2011 4:58 pm

Thank you, doesn't sound too complicated.

Making sure I've got this right, in my smb.conf I define a shared directory and specify the 'path' to point to the external disk mountpoint (or in of its subdirectories).
So how do I make sure that the disk mounts to the same mount point every time the plug boots up, is this done in fstab? Will it always have the same device name, e.g. /dev/sdb1? What would happen if another disk was plugged in, is it safer/better practice to determine its UUID and use that in fstab?
floydbloke
 
Posts: 15
Joined: Fri Mar 04, 2011 12:25 am

Re: Best way to set up semi-permanent share

Postby kmihelich » Thu Mar 10, 2011 1:40 am

You can do some trial and error tests to see the order of ports on the device, I don't remember off-hand. If you're looking for consistency though doing it with UUIDs is an effective way. And yes, all in /etc/fstab.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

[Resolved] Best way to set up semi-permanent share

Postby floydbloke » Sun Mar 13, 2011 8:35 pm

It seems when I boot from power up the external hard disk isn't always picked up but then once it's up and running and I do a reboot UDEV picks up the drive and mounts it, and SAMBA happily shares it. The intention is for it to be running 24 x 7 and I won't be messing around it with it a great deal.
I'm going to leave it as is, it's probabaly not good Linux practice or particularly elegant but it works well enough. I don't want to risk experimenting with it further and breaking it all together.
floydbloke
 
Posts: 15
Joined: Fri Mar 04, 2011 12:25 am

Re: Best way to set up semi-permanent share

Postby WarheadsSE » Mon Mar 14, 2011 1:43 pm

floydbloke:

If you edit your original post, you can add the [Resolved] to its Subject :)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Best way to set up semi-permanent share

Postby floydbloke » Mon Mar 14, 2011 11:05 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'f')loydbloke:

If you edit your original post, you can add the [Resolved] to its Subject :)


Hey, that worked. Thanks.
floydbloke
 
Posts: 15
Joined: Fri Mar 04, 2011 12:25 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 26 guests