read-only filesystem error when trying to install Magisk #58

Open
opened 2022-11-28 14:39:10 -05:00 by cobalt2727 · 6 comments
cobalt2727 commented 2022-11-28 14:39:10 -05:00 (Migrated from github.com)

tl;dr is in the title, console output below:

cobalt@ideapad-flex-5:~/waydroid_script$ sudo python3 waydroid_extras.py -m
/home/cobalt/.cache/waydroid_script/downloads
==> Found system image: /var/lib/waydroid/images/system.img
==> Resizing system image....
==> Failed to resize image '/var/lib/waydroid/images/system.img' .. !  resize2fs 1.46.5 (30-Dec-2021)
resize2fs: Read-only file system While checking for on-line resizing support
Filesystem at /var/lib/waydroid/images/system.img is mounted on /var/lib/waydroid/rootfs; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1

==> You can exit and retry with sudo or force continue (May fail installation !), Continue ? [y/N]: y
==> Unmounting .. 
==> Extracting archive...
==> Installing magisk now ...
Traceback (most recent call last):
  File "/home/cobalt/waydroid_script/waydroid_extras.py", line 594, in <module>
    main()
  File "/home/cobalt/waydroid_script/waydroid_extras.py", line 589, in main
    install_magisk()
  File "/home/cobalt/waydroid_script/waydroid_extras.py", line 501, in install_magisk
    with open(os.path.join(sys_image_mount, "system", "bin", "init-magisk.sh"), "w") as imf:
OSError: [Errno 30] Read-only file system: '/tmp/waydroidimage/system/bin/init-magisk.sh'

This is running on Pop!_OS 22.04

tl;dr is in the title, console output below: ```bash cobalt@ideapad-flex-5:~/waydroid_script$ sudo python3 waydroid_extras.py -m /home/cobalt/.cache/waydroid_script/downloads ==> Found system image: /var/lib/waydroid/images/system.img ==> Resizing system image.... ==> Failed to resize image '/var/lib/waydroid/images/system.img' .. ! resize2fs 1.46.5 (30-Dec-2021) resize2fs: Read-only file system While checking for on-line resizing support Filesystem at /var/lib/waydroid/images/system.img is mounted on /var/lib/waydroid/rootfs; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 1 ==> You can exit and retry with sudo or force continue (May fail installation !), Continue ? [y/N]: y ==> Unmounting .. ==> Extracting archive... ==> Installing magisk now ... Traceback (most recent call last): File "/home/cobalt/waydroid_script/waydroid_extras.py", line 594, in <module> main() File "/home/cobalt/waydroid_script/waydroid_extras.py", line 589, in main install_magisk() File "/home/cobalt/waydroid_script/waydroid_extras.py", line 501, in install_magisk with open(os.path.join(sys_image_mount, "system", "bin", "init-magisk.sh"), "w") as imf: OSError: [Errno 30] Read-only file system: '/tmp/waydroidimage/system/bin/init-magisk.sh' ``` This is running on Pop!_OS 22.04
EvilBoi123 commented 2022-12-11 01:55:12 -05:00 (Migrated from github.com)

yeah also happen to me in Archlinux

yeah also happen to me in Archlinux
ayasa520 commented 2022-12-15 07:35:29 -05:00 (Migrated from github.com)

I think it's fine if you just reboot.
Second, the script to install magisk doesn't work for the latest waydroid image. You can check out this fork https://github.com/LegacyGamerHD/waydroid_script

I think it's fine if you just reboot. Second, the script to install magisk doesn't work for the latest waydroid image. You can check out this fork https://github.com/LegacyGamerHD/waydroid_script
cobalt2727 commented 2022-12-15 16:04:37 -05:00 (Migrated from github.com)

will there be a PR to this repo later?

will there be a PR to this repo later?
Gentran commented 2022-12-16 04:07:39 -05:00 (Migrated from github.com)

Try run e2fsck on system.img before running the script.

Try run e2fsck on system.img before running the script.
ayasa520 commented 2022-12-16 04:57:18 -05:00 (Migrated from github.com)

will there be a PR to this repo later?

I think this repo is no longer maintained. Anyway this fork I mentioned is working. https://github.com/LegacyGamerHD/waydroid_script/pull/2#issuecomment-1352636617

> will there be a PR to this repo later? I think this repo is no longer maintained. Anyway this fork I mentioned is working. https://github.com/LegacyGamerHD/waydroid_script/pull/2#issuecomment-1352636617
casualsnek commented 2022-12-16 14:25:04 -05:00 (Migrated from github.com)

will there be a PR to this repo later?

I think this repo is no longer maintained. Anyway this fork I mentioned is working. LegacyGamerHD#2 (comment)

I will still accept PR(s) after checking, the repo is not too active as i no longer mess around with waydroid, i will start working on cleaning up code and try to update stuffs asap !

> > will there be a PR to this repo later? > > I think this repo is no longer maintained. Anyway this fork I mentioned is working. [LegacyGamerHD#2 (comment)](https://github.com/LegacyGamerHD/waydroid_script/pull/2#issuecomment-1352636617) I will still accept PR(s) after checking, the repo is not too active as i no longer mess around with waydroid, i will start working on cleaning up code and try to update stuffs asap !
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wbruno/waydroid_script#58