My fstab entries
[19:43 root@server ~]# cat /etc/fstab # # /etc/fstab # Created by anaconda on Sat Feb 3 11:35:29 2018 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # UUID=01c7c465-b326-453a-9769-e7727eaa47d7 / ext4 noatime,nobh,nobarrier,commit=60,data=writeback,relatime,errors=remount-ro 0 0
1. Add the settings to fstab then check the syntax
[19:07 root@server ~]# mount -a
2.reboot the os it will boot into read on file system dont panic
[18:43 root@server ~]# touch test touch: cannot touch 'test': Read-only file system
3.check if the device has journaling if it is enabled that caused read only file system while booting.
[18:50 root@server ~]# tune2fs -l /dev/sda3 | fgrep has_journal Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
4.Making required changes
[18:55 root@server ~]# sudo tune2fs -o journal_data_writeback /dev/sda3 tune2fs 1.43.4 (31-Jan-2017) [18:56 root@server ~]# tune2fs -O ^has_journal /dev/sda3
5.check fstab
[19:07 root@server ~]# mount -a [19:43 root@server ~]# cat /etc/fstab # # /etc/fstab # Created by anaconda on Sat Feb 3 11:35:29 2018 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # UUID=01c7c465-b326-453a-9769-e7727eaa47d7 / ext4 noatime,nobh,nobarrier,commit=60,data=writeback,relatime,errors=remount-ro 0 0 UUID=f0e9431d-ff9f-4d4d-9b21-8194c79e336c /boot ext4 defaults 1 2 UUID=ae23eb2a-ff04-478b-abf1-e297641dc26f swap swap defaults 0 0 UUID=e9480814-7c11-4ed1-956a-ab46610c5079 /media/data ext4 defaults 0 0
6.reboot.
7.Check the disk write speeds with dd
[00:11 cipher ~/vagrant]$ sudo dd if=/dev/zero of=store6 bs=1M count=1000 1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB, 1000 MiB) copied, 3.06385 s, 342 MB/s