我之前读过有关分区的信息,但我不完全理解下面的输出命令,想看看是否有人可以告诉我可以安全地调整哪个分区的大小,以便为 Ubuntu 18.04 安装腾出空间。我喜欢有单独的/
、swap
和/home
。如果有 20GB 的空间,我会很满意。我会备份我的硬盘,如果我搞砸了,你不会承担任何责任。这是我在 中看到的内容fdisk
:
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 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: gpt
Disk identifier: 0FD40AC8-7227-4117-9299-47FBCA209D2D
Device Start End Sectors Size Type
/dev/sda1 2048 534527 532480 260M EFI System
/dev/sda2 534528 567295 32768 16M Microsoft reserved
/dev/sda3 567296 403673087 403105792 192.2G Microsoft basic data
/dev/sda4 403673088 456101887 52428800 25G Microsoft basic data
/dev/sda5 456101888 458149887 2048000 1000M Windows recovery environment
/dev/sda6 458149888 498069503 39919616 19G Windows recovery environment
/dev/sda7 498069504 500117503 2048000 1000M Lenovo boot partition
谢谢。我已经更改了它,并且在分区管理器 GUI 中看到了它,但我似乎在输出中找不到它
fdisk
:Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 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: gpt Disk identifier: 0FD40AC8-7227-4117-9299-47FBCA209D2D Device Start End Sectors Size Type /dev/sda1 2048 534527 532480 260M EFI System /dev/sda2 534528 567295 32768 16M Microsoft reserved /dev/sda3 567296 403673087 403105792 192.2G Microsoft basic data /dev/sda4 403673088 417040275 13367188 6.4G Microsoft basic data /dev/sda5 456101888 458149887 2048000 1000M Windows recovery environment /dev/sda6 458149888 498069503 39919616 19G Windows recovery environment /dev/sda7 498069504 500117503 2048000 1000M Lenovo boot partition
最新
fdisk
输出:Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 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: gpt Disk identifier: 0FD40AC8-7227-4117-9299-47FBCA209D2D Device Start End Sectors Size Type /dev/sda1 2048 534527 532480 260M EFI System /dev/sda2 534528 567295 32768 16M Microsoft reserved /dev/sda3 567296 403673087 403105792 192.2G Microsoft basic data /dev/sda4 403673088 433509025 29835938 14.2G Microsoft basic data /dev/sda5 456101888 458149887 2048000 1000M Windows recovery environment /dev/sda6 458149888 498069503 39919616 19G Windows recovery environment /dev/sda7 498069504 500117503 2048000 1000M Lenovo boot partition
成功安装 Ubuntu 后,我的驱动器如下所示:
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 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: gpt
Disk identifier: 0FD40AC8-7227-4117-9299-47FBCA209D2D
Device Start End Sectors Size Type
/dev/sda1 2048 534527 532480 260M EFI System
/dev/sda2 534528 567295 32768 16M Microsoft reserved
/dev/sda3 567296 403673087 403105792 192.2G Microsoft basic data
/dev/sda4 403673088 433509025 29835938 14.2G Microsoft basic data
/dev/sda5 456101888 458149887 2048000 1000M Windows recovery environment
/dev/sda6 458149888 498069503 39919616 19G Windows recovery environment
/dev/sda7 498069504 500117503 2048000 1000M Lenovo boot partition
/dev/sda8 433510400 456067071 22556672 10.8G Linux filesystem
/dev/sda9 456067072 456101887 34816 17M Linux swap
图片:分区&GParted 错误消息
ntfs-3g
更新:尝试在更新 repos 后 安装,它说ntfs-3g
已经是最新版本:ubuntu@ubuntu:~$ sudo apt update Ign:1 ... Fetched 460 kB in 2s (251 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 270 packages can be upgraded. Run 'apt list --upgradable' to see them. ubuntu@ubuntu:~$ sudo apt install ntfs-3g Reading package lists... Done Building dependency tree Reading state information... Done ntfs-3g is already the newest version (1:2017.3.23-2ubuntu0.18.04.2). 0 upgraded, 0 newly installed, 0 to remove and 270 not upgraded.
答案1
如果您只需要 20 GB,那么您的 /dev/sda4 可能是一个不错的目标。但是,您可能应该确保它上面的内容不是必需的。它显示为 25 GB。
您还应该尝试缩小 /dev/sda3(Windows 安装的主要数据)。