RE: [SLUG] Can I do this move the tmp dir?

From: Rock (mrock@stewartsigns.com)
Date: Thu Feb 27 2003 - 07:43:46 EST


Mike,

I hope I am correct in this sequence, I am sure it will be read by
others and if it is out of sequence or I have forgotten something, it
will get picked up and corrected.

Create a partition on the 30G drive, for examples sake lets say it is
/dev/sdc7. You can make it ext2 or ext3 whichever you are using.

Unmount /tmp, and go to /etc/fstab and comment out that entry. Lets say
it was loading from /dev/sdb6.

Go to /etc/fstab and make an entry similar to the one that loads /tmp
now, only with the /dev/sdc7 partition loading as /tmp.

Mount the new partition /dev/sdc7 as /tmp

Mount the partition /dev/dsb6 as /tmp_old (remember to make a directory
for it in / to mount to.

Now you can copy you information from /dev/tmp_old to /dev/tmp.

And you now have a new and larger /tmp directory, only now loading from
/dev/dsc7, which is larger.

  

Michael C. Rock
Systems Analyst
Registered Linux User # 287973

"The time has come the walrus said to speak of many things,,,"
"Christians give up what they cannot keep to gain what they cannot lose"

-----Original Message-----
From: slug@lists.nks.net [mailto:slug@lists.nks.net] On Behalf Of Mike
Manchester
Sent: Thursday, February 27, 2003 6:58 AM
To: slug@nks.net
Subject: [SLUG] Can I do this move the tmp dir?

I have a server that is having trouble importing a project into CVS. The
problem is that /tmp is on a small drive. There is a 30Gig drive on this
machine that has lots of room and I was wondering if I can move /tmp to
the drive? If so how do I do that? I know I can do a symbolic link but
what I'm have reservations about is the permissions. The /tmp file is
drwxrwxrwt 7 root root 1024 Feb 27 05:54 tmp
I can create a dir on the second drive ie.
drwxrwxrwt 2 root root 1024 Feb 27 05:58 /tmp
/data/tmp with the proper permissions by doing a chmod 777 /data/tmp and
a chmod +t /data/tmp (I'm guessing the t means temp?) But I don't know
how to duplicat the 7 between the permissions and the user. I can't seem
to find anywhere where this is explained.And when I create the dir it
places a 2 there. Does this make a difference for what I'm trying to do?

Thanks
Mike M.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:53:32 EDT