how to remount coreos root partition with data=journal ?

338 views
Skip to first unread message

elinks

unread,
Feb 29, 2016, 8:44:18 AM2/29/16
to CoreOS Dev
# cp /usr/lib64/systemd/system/remount-root.service  /etc/systemd/system 
# edit:   ExecStart=/bin/mount -o remount,rw,data=journal /
# systemctl  daemon-reload
# reboot

but noting changed, then I try to run:

# /bin/mount -o remount,rw,data=journal /

it complains error: 
# dmesg 
[  129.034429] EXT4-fs (sda9): Cannot change data mode on remount

Is there any way to remount root partition with specified mount options  ? 

Thanks

elinks

unread,
Mar 1, 2016, 10:46:14 AM3/1/16
to CoreOS Dev
anybody could give me any idea ? 

Ivan

unread,
Mar 9, 2016, 1:21:55 PM3/9/16
to CoreOS Dev
You can append set linux_append="rootflags=rw,data=journal" to /usr/share/oem/grub.cf and then reboot.

Cheers,
-Ivan

Michael Marineau

unread,
Mar 9, 2016, 1:48:41 PM3/9/16
to coreos-dev

That would be grub.conf, though in this case you can also modify default mount flags for a filesystem with tune2fs.

Brandon Philips

unread,
Mar 14, 2016, 11:28:30 AM3/14/16
to coreos-dev
Marineau- Sounds like we should document this. Could you write a quick doc?

Geoff Levand

unread,
Mar 15, 2016, 8:48:06 PM3/15/16
to coreo...@googlegroups.com
On Wed, 2016-03-09 at 10:21 -0800, Ivan wrote:
> You can append set linux_append="rootflags=rw,data=journal" to /usr/share/oem/grub.cf and then reboot.

That should be /usr/share/oem/grub.cfg.

See 'Search for the OEM partition, load additional configuration if found.':

https://github.com/coreos/scripts/blob/master/build_library/grub.cfg#L59

-Geoff
Reply all
Reply to author
Forward
0 new messages