[NTLUG:Discuss] Re: Creating a shared folder

David Ross davidross at classicnet.net
Mon Sep 27 07:25:39 CDT 2004


On Monday 27 September 2004 01:01 am, Bryan J. Smith wrote:
> On Sun, 2004-09-26 at 20:31, David Ross wrote:
> > This may seem trivial,but I'm having a mental block
> > $cat /etc/fstab
> > /dev/hda2               /                       ext3    defaults        1
> > 1 /dev/hda1               /boot                   ext3    defaults       
> > 1 2 /dev/hdb1               /games                  ext3    defaults   2
> > 1 I created a user "shared" and it appears in /home/users/
> > I would like "shared"'s directory on hdb
> > I'm guessing I need to shrink the hdb1 partition down to create hdb2 and
> > name it /shared in fstab? I honestly don't remember how I created /games
> > on hdb1 it's been so long ago.
>
> Growing/shrinking partitions/filesystems isn't something you do on a
> whim in any OS -- unless you use logical volume management (LVM).  Given
> your system layout, I wouldn't touch a thing.  I'd create symlinks:

I agree
>
> Symlinks are typically all you need.  Normally you wouldn't do it this
> way, but given that you didn't lay out any special filesystems in the
> first place, it will do.
>

My system is not "normal"

>
> Games and other, localized software should be under /usr/local[/games]
> or /opt[/games].  Symlink so the binaries are in the PATH.

There is only one game and it is started from its own directory.

The reason behind this is I have 2 hard drives.HDA being the OS (only 2 
gig),HDB hosting the game (10 gig-game uses 4 gig)

> User accounts should go somewhere under /home
> Use ~username to access home directories and _never_ by direct path.
>
> Also considering creating a group instead of a user for "shared" access.
> I typically create user accounts under a group subdirectory of /home.
> E.g.,

User accounts are under /home/users

>
> It also makes life easy if and when I need to segment servers by
> department.  Then I can mount /home/engr, /home/acct, etc... from
> different servers.

I only have 2 users, myself and the "shared" user. The problem being there 
isn't enough space on HDA to share large files (> 1 gig) 

> But how you organize user accounts is up to you.  But you _should_ try
> to mount them under /home -- or at least symlink to home.  That's up to
> you.

So the easiest way would be?
$mkdir /games/shared
$ln -s /home/users/shared /games/shared

I'm only trying to share this directory with a Windows box on my network.
-- 
David Ross
Registered Linux User #344306
EMail is certified Windows® free.



More information about the Discuss mailing list