2014年(5)
分类: LINUX
2014-03-04 19:32:39
操作系统版本Centos6.4 2.6.32-358.el6.x86_64
1,fdisk /dev/sda
添加新分区/dev/sda6
2,格式化磁盘
mkfs -t ext4 /dev/sda6
mkdir /dev/sda6 /mnt/usr
cp -a /usr/* /mnt/usr
3,重新挂载到/usr分区下
umount /dev/sda6
mount /dev/sda6 /usr
4,查看/usr[root@wang usr]# ls -lh
total 20K
drwx------ 2 root root 16K Mar 4 18:42 lost+found
drwxr-xr-x. 14 root root 4.0K Dec 24 09:20 usr
cd /usr
rmdir lost+found
mv usr/* .
rmdir usr