MOVE /HOME DIRECTORY TO 2ND HARD DISK
-----------------------------------------------
#mkdir -p /mnt/200GData
#mount /dev/sdb5 /mnt/200GData
#cp -rpf /home/* /mnt/200GData transfer current home to 2nd hard drive
#umount /mnt/200GData
#vi /etc/fstab add two lines /dev/sdb5, /dev/sdb1
[root@localhost ltib-qs]# cat /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
UUID=db85ce6b-b0e2-4f47-ad07-011f425bd92c /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/sdb5 /home ext2 defaults 0 0
/dev/sdb1 /opt ext2 defaults 0 0
#mount -a
Now the /home is on 2nd drive /dev/sdb5, if #umount /home, /home is on original 1st drive.
Ref [1] http://forums.fedoraforum.org/showthread.php?t=179402
[2] http://www.ibm.com/developerworks/library/l-partplan.html
SELinx warning after move /home to seperate hard drive
----------------------------------------------------------------
SELinux permission checks on files labeled file_t are being denied. file_t is
the context the SELinux kernel gives to files that do not have a label. This
indicates a serious labeling problem. No files on an SELinux box should ever be
labeled file_t. If you have just added a new disk drive to the system you can
relabel it using the restorecon command. Otherwise you should relabel the entire
files system.
[root@localhost /]# restorecon -r /home/
restorecon: unable to stat file /home/q.yang/.gvfs: Permission denied
[root@localhost /]# restorecon -r /opt/
Sunday, July 18, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment