Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to edit ISO file under Linux

Shulou Source: shulou.com Published: 2022-06-01 23:53:39 10月04日 Update

This article mainly introduces how to edit ISO files under Linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

There is a software called ISOMaster in the Ubuntu Software Center, which can create and modify ISO files.

$sudo apt-get install isomaster

As shown in the figure, after I open an ISO file, I can directly use the right-click menu to modify the text content in the ISO.

ISOMaster

Well, do you think you can solve the problem by mount-o loop and then editing directly? In fact, no matter how we mount, even if we use the rw option, modifying the contents of the ISO after mounting will still prompt "Read-only files system". This is because the iso9660 filesystem implementation of the Linux kernel is read-only, and there is no write in the file_operations it implements.

We can do this with the help of mkisofs. Take the android-x86-eeepc-2.0.iso file used above as an example. Suppose you copy all the files to the new. / newimg directory after mount-o loop, complete the changes to the file, and then execute:

$sudo mkisofs-J-R-V-v-b isolinux/isolinux.bin-c isolinux/boot.cat-no-emul-boot-boot-load-size 4-boot-info-table-o android-2.0-new.iso. / newimg

This generates android-2.0-new.iso in the current directory. Note that isolinux is a relative path to. / newimg and cannot be used as an absolute path.

Thank you for reading this article carefully. I hope the article "how to edit ISO files under Linux" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Files articles content directories paths software facts in fact values interests kernels can be passed at the same time that is text more friends knowledge systems editing Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Docker Huawei Shulou Technology Linux