mount挂载错误

时间:2023-03-09 16:19:57
mount挂载错误

错误信息:

usa@usa-desktop:~/svn/aispeech/speechplatform/trunk/proxy/src$ sudo mount -t tmpfs -o size=2000MB tmpfs /aires
mount: wrong fs type, bad option, bad superblock on tmpfs,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
系统日志中可能有一些重要的信息,
试试用 dmesg | tail 之类的命令查看。

dmesg之后反馈如下:

[3699070.890433] tmpfs: Bad value '2000MB' for mount option 'size'

usa@usa-desktop:~/svn/aispeech/speechplatform/trunk/proxy/src$ sudo mount -t tmpfs -o size=2000M tmpfs /aires  [成功]

usa@usa-desktop:~/svn/aispeech/speechplatform/trunk/proxy/src$ df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/sda2 290G 271G 4.7G 99% /
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 790M 860K 789M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 27M 2.0G 2% /run/shm
tmpfs 2.0G 0 2.0G 0% /aires          [OK]