How to mount /tmp and /home?

BlueCola

Verified User
Joined
Jan 12, 2012
Messages
72
I did a lot of search, but I can't find a clear answer. I have mounted the /tmp folder now, using this tutorial. What I see is that it mount the /tmp folder with noexec,nosuid, but also with nodev. Is that the way it should? Or should I mount it without nodev? (No idea what noexec, nosuid or nodev means).

Second question is, how to mount the /home. I'm pretty new to linux, but I understand that if I follow that tutorial and replace /tmp with /home, it will go terrible wrong. I'm using CentOS 6.0, 64 bit. Can someone post a clear link, or post with an how-to?
 
No idea what noexec, nosuid or nodev means.

Second question is, how to mount the /home. I'm pretty new to linux, but I understand that if I follow that tutorial and replace /tmp with /home, it will go terrible wrong. I'm using CentOS 6.0, 64 bit. Can someone post a clear link, or post with an how-to?


Google and/or read

Code:
# man mount
 
post result for:

Code:
cat /etc/fstab

Regards
Code:
/dev/xvda2      /             ext3     defaults,errors=remount-ro,usrquota,grpquota 0 0
/dev/xvda1      none          swap     defaults                   0 0
proc            /proc         proc     defaults                   0 0
devpts          /dev/pts      devpts   gid=5,mode=620             0 0

/var/tmpMnt /tmp ext3 loop,rw,noexec,nosuid,nodev 0 0
 
Code:
/dev/xvda2 on / type ext3 (rw,errors=remount-ro,usrquota,grpquota)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/loop0 on /tmp type ext3 (rw,noexec,nosuid,nodev)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
 
Is ok like now is aswell... should be much better format and reinstall the system with pre-requisite required from da, but, isnt a big issue if /home is in /

Regards
 
Is ok like now is aswell... should be much better format and reinstall the system with pre-requisite required from da, but, isnt a big issue if /home is in /

Regards

Hmm, i don't really understand what u mean. Is it still possible to mount my /home? I know is much more secure.
 
If you've got enough unallocated space on your virtual HDD, then you can mount /home separately. If not, you should better re-install OS and re-partition your HDD. Ask your DC to do it, or use VNC to do it yourself.
 
If you've got enough unallocated space on your virtual HDD, then you can mount /home separately. If not, you should better re-install OS and re-partition your HDD. Ask your DC to do it, or use VNC to do it yourself.

Ok, understood. Where can I see how much unallocated space I have left? I think it should be enough.
 
Unallocated space in this case should be read as unpartitioned part of your disk. I'm sorry if I've made a mistake.

Do you really need it on a live system? You'd better ask your DC for a help then, as this particular question has nothing to do with Directadmin in most means. Your DC probably gave you an access into a VPS managing panel, check it there. Please note, you should really better re-install OS with new partitions; otherwise use Rescue mode (if it's provided by your DC) to re-partition your HDD. Look at GParted (I've never used it before) and/or refer your question to XEN's community.
 
Back
Top