Why can not unlocks the read-only root filesystem?

4,507 views
Skip to first unread message

Betta Mandor

unread,
Dec 28, 2017, 8:30:29 AM12/28/17
to Chromium OS discuss
I use the command "make_dev_ssd.sh" unlock read-only root filesystem successfully yesterday,but when i copy file to /lib/modules/3.8.11/kernel today,system tips:Read-only file system.I re-run the command:
$ sudo /usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification --partitions 4
make_dev_ssd.sh: INFO: Kernel B: Disabled rootfs verification.
make_dev_ssd.sh: INFO: Backup of Kernel B is stored in: /mnt/stateful_partition/backups/kernel_B_20171228_211828.bin
make_dev_ssd.sh: INFO: Kernel B: Re-signed with developer keys successfully.
make_dev_ssd.sh: INFO: Successfully re-signed 1 of 1 kernel(s)  on device /dev/sda.

When i restart chromebook,and try to copy cifs.ko to lib/modules/3.8.11/kernel/fs/cifs/,system tips:Read-only file system,but cifs.ko is also copied,just the size is 4096 byte:
-rw-r--r-- 1 root root 4096 Dec 28 21:11 cifs.ko
What did i do wrong? Thanks!

Bartosz Fabianowski

unread,
Dec 28, 2017, 8:35:27 AM12/28/17
to duji...@gmail.com, Chromium OS discuss
You have to actually remount the file system read-write:

mount -o remount,rw /

- Bartosz
> --
> --
> Chromium OS discuss mailing list: chromium-...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-os-discuss?hl=en
>

Betta Mandor

unread,
Dec 28, 2017, 8:44:58 AM12/28/17
to Chromium OS discuss, duji...@gmail.com
Thank you,but still can not be solved.
# mount -o remount,rw /
mount: cannot remount /dev/sda5 read-write, is write-protected

在 2017年12月28日星期四 UTC+8下午9:35:27,Bartosz Fabianowski写道:

Betta Mandor

unread,
Dec 28, 2017, 10:04:23 AM12/28/17
to Chromium OS discuss
add on:
I restart chromebook,run the command:
$ mount | grep sda5
/dev/sda5 on / type ext2 (rw,relatime)
The type is "rw".Once try to copy file to /lib/modules/3.8.11/kernel/fs/cifs/:
$ sudo cp cifs.ko /lib/modules/3.8.11/kernel/fs/cifs/
cp: cannot create regular file '/lib/modules/3.8.11/kernel/fs/cifs/cifs.ko': Read-only file system
ls -l
total 4
-rw-r--r-- 1 root root 4096 Dec 28 22:48 cifs.ko
Re-run the command:
$ mount | grep sda5
$ mount | grep sda5
/dev/sda5 on / type ext2 (ro,relatime)
The type automatically changed to "ro".What happend?

Betta Mandor

unread,
Dec 28, 2017, 10:22:59 AM12/28/17
to Chromium OS discuss
Add on:
Run dmesg:
[   65.752231] EXT4-fs error (device sda5): ext4_mb_generate_buddy:742: group 6, 5119 clusters in bitmap, 5156 in gd
[   65.752250] EXT4-fs (sda5): Remounting filesystem read-only

Is my hard disk is broken?

Mike Frysinger

unread,
Dec 28, 2017, 10:39:54 AM12/28/17
to Betta Mandor, Chromium OS discuss
are you sure you want to be using partition 4 ?  why not 2 ?  you didn't say which kernel slot you're actually booting (a-vs-b).
-mike

--
--
Chromium OS discuss mailing list: chromium-os-discuss@chromium.org

DennisLfromGA

unread,
Dec 28, 2017, 11:02:33 AM12/28/17
to Chromium OS discuss, duji...@gmail.com
Betta,

To add, there's a newer method that's part of the Debugging Features that you can use to make the rootfs read-writable, it's here -
  • /usr/libexec/debugd/helpers/dev_features_rootfs_verification
I believe that program will determine the active boot pair and apply the changes to it.

~DennisL


On Thursday, December 28, 2017 at 10:39:54 AM UTC-5, Mike Frysinger wrote:
are you sure you want to be using partition 4 ?  why not 2 ?  you didn't say which kernel slot you're actually booting (a-vs-b).
-mike
On Thu, Dec 28, 2017 at 8:30 AM, Betta Mandor <duji...@gmail.com> wrote:
I use the command "make_dev_ssd.sh" unlock read-only root filesystem successfully yesterday,but when i copy file to /lib/modules/3.8.11/kernel today,system tips:Read-only file system.I re-run the command:
$ sudo /usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification --partitions 4
make_dev_ssd.sh: INFO: Kernel B: Disabled rootfs verification.
make_dev_ssd.sh: INFO: Backup of Kernel B is stored in: /mnt/stateful_partition/backups/kernel_B_20171228_211828.bin
make_dev_ssd.sh: INFO: Kernel B: Re-signed with developer keys successfully.
make_dev_ssd.sh: INFO: Successfully re-signed 1 of 1 kernel(s)  on device /dev/sda.

When i restart chromebook,and try to copy cifs.ko to lib/modules/3.8.11/kernel/fs/cifs/,system tips:Read-only file system,but cifs.ko is also copied,just the size is 4096 byte:
-rw-r--r-- 1 root root 4096 Dec 28 21:11 cifs.ko
What did i do wrong? Thanks!

--
--
Chromium OS discuss mailing list: chromium-...@chromium.org
Reply all
Reply to author
Forward
0 new messages