LinuxQuestions.org
Help answer threads with 0 replies.
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 01-02-2005, 12:57 PM   #1
JWatson
LQ Newbie
 
Registered: Dec 2004
Posts: 6

Rep: Reputation: 0
Moving VAR TMP HOME OPT to new partitions


Hello,

I see from several documents it is wise to have directories such as the /HOME /VAR /TMP /OPT on a different partition from the root partition

and then mount them as /HOME /VAR /TMP /OPT

I question is

When I install SUSE 9 ES it gives you a couple of basic choices i.e how big do you want the swap partition and the root partition etc but that is about it from what I can see. Therefore when the server is installed the above directories will be on the root partition

Now I know I can use FDISK etc to create other partitions for the above or may be two one for home and another for the others

but do I then move the VAR OPT TMP directories to these new partitions when mount them as above then put the mounts if FSTAB (I think thatís the right file) so they mount on boot up?

Will I be able to move all thee files in these directories when the system is running? Will I have to be are run level 3 (no X) to move the files

My idea is to run VMWARE for Linux on the system and I want to make it as fast as possible to I thought I would create an EXT2 no journaling file system partition to hold VMWARE (or at leave the virtual machine files) as I believe this will be faster than ext3?

if I move these above directories in this fashing are there any config files that I have to update or will the fact that they are mounts as /TMP /VAR etc mean as far as the config files are concerned they look like they are in the same place as before?

Thank you in advanced for you help..
 
Old 01-02-2005, 04:08 PM   #2
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You can have another partition for /home, but it is optional. It does make it easier to have /home on another partition if you are installing multiple Linux distributions or re-install Linux.

I recommend /var be another partition because it will take over the space that it is on when you enable debug for a module.

It is optional to place /tmp another partition. Some admins set it up as a loop device.

You do not have to worry about /opt filling up. Not a lot of distributions put files under /opt.

You can move the files and directory that is under /opt to another partition. For /var and maybe /tmp, can not copy it. You have to use a Live Linux CD distribution to copy the files and directories under /var and /tmp.

EXT2 is not safe because it will be highly vulnerable by inproperly shutdowns. EXT3 and ReiserFS will be better.
 
Old 01-03-2005, 05:54 AM   #3
JWatson
LQ Newbie
 
Registered: Dec 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks

Thanks for the information Electron

To recap if I want to copy place the VAR and TMP directories on another volume I have to mkdir on this other volume then copy these directories direct from the install CD then mount them as /var and /tmp then put these mounts in the INITTAB or FSTAB (not sure which one is correct) so they mount at system startup reboot then the server will see these mounts as the place to store and fine files related to /tmp and /var

Is the above correct please?

If so do I just leave the files in /tmp and /var on the root partition alone?

I know ext2 is not journaled like ext3 but this should be OK as it is a lab server and I want to run it as fast as possible i.e. putting VMWARE on ext partition with a few virtual machines like Novell and Windows server my thinking is they will run faster if on an ext2 partition.

Thanks again Exlectron I will be grateful if you could kindly clarify the above for me Thanks
John
 
  


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
moving /home /root & /var to new partition CrashedAgain Linux - General 8 11-24-2005 11:44 AM
kde, /tmp, /var/tmp and all that garba Linux - Software 4 06-17-2005 01:31 PM
Moving /var/adm and /var/lib - why does it hurt? J_Szucs Linux - General 1 09-15-2004 07:46 PM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 02:03 PM
moving /home and /usr to new partitions? commuter Linux - General 12 01-05-2003 08:57 AM


All times are GMT -5. The time now is 04:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration