linux下home目录迁移
生活随笔
收集整理的這篇文章主要介紹了
linux下home目录迁移
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
根分區預留不寬裕,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.6Partition table scan:MBR: not presentBSD: not presentAPM: not presentGPT: not presentCreating 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總結
以上是生活随笔為你收集整理的linux下home目录迁移的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 读史鉴今:女人的12种结局
- 下一篇: 如何在Linux上创建手册页