Help:Ctrtool/rootfs-mount

Directory structure

By default, ctrtool rootfs-mount creates the following tree of files and directories:

Mount points

/dev/null on / type tmpfs (rw,relatime,mode=755,uid=1000,gid=1000)
none on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=666)
none on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
udev on /dev/full type devtmpfs (rw,nosuid,relatime,size=6000000k,nr_inodes=1500000,mode=755)
udev on /dev/null type devtmpfs (rw,nosuid,relatime,size=6000000k,nr_inodes=1500000,mode=755)
udev on /dev/random type devtmpfs (rw,nosuid,relatime,size=6000000k,nr_inodes=1500000,mode=755)
udev on /dev/tty type devtmpfs (rw,nosuid,relatime,size=6000000k,nr_inodes=1500000,mode=755)
udev on /dev/urandom type devtmpfs (rw,nosuid,relatime,size=6000000k,nr_inodes=1500000,mode=755)
udev on /dev/zero type devtmpfs (rw,nosuid,relatime,size=6000000k,nr_inodes=1500000,mode=755)
udev on /dev/net/tun type devtmpfs (rw,nosuid,relatime,size=6000000k,nr_inodes=1500000,mode=755)

Filesystem tree

.:
total 4
drwxr-xr-x 7 root root  380 May 18 19:16 .
drwxr-xr-x 4 root root 4096 May 18 19:16 ..
lrwxrwxrwx 1 root root   14 May 18 19:16 bin -> _fsroot_rw/bin
drwxr-xr-x 5 root root  340 May 18 19:16 dev
lrwxrwxrwx 1 root root   14 May 18 19:16 etc -> _fsroot_rw/etc
lrwxrwxrwx 1 root root   15 May 18 19:16 home -> _fsroot_rw/home
lrwxrwxrwx 1 root root   14 May 18 19:16 lib -> _fsroot_rw/lib
lrwxrwxrwx 1 root root   16 May 18 19:16 lib32 -> _fsroot_rw/lib32
lrwxrwxrwx 1 root root   16 May 18 19:16 lib64 -> _fsroot_rw/lib64
lrwxrwxrwx 1 root root   17 May 18 19:16 libx32 -> _fsroot_rw/libx32
lrwxrwxrwx 1 root root   14 May 18 19:16 opt -> _fsroot_rw/opt
drwx------ 2 root root   40 May 18 19:16 proc
lrwxrwxrwx 1 root root   15 May 18 19:16 root -> _fsroot_rw/root
drwxr-xr-x 4 root root   80 May 18 19:16 run
lrwxrwxrwx 1 root root   15 May 18 19:16 sbin -> _fsroot_rw/sbin
drwx------ 2 root root   40 May 18 19:16 sys
drwxrwxrwt 2 root root   40 May 18 19:16 tmp
lrwxrwxrwx 1 root root   14 May 18 19:16 usr -> _fsroot_rw/usr
lrwxrwxrwx 1 root root   14 May 18 19:16 var -> _fsroot_rw/var

./dev:
total 0
drwxr-xr-x 5 root   root     340 May 18 19:16 .
drwxr-xr-x 7 root   root     380 May 18 19:16 ..
lrwxrwxrwx 1 root   root      13 May 18 19:16 fd -> /proc/self/fd
crw-rw-rw- 1 nobody nogroup 1, 7 May  5 17:59 full
drwxrwxrwt 2 root   root      40 May 18 19:16 mqueue
drwxr-xr-x 2 root   root      60 May 18 19:16 net
crw-rw-rw- 1 nobody nogroup 1, 3 May  5 17:59 null
lrwxrwxrwx 1 root   root       8 May 18 19:16 ptmx -> pts/ptmx
drwxr-xr-x 2 root   root       0 May 18 19:16 pts
crw-rw-rw- 1 nobody nogroup 1, 8 May  5 17:59 random
lrwxrwxrwx 1 root   root       8 May 18 19:16 shm -> /run/shm
lrwxrwxrwx 1 root   root       4 May 18 19:16 stderr -> fd/2
lrwxrwxrwx 1 root   root       4 May 18 19:16 stdin -> fd/0
lrwxrwxrwx 1 root   root       4 May 18 19:16 stdout -> fd/1
crw-rw-rw- 1 nobody nogroup 5, 0 May 17 22:59 tty
crw-rw-rw- 1 nobody nogroup 1, 9 May  5 17:59 urandom
crw-rw-rw- 1 nobody nogroup 1, 5 May  5 17:59 zero

./dev/mqueue:
total 0
drwxrwxrwt 2 root root  40 May 18 19:16 .
drwxr-xr-x 5 root root 340 May 18 19:16 ..

./dev/net:
total 0
drwxr-xr-x 2 root   root         60 May 18 19:16 .
drwxr-xr-x 5 root   root        340 May 18 19:16 ..
crw-rw-rw- 1 nobody nogroup 10, 200 May  5 17:59 tun

./dev/pts:
total 0
drwxr-xr-x 2 root root    0 May 18 19:16 .
drwxr-xr-x 5 root root  340 May 18 19:16 ..
crw-rw-rw- 1 root root 5, 2 May 18 19:16 ptmx

./proc:
total 0
drwx------ 2 root root  40 May 18 19:16 .
drwxr-xr-x 7 root root 380 May 18 19:16 ..

./run:
total 0
drwxr-xr-x 4 root root  80 May 18 19:16 .
drwxr-xr-x 7 root root 380 May 18 19:16 ..
drwxrwxrwt 2 root root  40 May 18 19:16 lock
drwxrwxrwt 2 root root  40 May 18 19:16 shm

./run/lock:
total 0
drwxrwxrwt 2 root root 40 May 18 19:16 .
drwxr-xr-x 4 root root 80 May 18 19:16 ..

./run/shm:
total 0
drwxrwxrwt 2 root root 40 May 18 19:16 .
drwxr-xr-x 4 root root 80 May 18 19:16 ..

./sys:
total 0
drwx------ 2 root root  40 May 18 19:16 .
drwxr-xr-x 7 root root 380 May 18 19:16 ..

./tmp:
total 0
drwxrwxrwt 2 root root  40 May 18 19:16 .
drwxr-xr-x 7 root root 380 May 18 19:16 ..

The filesystem tree may appear to have broken symlinks, but that is by design. It is expected that a real filesystem be mounted on /_fsroot_rw and/or /_fsroot_ro; most commonly this might be a real persistent volume on /_fsroot_rw and a (bind mount of a) squashfs on /_fsroot_ro. Which of the symlinks point to /_fsroot_rw and /_fsroot_ro can be changed using -o root_link_opts=.