fstab questions and suggestions

Raspberry Pi 2

fstab questions and suggestions

Postby venuism » Fri Apr 08, 2016 1:45 am

I am using Arch Linux on my Raspberry Pi 2, and had some questions about fstab.
Here is my current /etc/fstab file:
$this->bbcode_second_pass_code('', '#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
/dev/mmcblk0p1 /boot vfat ro,noatime,nodev,noexec,nosuid 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime,data=ordered 0 1
tmpfs /dev/shm tmpfs rw,noatime,nodev,noexec,nosuid 0 0
tmpfs /tmp tmpfs rw,mode=0755,noatime,nodev,nosuid,size=25m 0 0
tmpfs /var/log tmpfs rw,mode=0755,noatime,nodev,noexec,nosuid,size=25m 0 0
tmpfs /run tmpfs rw,mode=0755,noatime,nodev,nosuid,size=25m 0 0')


Now here are my questions:
1. The user/nouser option prevents people from mounting or unmounting. Should I prevent /boot from being mounted/unmounted by users so that it cant be changed to read write? I want it to remain as read only, UNLESS root wants to remount it as read-write.
2. Are there any suggestions on which partitions should use sync/async? This does not seem to be a common option used on peoples fstab files.
3. Can I also have some suggests on modes/masks to apply to each partition?
I know /run shouldnt have write privileges from users so I need to set a specific mode and mask for that right?
4. How big should /run even need to be, aswell as /dev/shm? Its running on a tmpfs so I wanna use the right amount and not a bunch, which I think 25mb is probably a lot for it.
5. Am I missing any other entrees that are suggested in fstab that maybe should be ran on a tmpfs or have its own partition?
6. Should an fsck check be done on every partition?
venuism
 
Posts: 1
Joined: Fri Apr 08, 2016 1:42 am

Return to Broadcom

Who is online

Users browsing this forum: No registered users and 1 guest