原系统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截图
fdisk -l 输出
- root@server:~# 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 975M5 Extended
/dev/vda5 1950711808 1952708607 1996800 975M 82 Linux swap / Solaris
free -h输出
- root@server:~# free -h
total used free sharedbuff/cache available
Mem: 987Mi 46Mi 720Mi 2.0Mi 220Mi 804Mi
Swap: 974Mi 0B 974Mi
使用 @laoxong 大佬的命令(tune2fs -m 1 /dev/vda1)后,变成905G了,但还是少了10G,不知道为啥。
- root@server:~# tune2fs -m 1 /dev/vda1
tune2fs 1.44.5 (15-Dec-2018)
Setting reserved blocks percentage to 1% (2438384 blocks)
root@server:~# df -h
Filesystem SizeUsed Avail Use% Mounted on
udev 480M 0480M 0% /dev
tmpfs 99M2.9M 96M 3% /run
/dev/vda1 915G889M905G 1% /
tmpfs 494M 0494M 0% /dev/shm
tmpfs 5.0M 05.0M 0% /run/lock
tmpfs 494M 0494M 0% /sys/fs/cgroup
tmpfs 99M 0 99M 0% /run/user/0
热议
推荐楼 aipage 3小时前
DD 变小
重点,圈出来,要考的!
推荐楼 moehentai2333 4小时前
swap给了多大.
2楼 laoxong 4小时前
fdisk -l 看看以及fdisk /dev/vda看看分区后面还有没有空间
4楼 天然红血丝 4小时前
swap给了多大.
fdisk -l输出贴上去了。
5楼 天然红血丝 3小时前
fdisk -l 看看以及fdisk /dev/vda看看分区后面还有没有空间
输出贴出了。
6楼 laoxong 3小时前
tune2fs -m 1 /dev/vda1 那丢掉的空间是为root保留的后背空间
大佬,用了tune2fs -m 1 /dev/vda1后,变大了一点,但还是有10G找不到啊。这10G是位root保留的后备空间么?
8楼 laoxong 3小时前
天然红血丝 发表于 2022-2-15 15:33
大佬,用了tune2fs -m 1 /dev/vda1后,变大了一点,但还是有10G找不到啊。这10G是位root保留的后备空间 ...
遇事不觉reboot(
12楼 天然红血丝 3小时前
不懂绑定
不过10g真的有这么重要吗
不是10G的问题,主要是莫名少硬盘,还是想搞搞清楚原因的。
13楼 laoxong 3小时前
天然红血丝 发表于 2022-2-15 15:33
大佬,用了tune2fs -m 1 /dev/vda1后,变大了一点,但还是有10G找不到啊。这10G是位root保留的后备空间 ...
试试把1改成0,这好像是会保留1%的空间
14楼 天然红血丝 3小时前
试试把1改成0,这好像是会保留1%的空间
好的,谢谢大佬。
15楼 鹿小草QAQ 3小时前
ext4和xfs是有区别
申明:本文内容由网友收集分享,仅供学习参考使用。如文中内容侵犯到您的利益,请在文章下方留言,本站会第一时间进行处理。