我试图更改我的 NTFS 分区之一的权限,但我认为我搞砸了一些事情。我在 Centos 7 上输入以下命令,现在文件管理器中缺少该分区。我该如何撤消这个操作?
sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000,exec /dev/sdf2
一些信息。
[root@localhost james]# sudo sfdisk -l -uM
Disk /dev/sdf: 972801 cylinders, 255 heads, 63 sectors/track
sfdisk: Warning: The partition table looks like it was made
for C/H/S=*/256/63 (instead of 972801/255/63).
For this listing I'll assume that geometry.
Units: 1MiB = 1024*1024 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End MiB #blocks Id System
/dev/sdf1 0+ 2097151 2097152- 2147483647+ ee GPT
/dev/sdf2 0 - 0 0 0 Empty
/dev/sdf3 0 - 0 0 0 Empty
/dev/sdf4 0 - 0 0 0 Empty
另外,当我在 gparted 上查看驱动器时,我可以看到 4 个分区,但 sdf2 的标签为空白。
我认为这与缺少 UUID 和标签有关
[root@localhost dev]# sudo ntfslabel /dev/sdf2 MEDIA
Error getting information about /dev/sdf2: Input/output error
[root@localhost dev]# tune2fs /dev/sdf2 -U 8E5473C95473B317
tune2fs 1.42.9 (28-Dec-2013)
tune2fs: Input/output error while trying to open /dev/sdf2
Couldn't find valid filesystem superblock.
甚至不确定我这样做是否正确。希望数据不会丢失
如果您需要其他输出,请告诉我。
答案1
它固定了!
采取的步骤
1.
root@localhost james]# umount -v /dev/sdf2
umount: /run/media/james (/dev/sdf2) unmounted
2.
cd /run/media/james
3.
mkdir MEDIA
4.
vi /etc/fstab
5.
编辑 fstab
/dev/sdf2 /run/media/james/MEDIA ntfs-3g defaults 0 0
6.
mount /dev/sdf2
非常感谢CENTOS社区!