7

I installed Arch Linux ARM for Raspberry Pi and it doesn't have an entry for the root directory in /etc/fstab but it's still mounted on boot somehow. How is it mounted and how can mount options be modified for it?

ivvi
  • 227
  • 4
  • 9

1 Answers1

7

While I don't have Arch Linux to check if this, it's probably mounted by kernel itself and never remounted. You can check your /proc/cmdline and you should see something like root=/dev/mmcblk0p2 and rootfstype=ext4 options. You can set them in /boot/cmdline.txt file. First one specifies which device (partition) should be mounted as root device, second one specifies filesystem type. If you want to change some mount options, you can use rootflags= kernel option - just specify proper mount option string (for example rootflags=data=writeback,acl).

Note that you can only specify filesystem specific options like this, filesystem independent options seems not to be working.

Also note that if you make an error setting this option, your system wont boot. In order to fix this you have to use emergency boot or change your /boot/cmdline.txt file on other computer.

You can also remount your root file system somewhere in the boot process with following command:

mount -o remount,data=ordered /
Krzysztof Adamski
  • 9,605
  • 1
  • 38
  • 53