安装 USB 时出现“安装:错误的文件系统类型..”错误

安装 USB 时出现“安装:错误的文件系统类型..”错误

我在尝试在 Raspberry Pi (Wheezy) 上安装 USB 驱动器时遇到了困难。我已经重新格式化它(ext4)并尝试重新安装它/media/owncloud(如下sudo chown -R pi:pi /media/owncloud),但安装时遇到错误:

pi@raspberrypi /media $ sudo mount /dev/sda1 /media/owncloud -o uid=pi,gid=pi -t ext4
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

pi@raspberrypi /media $ dmesg | tail
[   39.484660] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   47.116854] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SSFS
[  310.473774] EXT4-fs (sda1): Unrecognized mount option "uid=1000" or missing value
[  732.929020] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 1220.278044] EXT4-fs (sda1): Unrecognized mount option "uid=1000" or missing value
[ 1331.002350] FAT-fs (sda1): bogus number of reserved sectors
[ 1331.002394] FAT-fs (sda1): Can't find a valid FAT filesystem
[ 2050.397804] EXT4-fs (sda1): Unrecognized mount option "uid=1000" or missing value
[ 7973.889779] EXT4-fs (sda1): Unrecognized mount option "uid=1000" or missing value
[ 8019.644801] EXT4-fs (sda1): Unrecognized mount option "uid=1000" or missing value

知道是什么原因造成的吗?我在其他地方尝试了一种解决方案(sudo e2fsck -f -b 32768 -y /dev/sda1),结果是:

/dev/sda1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda1: 11/493856 files (0.0% non-contiguous), 68109/1974271 blocks

..但没有解决问题。有任何想法吗?

答案1

你不能-o uid=pi,gid=piext4;一起使用以下应该有效:

sudo mount /dev/sda1 /media/owncloud -t ext4

uid和选项gid适用于本身不跟踪所有权的文件系统(例如 FAT)。ext4是一个 POSIX 文件系统,并保留自己的有关文件所有权的信息,因此它不需要(也不能使用)uidgid选项。

相关内容