[Newbies] 扩容根磁盘
Tofloor
poster avatar
张立强
deepin
2022-07-01 21:28
Author

前段时间因为根磁盘 15GB 满了导致删除了很多文件,导致备份 磁盘 空闲下来,为避免根磁盘再次 被占满想把 备份磁盘扩容到根磁盘中

系统是按照自动分配磁盘安装的。 根 挂载在/dev/sda5下, 备份 挂载 /dev/sda3下。现在想把/dev/sda3合并到/dev/sda5中如何做?谢谢!

目前/dev/sda3已经格式化为ext4格式。

$ df -h

文件系统 容量 已用 可用 已用% 挂载点
udev 7.7G 0 7.7G 0% /dev
tmpfs 1.6G 1.8M 1.6G 1% /run
/dev/sda5 15G 9.7G 4.3G 70% /
tmpfs 7.7G 172M 7.5G 3% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup
/dev/sda1 488M 160M 293M 36% /boot
/dev/sda7 376G 132G 226G 37% /data
tmpfs 1.6G 112K 1.6G 1% /run/user/1000
zlq@zlq:~$ sudo fdisk /dev/sda
请输入密码:
验证成功

Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Command (m for help): p
Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 sectors
Disk model: KINGSTON SV300S3
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: 0xcaa74e48

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1050623 1048576 512M 83 Linux
/dev/sda2 1050624 866398207 865347584 412.6G 5 Extended
/dev/sda3 866398208 904146943 37748736 18G 83 Linux
/dev/sda4 904146944 937701375 33554432 16G 82 Linux swap / Solaris
/dev/sda5 1052672 32507903 31455232 15G 83 Linux
/dev/sda6 32509952 63965183 31455232 15G 83 Linux
/dev/sda7 63967232 866398207 802430976 382.6G 83 Linux

Partition table entries are not in disk order.

Reply Favorite View the author
All Replies
jjcui8595
deepin
2022-07-01 22:00
#1

不如重新安装系统

Reply View the author
babyfengfjx
Super Moderator
CQA
2022-07-01 23:06
#2

看参考这个方法是否有帮助;https://wiki.deepin.org/zh/%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86/%E6%A0%B9%E7%9B%AE%E5%BD%95%E6%89%A9%E5%AE%B9

Reply View the author
云的眼泪
deepin
2022-07-02 00:54
#3

把Rootb分区删除,调整Roota分区(根分区)大小,可以使根分区变成30G

Reply View the author
张立强
deepin
2022-07-05 17:25
#4
云的眼泪

把Rootb分区删除,调整Roota分区(根分区)大小,可以使根分区变成30G

如何删除 Rootb分区?我用GParted删除分区报“无法删除 /dev/sda6,请卸载全部编号高于 6 的逻辑分区”

Reply View the author
云的眼泪
deepin
2022-07-05 17:38
#5
张立强

如何删除 Rootb分区?我用GParted删除分区报“无法删除 /dev/sda6,请卸载全部编号高于 6 的逻辑分区”

在live系统中操作,打开GParted,先将所有分区都卸载,就可以删除了。

删除Rootb后,调整Roota大小。

Reply View the author
晚秋(lateautumn)
Moderator
2022-07-26 06:02
#6

GParted老是看到大姥们提这个名字,有大姥发个下载地址吗?

Reply View the author