外接硬碟只能讀不能寫
先執行df -h 列出磁區
liaozi@ubuntu-desktop:~$ df -h
檔案系統 容量 已用 可用 已用% 掛載點
udev 1.9G 0 1.9G 0% /dev
tmpfs 380M 1.7M 379M 1% /run
/dev/sdc2 58G 17G 39G 30% /
tmpfs 1.9G 30M 1.9G 2% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/loop0 15M 15M 0 100% /snap/gnome-logs/37
/dev/loop1 2.4M 2.4M 0 100% /snap/gnome-calculator/180
/dev/loop2 87M 87M 0 100% /snap/core/4917
/dev/loop3 141M 141M 0 100% /snap/gnome-3-26-1604/70
/dev/loop4 13M 13M 0 100% /snap/gnome-characters/103
/dev/loop5 35M 35M 0 100% /snap/gtk-common-themes/319
/dev/loop6 3.8M 3.8M 0 100% /snap/gnome-system-monitor/51
/dev/sda2 96M 31M 66M 32% /boot/efi
tmpfs 380M 36K 380M 1% /run/user/1000
/dev/sdd1 1.9G 1.9G 49M 98% /media/liaozi/UBUNTU 18_0
/dev/sdb1 2.8T 2.8T 6.3G 100% /media/liaozi/3TB
執行
sudo ntfsfix /dev/sdb1
Mounting volume... The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdb1 was processed successfully.
接著重載掛後就能存取寫入了
liaozi@ubuntu-desktop:~$ df -h
檔案系統 容量 已用 可用 已用% 掛載點
udev 1.9G 0 1.9G 0% /dev
tmpfs 380M 1.7M 379M 1% /run
/dev/sdc2 58G 17G 39G 30% /
tmpfs 1.9G 30M 1.9G 2% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/loop0 15M 15M 0 100% /snap/gnome-logs/37
/dev/loop1 2.4M 2.4M 0 100% /snap/gnome-calculator/180
/dev/loop2 87M 87M 0 100% /snap/core/4917
/dev/loop3 141M 141M 0 100% /snap/gnome-3-26-1604/70
/dev/loop4 13M 13M 0 100% /snap/gnome-characters/103
/dev/loop5 35M 35M 0 100% /snap/gtk-common-themes/319
/dev/loop6 3.8M 3.8M 0 100% /snap/gnome-system-monitor/51
/dev/sda2 96M 31M 66M 32% /boot/efi
tmpfs 380M 36K 380M 1% /run/user/1000
/dev/sdd1 1.9G 1.9G 49M 98% /media/liaozi/UBUNTU 18_0
/dev/sdb1 2.8T 2.8T 6.3G 100% /media/liaozi/3TB
無法存取的是 /dev/sdb1
執行
sudo ntfsfix /dev/sdb1
Mounting volume... The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdb1 was processed successfully.
接著重載掛後就能存取寫入了
留言