Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 843  / 1 Year ago, fri, february 17, 2023, 2:15:54

I have ubuntu 13.04 and kernel 3.11.



When I press e key at grub bootmenu I see the read only ro option at root partition and when I start system with that option I have low resolution and other problems.
Otherwise removing ro option before starting the system makes everything work fine.



I would like to know how to permanently remove ro option.
I have already checked /etc/default/grub but there is no ro, here is my grub:



GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_DEFAULT=saved
GRUB_GFXMODE=1920x1080
GRUB_SAVEDEFAULT=false
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""


How can I do that? What file do we see when using e key at grub bootmenu? If I know that maybe I'll be able to edit it.



Thanks


More From » 13.04

 Answers
5

The file you're looking for is /etc/grub.d/10_linux. Look for the line



linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}


and remove ro from it. You should then let grub update its /boot/grub/grub.cfg by running



sudo update-grub


You shouldn't edit the file /boot/grub/grub.cfg manually as it will be restored to default each time you upgrade the grub package.



Edit



That said, it's probably not a good idea to remove the ro parameter. This parameter is there for a reason: it's so that filesystem consistency check (fsck) utilities can work safely on the root device at boot time. Your /etc/fstab then ensures that it will get remounted rw. See man bootparam


[#29513] Saturday, February 18, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
shadowoof

Total Points: 293
Total Questions: 112
Total Answers: 137

Location: Burkina Faso
Member since Sun, Nov 21, 2021
3 Years ago
;