在 Ubuntu 24.04.2 LTS 中,我使用了:
gnome-disk-utility 46.0
UDisks 2.10.1 (built against 2.10.1)
查看sda2的大小(在 500Gb 硬盘上),其报告为 105Gb NTFS。
报告分区类型为 NTFS/exFAT/HPFS...
但是当我在sda2上启动到WIN7时,它看到的大小只有 30Gb(当我将其克隆到新驱动器时,它在旧的 30Gb 驱动器上的大小)c:\
我怎样才能让WIN7看到/使用整个 105Gb 分区?
sda-500GB > sda1-128Mb(受保护);sda2-105Gb(WIN7);sda3-50Gb(WIN7 数据驱动器“E”);
sda4-EXT4~sda5-100Gb(Ubuntu)、sda6-100Gb(Fedora)、sda7-75Gb(未来的 WIN10)
好的 - 从终端执行“sudo ntfsresize /dev/sda2”也是如此:
sudo ntfsresize /dev/sda2
[sudo] password for batgirl:
ntfsresize v2022.10.3 (libntfs-3g)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 29914911232 bytes (29915 MB)
Current device size: 104857600000 bytes (104858 MB)
New volume size : 104857596416 bytes (104858 MB)
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Cluster accounting failed at 197485 (0x3036d): missing cluster in $Bitmap
Cluster accounting failed at 1108632 (0x10ea98): missing cluster in $Bitmap
Cluster accounting failed at 1108633 (0x10ea99): missing cluster in $Bitmap
Cluster accounting failed at 1108634 (0x10ea9a): missing cluster in $Bitmap
Cluster accounting failed at 1108635 (0x10ea9b): missing cluster in $Bitmap
Cluster accounting failed at 1108636 (0x10ea9c): missing cluster in $Bitmap
Cluster accounting failed at 1108637 (0x10ea9d): missing cluster in $Bitmap
Cluster accounting failed at 5358234 (0x51c29a): missing cluster in $Bitmap
Cluster accounting failed at 5358235 (0x51c29b): missing cluster in $Bitmap
Cluster accounting failed at 5358236 (0x51c29c): missing cluster in $Bitmap
Filesystem check failed! Totally 65 cluster accounting mismatches.
ERROR: NTFS is inconsistent. Run chkdsk /f on Windows then reboot it TWICE!
The usage of the /f parameter is very IMPORTANT! No modification was
and will be made to NTFS by this software until it gets repaired.
将 Ubuntu 置于休眠状态并启动到 WIN7,但是它已经处于休眠状态,因此关闭它然后执行 chkdsk /f,并启动到 Windows,然后执行 chkdsk /f,再次启动到 Windows,但仍然显示只有 30Gb......
将再次从 Ubuntu 终端运行 sudo ntfsresize /dev/sda2,但这次 WIN7 不处于休眠状态:
> sudo ntfsresize /dev/sda2
[sudo] password for batgirl:
ntfsresize v2022.10.3 (libntfs-3g)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 29914911232 bytes (29915 MB)
Current device size: 104857600000 bytes (104858 MB)
New volume size : 104857596416 bytes (104858 MB)
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Space in use : 28372 MB (94.8%)
Collecting resizing constraints ...
WARNING: Every sanity check passed and only the dangerous operations left.
Make sure that important data has been backed up! Power outage or computer
crash may result major data loss!
Are you sure you want to proceed (y/[n])? y
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
Syncing device ...
Successfully resized NTFS on device '/dev/sda2'.