为什么我无法在外部硬盘上写入?

为什么我无法在外部硬盘上写入?

我正在使用 Arch Linux。我无法在外部硬盘上写入。我尝试通过属性手动更改权限,但不允许这样做。我该如何解决这个问题?

fsck -l这是和的输出mount

[root@localhost shravan]# fsck -l
fsck from util-linux 2.24.1
e2fsck 1.42.9 (28-Dec-2013)
/dev/sda1 is mounted.
e2fsck: Cannot continue, aborting.


[root@localhost shravan]# mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=1996364k,nr_inodes=499091,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
configfs on /sys/kernel/config type configfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=399844k,mode=700,uid=1000,gid=1000)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sdb1 on /run/media/shravan/6FA6C3EC7A96B1D0 type ntfs (ro,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0177,dmask=077,nls=utf8,errors=continue,mft_zone_multiplier=1,uhelper=udisks2)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)

答案1

从我在pastebin页面的输出中观察到的,我看到外部HDD被格式化为NTFS分区。

/dev/sdb1 on /run/media/shravan/6FA6C3EC7A96B1D0 type ntfs 
(ro,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0177,dmask=077,nls=utf8,
errors=continue,mft_zone_multiplier=1,uhelper=udisks2)

因此,我相信如果您将分区重新安装为 NTFS 类型,您将能够使用外部硬盘。只需使用卸载分区umount /dev/sdb1,然后使用以下命令重新安装即可。

mount /dev/sdb1 /run/media/shravan/ -t ntfs-3g -o nls=utf8,umask=0222

根据 Patrick 的评论,文件系统是使用内核中的 ntfs 驱动程序安装的,该驱动程序是只读的。因此,如果系统有ntfs-3g应该mount用作,

mount /dev/sdb1 /run/media/shravan/ -t ntfs-3g -o nls=utf8,umask=0222

参考

http://www.pendrivelinux.com/mounting-a-windows-xp-ntfs-partition-in-linux/ http://chat.stackexchange.com/rooms/26/conversation/ntfs-3g-use http://chat.stackexchange.com/rooms/26/conversation/mikeserv-suggestion

相关内容