helloworld12
2018-07-23 21:20:45 +08:00
来求教下,谢谢
root@Hiwifi:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
ubi0:overlay on /overlay type ubifs (rw,relatime)
overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,relatime)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
ubi1:opt on /tmp/cryptdata type ubifs (rw,dirsync,noatime,nodiratime)
tmpfs on /plugins/tmp type tmpfs (rw,nosuid,nodev,noatime)
ubi1:opt on /plugins/crypt type ubifs (rw,dirsync,noatime,nodiratime)
/dev/sda1 on /tmp/storage/sda1 type vfat (rw,dirsync,nosuid,nodev,noatime,nodiratime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro)
/dev/sda2 on /tmp/storage/sda2 type exfat (rw,dirsync,nosuid,nodev,noatime,nodiratime,fmask=0000,dmask=0000,allow_utime=0022,iocharset=utf8,namecase=0,errors=remount-ro)
root@Hiwifi:~# mount -t exfat /dev/sda2 /mnt
root@Hiwifi:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 10.3M 1.9M 7.8M 20% /
/dev/root 11.3M 11.3M 0 100% /rom
tmpfs 130.5M 2.8M 127.7M 2% /tmp
ubi0:overlay 10.3M 1.9M 7.8M 20% /overlay
overlayfs:/overlay 10.3M 1.9M 7.8M 20% /
tmpfs 524.3K 0 524.3K 0% /dev
cgroup_root 130.5M 0 130.5M 0% /sys/fs/cgroup
ubi1:opt 35.5M 20.5K 33.6M 0% /tmp/cryptdata
tmpfs 130.5M 2.8M 127.7M 2% /plugins/tmp
ubi1:opt 35.5M 20.5K 33.6M 0% /plugins/crypt
/dev/sda1 206.5M 512 206.5M 0% /tmp/storage/sda1
/dev/sda2 999.9G 11.3M 999.9G 0% /tmp/storage/sda2
/dev/sda2 999.9G 11.3M 999.9G 0% /mnt
root@Hiwifi:~# mkdir /mnt/workdir
root@Hiwifi:~# mount -t overlay overlayfs:/mnt -olowerdir=/,upperdir=/mnt,workdir=/mnt/workdir /
mount: mounting overlayfs:/mnt on / failed: No such device
上面写的, overlay 挂载方式,错在哪里了