You are not logged in.
What practical difference does it make to use the kernel parameter "rw" instead of "ro"? Why is "ro" default if "everyone" (all examples in the wiki) should use "rw"?
Last edited by dumbl3d0re (2016-03-19 10:01:28)
Offline
Rw is what is default. Rw means that a partition is readable and writable, while Ro means that they are only readable.
Use the Source, Luke!
Offline
Read-only is a fallback when nothing is specified. Consider it a safety feature.
Last edited by ugjka (2016-03-18 20:10:24)
Offline
Rw is what is default.
mkinitcpio uses ro as default value when neither rw or ro is set by the boot loader. [1]
I can't find any information on the systemd-boot page that says that it use "rw" by default. If you are right and the wiki wrong, I would appreciate it if you could edit the wiki. ![]()
Rw means that a partition is readable and writable, while Ro means that they are only readable.
Read-only is a fallback when nothing is specified. Consider it a safety feature.
I understand that I should use "rw", but I don't understand why?
[1] https://wiki.archlinux.org/index.php/Ke … meter_list
Last edited by dumbl3d0re (2016-03-18 20:17:05)
Offline
Read the footnote.
The kernel defaults to rw (see 'man bootparam'), but the initrd scripts default to ro and overrides this. The bootloader you use is irrelevant.
You should specify the rw flag if you're using the fsck flag in your mkinitcpio config, the reason for that is described here.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I think the point is that a *read-only* filesystem can be fsck'd and repaired, and also stands more chance of being mountable (which is pretty essential for bootup). Automatically FSCKing the root filesystem at bootup (and triggering a repair, if needed) is a sensible precaution.
As a nice example of how it's done (cough), see my initscript, which is a cobbling together of all the nice parts I saw and pinched from other initscripts. Except systemd of course. ![]()
Last edited by brebs (2016-03-18 20:44:18)
Offline