Skip to contentSkip to conversation

Request for Assistance: Decompressing EROFS Image without Mounting

DISCUSSION 王硕 via Linux-erofs 2 participants 6 messages Jan 3, 2024

lore
Share & tools
lore
#0 lore raw

Dear develoers,

I hope this email finds you well. My name is wang shuo, and I am reaching out to seek your expertise regarding decompressing an EROFS (Enhanced Read-Only File System) image without the need for mounting. I have come across a unique situation where I do not have permission to create a loop device for mounting the image, and I am exploring alternative methods to access its content.

I understand that the typical approach involves mounting the EROFS image to obtain its contents. However, due to specific constraints in my environment, this approach is not feasible for me. Therefore, I am reaching out to you to inquire if there are alternative methods or tools available that would allow me to decompress the EROFS image directly without the necessity of mounting it.

Your expertise in this area would be immensely valuable, and any guidance or recommendations you can provide will be highly appreciated. If there are specific tools, scripts, or techniques that you could suggest, it would greatly assist me in overcoming the challenges I currently face.

I am grateful for your time and consideration in this matter. Thank you for your dedication to the developer community, and I look forward to hearing from you soon.

Best regards,

wang shuo

[email protected]

#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#

#1 lore raw

Hi,

Quoted 12 lines · 王硕 via Linux-erofs

Dear develoers,

I hope this email finds you well. My name is wang shuo, and I am reaching out to seek your expertise regarding decompressing an EROFS (Enhanced Read-Only File System) image without the need for mounting. I have come across a unique situation where I do not have permission to create a loop device for mounting the image, and I am exploring alternative methods to access its content.

I understand that the typical approach involves mounting the EROFS image to obtain its contents. However, due to specific constraints in my environment, this approach is not feasible for me. Therefore, I am reaching out to you to inquire if there are alternative methods or tools available that would allow me to decompress the EROFS image directly without the necessity of mounting it.

Your expertise in this area would be immensely valuable, and any guidance or recommendations you can provide will be highly appreciated. If there are specific tools, scripts, or techniques that you could suggest, it would greatly assist me in overcoming the challenges I currently face.

Doesn't
fsck.erofs --extract dir_path <img>

meet your requirement?

Thanks,
Gao Xiang

Quoted 10 lines

I am grateful for your time and consideration in this matter. Thank you for your dedication to the developer community, and I look forward to hearing from you soon.>

Best regards,

wang shuo

[email protected]

#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#

#2 lore raw

Hi,

Thanks for your reply, and I have tried the option you suggested but failed.Could you help me to solve it?

Following is the result of executing the option:

[cid:40c1b183-dadf-48fe-97a7-2193f8a552db]

