我尝试调整(缩小)我的 NTFS 分区,以便能够为我的ext4
Ubuntu(12.04 64 位)分区获得更多空间,但调整分区大小后,我无法挂载它。我使用 Gparted 来执行此操作。
我认为分区表的某个地方存在问题,但我不知道在哪里以及如何修复它。
这是我在 NTFS 分区上的 Gparted 信息窗口中得到的信息:
GParted 概览屏幕截图
fdisk -l
和mount /dev/sda5 /media/d
root@UBUNTU:/home/XXX# mount /dev/sda5 /media/d
Failed to read last sector (718198764): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda5': Invalid argument
The device '/dev/sda5' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
root@UBUNTU:/home/XXX# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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
Disk identifier: 0x68beefda
Device Boot Start End Blocks Id System
/dev/sda1 19 27262991 13631486+ 27 Hidden NTFS WinRE
/dev/sda2 * 27262992 27467791 102400 7 HPFS/NTFS/exFAT
/dev/sda3 27467792 232267775 102399992 7 HPFS/NTFS/exFAT
/dev/sda4 232267793 976771071 372251639+ f W95 Ext'd (LBA)
/dev/sda5 232267795 918867967 343300086+ 7 HPFS/NTFS/exFAT
/dev/sda6 968046592 976771071 4362240 82 Linux swap / Solaris
/dev/sda7 950468608 968044543 8787968 83 Linux
Partition table entries are not in disk order
答案1
经过几分钟的挖掘,我发现本指南它使用ntfs-3g
包来恢复损坏的 ntfs 分区。
很棒的工具!我会向所有人推荐它。
答案2
这对我来说是有用的:
sudo ntfsfix /dev/sda1
其中 sda1 是存在问题的 NTFS 分区。
执行该命令后重新启动 Windows,它将检查磁盘,然后一切将再次正常运行。