本帖最后由 天然红血丝 于 2022-2-15 15:44 编辑
原系统centos7 硬盘932G,为什么用了萌咖大佬的脚本,DD了系统之后,硬盘只有868G了,试了好几次都是这样。
附dd命令:
- bash <(wget –no-check-certificate -qO- ‘https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh’) -d 10 -v 64 -p "xxxxx" -port 22
复制代码
df -h截图
原大小-932G DD系统后的大小-868G
fdisk -l 输出
- [email protected]:~# fdisk -l
- Disk /dev/vda: 931.1 GiB, 999787855872 bytes, 1952710656 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0xec462265
-
- Device Boot Start End Sectors Size Id Type
- /dev/vda1 * 2048 1950709759 1950707712 930.2G 83 Linux
- /dev/vda2 1950711806 1952708607 1996802 975M 5 Extended
- /dev/vda5 1950711808 1952708607 1996800 975M 82 Linux swap / Solaris
复制代码
free -h输出
- [email protected]:~# free -h
- total used free shared buff/cache available
- Mem: 987Mi 46Mi 720Mi 2.0Mi 220Mi 804Mi
- Swap: 974Mi 0B 974Mi
复制代码
使用 @laoxong 大佬的命令(tune2fs -m 1 /dev/vda1)后,变成905G了,但还是少了10G,不知道为啥。
- [email protected]:~# tune2fs -m 1 /dev/vda1
- tune2fs 1.44.5 (15-Dec-2018)
- Setting reserved blocks percentage to 1% (2438384 blocks)
- [email protected]:~# df -h
- Filesystem Size Used Avail Use% Mounted on
- udev 480M 0 480M 0% /dev
- tmpfs 99M 2.9M 96M 3% /run
- /dev/vda1 915G 889M 905G 1% /
- tmpfs 494M 0 494M 0% /dev/shm
- tmpfs 5.0M 0 5.0M 0% /run/lock
- tmpfs 494M 0 494M 0% /sys/fs/cgroup
- tmpfs 99M 0 99M 0% /run/user/0
复制代码
|