(I have downloaded the source code from https://github.com/erofs/erofs-utils/tree/dev, and make install on my Ubuntu20.04)

________________________________
发件人: Gao Xiang <[email protected]>
发送时间: 2024年1月3日 18:48:45
收件人: 王硕; [email protected]
主题: [External Mail]Re: Request for Assistance: Decompressing EROFS Image without Mounting

[外部邮件] 此邮件来源于小米公司外部,请谨慎处理。若对邮件安全性存疑,请将邮件转发给[email protected]进行反馈

Hi,

Quoted 12 lines · 王硕 via Linux-erofs

Dear develoers,

I hope this email finds you well. My name is wang shuo, and I am reaching out to seek your expertise regarding decompressing an EROFS (Enhanced Read-Only File System) image without the need for mounting. I have come across a unique situation where I do not have permission to create a loop device for mounting the image, and I am exploring alternative methods to access its content.

I understand that the typical approach involves mounting the EROFS image to obtain its contents. However, due to specific constraints in my environment, this approach is not feasible for me. Therefore, I am reaching out to you to inquire if there are alternative methods or tools available that would allow me to decompress the EROFS image directly without the necessity of mounting it.

Your expertise in this area would be immensely valuable, and any guidance or recommendations you can provide will be highly appreciated. If there are specific tools, scripts, or techniques that you could suggest, it would greatly assist me in overcoming the challenges I currently face.

Doesn't
fsck.erofs --extract dir_path <img>

meet your requirement?

Thanks,
Gao Xiang

Quoted 10 lines

I am grateful for your time and consideration in this matter. Thank you for your dedication to the developer community, and I look forward to hearing from you soon.>

Best regards,

wang shuo

[email protected]

#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#

#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#

#3 lore raw
Quoted 11 lines · 王硕 via Linux-erofs

Hi,

Thanks for your reply, and I have tried the option you suggested but failed.Could you help me to solve it?

Following is the result of executing the option:

(I have downloaded the source code from https://github.com/erofs/erofs-utils/tree/dev <https://github.com/erofs/erofs-utils/tree/dev>, and make install on my Ubuntu20.04)

- Could you use a newer distribution instead such as Debian 12?
Otherwise it will be more complicated, because lz4/lzma weren't build-in according to the snapshot.

- It should be "fsck.erofs --extract=mi_ext mi_ext.img"

- As for Xiaomi Corp, is there some other colleague which can
help you resolve this?

Thanks,
Gao Xiang

#4 lore raw

Thank you for your suggestions. I will try to seek assistance from colleagues within the company. I appreciate your help.

________________________________
发件人: Gao Xiang <[email protected]>
发送时间: 2024年1月3日 19:21:39
收件人: 王硕; [email protected]
主题: Re: 答复: [External Mail]Re: Request for Assistance: Decompressing EROFS Image without Mounting

[外部邮件] 此邮件来源于小米公司外部,请谨慎处理。若对邮件安全性存疑,请将邮件转发给[email protected]进行反馈

Quoted 11 lines · 王硕 via Linux-erofs

Hi,

Thanks for your reply, and I have tried the option you suggested but failed.Could you help me to solve it?

Following is the result of executing the option:

(I have downloaded the source code from https://github.com/erofs/erofs-utils/tree/dev <https://github.com/erofs/erofs-utils/tree/dev>, and make install on my Ubuntu20.04)

- Could you use a newer distribution instead such as Debian 12?
Otherwise it will be more complicated, because lz4/lzma weren't build-in according to the snapshot.

- It should be "fsck.erofs --extract=mi_ext mi_ext.img"

- As for Xiaomi Corp, is there some other colleague which can
help you resolve this?

Thanks,
Gao Xiang
#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#

#5 lore raw

The issue has been resolved; it was due to a lack of support for the lz4 library on my computer. The source code of master branch has no problem. Thanks to your assistance, and thanks help from [email protected]
________________________________
发件人: 王硕 <[email protected]>
发送时间: Wednesday, January 3, 2024 7:23:47 PM
收件人: Gao Xiang <[email protected]>; [email protected] <[email protected]>
主题: 答复: 答复: [External Mail]Re: Request for Assistance: Decompressing EROFS Image without Mounting

Thank you for your suggestions. I will try to seek assistance from colleagues within the company. I appreciate your help.

________________________________
发件人: Gao Xiang <[email protected]>
发送时间: 2024年1月3日 19:21:39
收件人: 王硕; [email protected]
主题: Re: 答复: [External Mail]Re: Request for Assistance: Decompressing EROFS Image without Mounting

[外部邮件] 此邮件来源于小米公司外部,请谨慎处理。若对邮件安全性存疑,请将邮件转发给[email protected]进行反馈

Quoted 11 lines · 王硕 via Linux-erofs

Hi,

Thanks for your reply, and I have tried the option you suggested but failed.Could you help me to solve it?

Following is the result of executing the option:

(I have downloaded the source code from https://github.com/erofs/erofs-utils/tree/dev <https://github.com/erofs/erofs-utils/tree/dev>, and make install on my Ubuntu20.04)

- Could you use a newer distribution instead such as Debian 12?
Otherwise it will be more complicated, because lz4/lzma weren't build-in according to the snapshot.

- It should be "fsck.erofs --extract=mi_ext mi_ext.img"

- As for Xiaomi Corp, is there some other colleague which can
help you resolve this?

Thanks,
Gao Xiang
#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#