[Magisk] harkaman:
hi.

I have installed magisk in android x86 and new ramdisk is created. BUt where and how can i copy, since i lose root. How can I copy new ramdisk?

x86_64:/ $ su
x86_64:/ # cd /dev
x86_64:/dev # mkdir tmp
x86_64:/dev # mkdir tmp/magisk
x86_64:/dev # cd tmp/magisk
x86_64:/dev/tmp/magisk # cp -r /storage/B6B4-79A3/Magisk-v12.0/* .
x86_64:/dev/tmp/magisk # mv boot.img /data
x86_64:/dev/tmp/magisk # sh ./META-INF/com/google/android/update-binary
unzip: cannot find or open , .zip or .ZIP.
*****************************
Magisk v12.0 Boot Image Patcher
*****************************
0) /dev/tmp/magisk/common /-/
- Mounting /system(ro), /cache, /data
! System installed root detected, mount rw :(
- Device platform: x64
- Constructing environment
- Creating /data/magisk.img
Creating filesystem with parameters:
Size: 67108864
Block size: 4096
Blocks per group: 32768
Inodes per group: 4096
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 16384
Block groups: 1
Reserved block group size: 7
Created filesystem with 11/4096 inodes and 1294/16384 blocks
losetup: /data/magisk.img
losetup: /data/magisk.img
losetup: /data/magisk.img
- Mounting /data/magisk.img to /magisk
- Found Boot Image: /data/boot.img
- Unpacking boot image
MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Parsing boot image: [/data/boot.img]

IMG [AOSP]
KERNEL [6098096] @ 0x10008000
RAMDISK [1795598] @ 0x11000000
SECOND [0] @ 0x10f00000
DTB [0] @ 0x10000100
PAGESIZE [2048]
NAME []
CMDLINE []
COMPRESSION [gzip]

Decompressing to [ramdisk.cpio]

- Checking patch status
MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Loading cpio: [ramdisk.cpio]

- Backing up stock boot image
15424+0 records in
15424+0 records out
7897088 bytes (7.5MB) copied, 0.067583 seconds, 111.4MB/s
MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Compressing to [/data/stock_boot_1b72ffffff9317ffffffdaffffffe6ffffffe7ffffff8870ffffffc0ffffffabffffff8dffffffc4fffffff356ffffff937e7c16ffffffb0.img.gz]

- Patching ramdisk
MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Loading cpio: [ramdisk.cpio]

Dump cpio: [ramdisk.cpio]

MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Loading cpio: [ramdisk.cpio]

Dump cpio: [ramdisk.cpio]

MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Loading cpio: [ramdisk.cpio]

Extracting [init.rc] to [init.rc]

MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Loading cpio: [ramdisk.cpio]

Add entry [init.rc] (0750)

Dump cpio: [ramdisk.cpio]

MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Loading cpio: [ramdisk.cpio]

Extracting [sepolicy] to [sepolicy]

MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Loading cpio: [ramdisk.cpio]

Add entry [sepolicy] (0644)

Dump cpio: [ramdisk.cpio]

MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Loading cpio: [ramdisk.cpio]

Create directory [magisk] (0755)

Dump cpio: [ramdisk.cpio]

MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Loading cpio: [ramdisk.cpio]

Add entry [init.magisk.rc] (0750)

Dump cpio: [ramdisk.cpio]

MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Loading cpio: [ramdisk.cpio]

Add entry [sbin/magic_mask.sh] (0750)

Dump cpio: [ramdisk.cpio]

MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Loading cpio: [ramdisk.cpio]

Loading cpio: [ramdisk.cpio.orig]

Entry [init.magisk.rc] is new
Entry [init.rc] missmatch
Entry [magisk] is new
Entry [sbin/magic_mask.sh] is new
Entry [sepolicy] missmatch

Dump cpio: [ramdisk.cpio]

MagiskBoot (by topjohnwu) - Boot Image Modification Tool

- Repacking boot image
MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Parsing boot image: [/data/boot.img]

IMG [AOSP]
KERNEL [6098096] @ 0x10008000
RAMDISK [1795598] @ 0x11000000
SECOND [0] @ 0x10f00000
DTB [0] @ 0x10000100
PAGESIZE [2048]
NAME []
CMDLINE []
COMPRESSION [gzip]

Repack to boot image: [new-boot.img]

Compressing to [ramdisk.cpio.gz]

KERNEL [6098096] @ 0x10008000
RAMDISK [1851668] @ 0x11000000
SECOND [0] @ 0x10f00000
DTB [0] @ 0x10000100
PAGESIZE [2048]
NAME []
CMDLINE []
COMPRESSION [gzip]

Boot partition too small!

! Boot partition space insufficient
! Remove ramdisk backups and try again
MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Loading cpio: [ramdisk.cpio]

Remove [.backup]
Remove [.backup]
Remove [.backup]
Remove [.backup]

Dump cpio: [ramdisk.cpio]

MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Parsing boot image: [/data/boot.img]

IMG [AOSP]
KERNEL [6098096] @ 0x10008000
RAMDISK [1795598] @ 0x11000000
SECOND [0] @ 0x10f00000
DTB [0] @ 0x10000100
PAGESIZE [2048]
NAME []
CMDLINE []
COMPRESSION [gzip]

Repack to boot image: [new-boot.img]

Compressing to [ramdisk.cpio.gz]

KERNEL [6098096] @ 0x10008000
RAMDISK [1797690] @ 0x11000000
SECOND [0] @ 0x10f00000
DTB [0] @ 0x10000100
PAGESIZE [2048]
NAME []
CMDLINE []
COMPRESSION [gzip]

Boot partition too small!

! Boot partition size still too small...
Do not worry, it's fine...

New ramdisk.img ready - /dev/tmp/magisk/ramdisk.img
Copy it to an external drive to replace Android boot one

- Done
x86_64:/dev/tmp/magisk #