您当前的位置: 首页 >  linux

少林码僧

暂无认证

  • 0浏览

    0关注

    317博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

linux下home目录迁移

少林码僧 发布时间:2017-04-26 20:18:30 ,浏览量:0

根分区预留不宽裕,du -sh /home 发现home分区占比较大,于是将home目录迁移到新的分区

#添加硬盘后触发扫描
echo '- - -' > /sys/class/scsi_host/host2/scan
[389][root@liyong: etc]# lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda           8:0    0   40G  0 disk 
├─sda1        8:1    0    1G  0 part /boot
└─sda2        8:2    0   39G  0 part 
  ├─cl-root 253:0    0 35.1G  0 lvm  /
  └─cl-swap 253:1    0  3.9G  0 lvm  [SWAP]
sdb           8:16   0  100G  0 disk 
sr0          11:0    1  7.7G  0 rom  
#分区
gdisk /dev/sdb
GPT fdisk (gdisk) version 0.8.6

Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.

Command (? for help): p
Disk /dev/sdb: 209715200 sectors, 100.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): AAB88154-BBA6-4134-9D99-E2168AF3B8F6
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 209715166
Partitions will be aligned on 2048-sector boundaries
Total fre
关注
打赏
1661398670
查看更多评论
立即登录/注册

微信扫码登录

0.0626s