# Linux Kernel Module Cheat

### 8.3. rootfs

This is how `/proc/mounts` shows the root filesystem:

- hard disk: `/dev/root on / type ext2 (rw,relatime,block_validity,barrier,user_xattr)`. That file does not exist however.

- initrd: `rootfs on / type rootfs (rw)`

- initramfs: `rootfs on / type rootfs (rw)`

TODO: understand `/dev/root` better:

- https://unix.stackexchange.com/questions/295060/why-on-some-linux-systems-does-the-root-filesystem-appear-as-dev-root-instead

- https://superuser.com/questions/1213770/how-do-you-determine-the-root-device-if-dev-root-is-missing

- /dev/root