FS#15852 - [initscripts] fail to mount root read-write when ext4 with data=journal or data=ordered
Attached to Project:
Arch Linux
Opened by David Auinger (David1989) - Saturday, 08 August 2009, 09:44 GMT
Last edited by Aaron Griffin (phrakture) - Monday, 17 August 2009, 20:27 GMT
Opened by David Auinger (David1989) - Saturday, 08 August 2009, 09:44 GMT
Last edited by Aaron Griffin (phrakture) - Monday, 17 August 2009, 20:27 GMT
|
Details
Description:
My root partition is on ext4. When I add one of the options data=journal or data=writeback to the root partition in /etc/fstab, I get error messages saying root is read-only file system during boot. With option data=ordered mounting works well. Non-root partitions can be mounted with these options. Steps to reproduce: Install Arch Linux on ext4. Edit /etc/fstab. The line for / should look like: /dev/whatever / ext4 defaults,data=journal 0 1 Boot and watch the messages. |
This task depends upon
Closed by Aaron Griffin (phrakture)
Monday, 17 August 2009, 20:27 GMT
Reason for closing: Not a bug
Additional comments about closing: rootflags= kernel parameter is required in these cases
Monday, 17 August 2009, 20:27 GMT
Reason for closing: Not a bug
Additional comments about closing: rootflags= kernel parameter is required in these cases
It originally mounts the root partition as read-only with no options, then remounts it was rw. I'd be interested in seeing what happens if you do it manually
# mount -o ro /dev/sda1 /mnt
# mount -o remount,rw,data=journal /mnt
mount: /mnt not mounted already, or bad option
It works if I use data=journal also for mounting ro:
# umount /mnt
# mount -o ro,data=journal /dev/sda1 /mnt
# mount -o remount,rw,data=journal /mnt
# mount -o ro /dev/sda1 /mnt
# chroot /mnt
# mount -o remount,ro /
# mount -o remount,rw /
data=journal / data=ordered / data=writeback
Specifies the journalling mode for file data. Metadata is always journaled. To use modes other than ordered on the root file sys‐
tem, pass the mode to the kernel as boot parameter, e.g. rootflags=data=journal.
# mount -o ro /dev/sda1 /mnt
# chroot /mnt
# mount -o remount,ro /
# mount -o remount,rw /
Passing the mode as boot parameter works.