NanoPi NEO でUSBメモリを自動マウントする


https://drive.google.com/file/d/0B8VPJ2WEueB8cGtCeTk1eldQbTQ/view?usp=sharing

usbmountを使えば一発なのですが、NanoPi NEOの公式ファームウェアではデフォルトの状態だとusbmountが入らないので、`/etc/apt/sources.list`を編集して、usbmountがはいるようにします。

```
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ports.ubuntu.com/ubuntu-ports/ wily main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ wily main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ wily-updates main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ wily-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
#deb http://ports.ubuntu.com/ubuntu-ports/ wily universe
#deb-src http://ports.ubuntu.com/ubuntu-ports/ wily universe
#deb http://ports.ubuntu.com/ubuntu-ports/ wily-updates universe
#deb-src http://ports.ubuntu.com/ubuntu-ports/ wily-updates universe

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ports.ubuntu.com/ubuntu-ports/ wily-backports main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ wily-backports main restricted

deb http://ports.ubuntu.com/ubuntu-ports/ wily-security main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ wily-security main restricted
#deb http://ports.ubuntu.com/ubuntu-ports/ wily-security universe
#deb-src http://ports.ubuntu.com/ubuntu-ports/ wily-security universe
#deb http://ports.ubuntu.com/ubuntu-ports/ wily-security multiverse
#deb-src http://ports.ubuntu.com/ubuntu-ports/ wily-security multiverse
```

↓

```
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ports.ubuntu.com/ubuntu-ports/ wily main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ wily main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ wily-updates main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ wily-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ wily universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ wily universe
deb http://ports.ubuntu.com/ubuntu-ports/ wily-updates universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ wily-updates universe

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ports.ubuntu.com/ubuntu-ports/ wily-backports main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ wily-backports main restricted

deb http://ports.ubuntu.com/ubuntu-ports/ wily-security main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ wily-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ wily-security universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ wily-security universe
deb http://ports.ubuntu.com/ubuntu-ports/ wily-security multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ wily-security multiverse
```

編集後、

```bash
apt-get update
```

usbmountをインストールします。

```bash
apt-get install usbmount
```

この状態でUSBメモリを挿したら、`/media/usb0`にマウントされます。
`/media/usb -> /media/usb0`というシンボリックリンクも作成されていました。