當前位置: 首頁>>技術教程>>正文


為什麽我的 NTFS 分區掛載為隻讀?

, ,

問題描述

直到最近,我的 Windows 分區 (C:) 和我的數據分區 (E:) 都將掛載為讀/寫。現在兩者似乎都隻安裝為隻讀。

GParted 調整大小(錯誤)

ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda4
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 86207623680 bytes (86208 MB)
Current device size: 86207627264 bytes (86208 MB)
New volume size : 78662066688 bytes (78663 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 62126 MB (72.1%)
Collecting resizing constraints ...
Needed relocations : 1606868 (6582 MB)
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Relocating needed data ...
ERROR: Extended record needed (1032 > 1024), not yet supported!
Please try to free less space.

chkdsk 輸出:

Checking file system on E:
The type of the file system is NTFS.
Volume label is Data.

A disk check has been scheduled.
Windows will now check the disk.                         
  99482 file records processed.
  495 large file records processed.                     
  0 bad file records processed.                         
  0 EA records processed.                               
  0 reparse records processed.                          
  104412 index entries processed.                       
  0 unindexed files processed.                          
  99482 security descriptors processed.                 
  2466 data files processed.                            

CHKDSK is verifying Usn Journal...
  4479208 USN bytes processed.                                     
Usn Journal verification completed.
Windows has checked the file system and found no problems.

84187132 KB total disk space.
  60479688 KB in 69969 files.
     15520 KB in 2467 indexes.
         0 KB in bad sectors.
    174336 KB in use by the system.
     65536 KB occupied by the log file.
  23517588 KB available on disk.
      4096 bytes in each allocation unit.
  21046783 total allocation units on disk.
   5879397 allocation units available on disk.

Internal Info:
9a 84 01 00 00 1b 01 00 fc 1a 01 00 00 00 00 00  ................
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
42 00 00 00 52 73 5c 77 b0 e7 1d 00 b0 df 1d 00  B...Rs\w........

fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda5 during installation
UUID=8213cc89-2438-41b9-899f-13b4c5b299af /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=45873767-d9ae-4f0c-baab-ffc2726ac24e none            swap    sw              0       0

檢查 GParted、GSmartControl 和 ntfsfix 中的驅動器,全部成功完成,沒有變化。

分區

dev/sda1 NTFS WinRE\ndev/sda2 NTFS Windows C:\ndev/sda3 擴展\ndev/sda4 NTFS 數據 E:\ndev/sda5 EXT4 Ubuntu\ndev/sda6 linux-swap

我正在尋找以下解釋:

Internal Info:
9a 84 01 00 00 1b 01 00 fc 1a 01 00 00 00 00 00  ................
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
42 00 00 00 52 73 5c 77 b0 e7 1d 00 b0 df 1d 00  B...Rs\w........

Resetting $LogFile ... (this might take a while)
Relocating needed data ...
ERROR: Extended record needed (1032 > 1024), not yet supported!
Please try to free less space.

最佳辦法

執行 full shutdown of Windows 將允許 Ubuntu 完全安裝驅動器。這可以通過在按下 “Power” 菜單上的 “Shut down” 按鈕時按住 SHIFT 鍵來完成。

次佳辦法

發生在我身上,我所做的隻是

sudo ntfsfix /dev/sdxX # where x is HDD and X is drive number, in my case it was /dev/sda1

它將刪除由 Windows 創建的任何日誌文件。

為我工作。

第三種辦法

係統可能沒有安裝用於寫入 NTFS 分區的文件。

在終端試試這個:

sudo apt-get remove ntfsprogs && sudo apt-get install ntfs-3g

如果係統上存在 ntfsprogs,這將刪除它,並安裝 ntfs-3g,它應該允許您正確寫入 NTFS 分區。

然後重新啟動係統,並嘗試打開 NTFS 驅動器進行寫訪問。您現在應該能夠寫入 NTFS 驅動器。

第四種辦法

如果在使用 Windows 10 雙重啟動的情況下發生這種情況,您需要取消選中 Control Panel --> Power Options --> Choose what the power buttons do 中的 turn on fast startup,然後關閉,而不是重新啟動。一旦正確完成,您將能夠以讀/寫權限正常訪問 NTFS 分區。

這是因為 Windows 10 更新將其重置為默認的快速啟動,這是一種休眠形式。

參考資料

本文由Ubuntu問答整理, 博文地址: https://ubuntuqa.com/zh-tw/article/12997.html,未經允許,請勿轉載。