after removingrootfs successfully, when trying to mount root, getting error as "/dev/dm-0 read-write, is write-protected"

176 views
Skip to first unread message

open_source_freak

unread,
Apr 23, 2020, 4:44:51 PM4/23/20
to Chromium OS Discussion
I am using a Chrome image and trying to remove rootfs so that I can mount root as read write. 


#/usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification --partitions 2 --force

      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      ! INFO: ALL SANITY CHECKS WERE BYPASSED. YOU ARE ON YOUR OWN. !
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Start in 1 second(s) (^C to abort)...
make_dev_ssd.sh: INFO: Kernel A: Disabled rootfs verification.
make_dev_ssd.sh: INFO: Backup of Kernel A is stored in: /mnt/stateful_partition/cros_sign_backups/kernel_A_20200421_065809.bin
make_dev_ssd.sh: INFO: Kernel A: Re-signed with developer keys successfully.
make_dev_ssd.sh: INFO: Successfully re-signed 1 of 1 kernel(s)  on device /dev/nvme0n1.
make_dev_ssd.sh: INFO: Please remember to reboot before updating the kernel on this device.

#reboot
#system reboot successful.

localhost ~ # mount -o remount,rw /
mount: /: cannot remount /dev/dm-0 read-write, is write-protected.

OS built used: R84.

Can anybody help here on how to overcome /dev/dm-0 read-write is write-protected error ? 

dragon788

unread,
Apr 23, 2020, 6:13:52 PM4/23/20
to Chromium OS Discussion
If I recall you need to run this twice because there are two root partitions the system switches between.

Hara Acharya

unread,
Apr 24, 2020, 6:16:09 PM4/24/20
to drag...@gmail.com, Chromium OS Discussion
Thanks for pointer.
For others to keep a note remove rootfs from both partitions 2 and 4 as below to mount the rootas RW:
#/usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification --partitions 2 --force 
#/usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification --partitions 4 --force 




--
--
Chromium OS Discussion mailing list: chromium-...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-discuss
---
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-dis...@chromium.org.
Reply all
Reply to author
Forward
0 new messages