l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
December 2: Social gathering
Next Installfest:
TBD
Latest News:
Nov. 18: Club officer elections
Page last updated:
2004 Jul 15 11:09

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Gentoo install: Question on /var/tmp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Gentoo install: Question on /var/tmp



On Tue, 13 Jul 2004, Margo Schulter wrote:

> Hello, everyone, and currently I'm preparing to install Gentoo Linux
> on what will be a dual-boot system -- with MS-DOS 6.22/DJGPP (a 32-bit
> DOS port of the GNU utilities) already in place.
> 
> At this point I'm trying to plan out an install scenario, and am
> fairly confident about my general scheme for partitioning the system's
> hard drive -- 2G for DOS and 38G for Gentoo. However, the _Gentoo
> Handbook_ makes a comment about /var/tmp -- I plan a separate /var
> partition -- that I'd like to be clearer on in terms of what happens
> and when.

I have never made /var/tmp a separate partition, and I have never
installed Gentoo.  However, below you seem to be asking about mounting and
permissions at the same time... that is, at a time in the install process
when you should be focussing on mounting, you seem to be concerned with
permissions on a directory that you don't appear to be mounting anything
on.  The lack of clarity is probably a result of being new to the world of
permissions and mounting... but if you try to focus on one thing in the
installation instructions at a time, you will be more likely to succeed
(if not, the instructions need updating).

> Why I don't quote enough from the Handbook to give a bit of context:
> 
> >   4.e. Mounting
> 
> >   Now that your partitions are initialized and are housing a filesystem,
> >   it is time to mount those partitions. Use the mount command. Don't
> >   forget to create the necessary mount directories for every partition
> >   you created. As an example we mount the root and boot partition:
> 
> >       Code Listing 15: Mounting partitions
> >   # mount /dev/hda3 /mnt/gentoo
> >   # mkdir /mnt/gentoo/boot
> >   # mount /dev/hda1 /mnt/gentoo/boot
> 
> >   Note: If you want your /tmp to reside on a separate partition, be sure
> >   to change its permissions after mounting: chmod 1777 /mnt/gentoo/tmp.
> >   This also holds for /var/tmp.
> 
> Should I take this to mean after following the example of Code Listing
> 15 for mounting the /var partition -- say hda9 -- I should then create
> a /var/tmp directory manually and apply chmod 1777?
>
>      # mkdir /mnt/gentoo/var
>      # mount /dev/hda9 /mnt/gentoo/var
>      # mkdir /mnt/gentoo/var/tmp
>      # chmod 1777 /mnt/gentoo/var/tmp
> 
> The idea here, as was discussed in one thread in the Gentoo Forums
> which suggested this procedure to me, is to set /var/tmp at a mode of
> 1777 while leaving the rest of /var at the usual 755.
> 
> What I'd like to confirm is that this looks like the right procedure
> at the right time in the install process.

These actions will need to be taken in the order you describe them, but in
every install I have done the creation and configuration of permissions on
directories that are not being mounted is taken care of by the install
scripts.  If Gentoo gives you more to do manually than specify the
partitioning, then you may need to invoke those commands yourself.  
However, since /var/tmp is in the Linux Filesystem Standard, it would seem
silly for its creation and permissions configuration to not be scripted.

So, once again, unless you plan to put /var/tmp in its own partition
(unlikely to be worth it), I would assume the configuration of that
directory would take place at some other stage of the installation.

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
---------------------------------------------------------------------------

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.