<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Mount bootable ISO or IMG file and change files in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746969#M59542</link>
    <description>Thx a lot, I try to mount as a root user an img file on debian lenny and get this problem:&lt;BR /&gt;&lt;BR /&gt;# mount -o loop binary.img /mnt/loopback&lt;BR /&gt;mount: you must specify the filesystem type&lt;BR /&gt;&lt;BR /&gt;# file binary.img&lt;BR /&gt;binary.img: x86 boot sector; partition 1: ID=0x83, active, starthead 0, startsector 1, 593919 sectors</description>
    <pubDate>Thu, 03 Feb 2011 16:10:03 GMT</pubDate>
    <dc:creator>'chris'</dc:creator>
    <dc:date>2011-02-03T16:10:03Z</dc:date>
    <item>
      <title>Mount bootable ISO or IMG file and change files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746964#M59537</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;Howto mount bootable ISO or IMG file to change files and save these changes?</description>
      <pubDate>Tue, 01 Feb 2011 15:54:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746964#M59537</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-02-01T15:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Mount bootable ISO or IMG file and change files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746965#M59538</link>
      <description>I don't think you can do it directly. When you mount an ISO file - it will always be Read Only.&lt;BR /&gt;&lt;BR /&gt;Your best bet is to find out how the ISO was created, its format and edit files from there. Then re-create the ISO.&lt;BR /&gt;&lt;BR /&gt;What kind/type of ISO / IMG file are we talking about here?&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Feb 2011 16:02:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746965#M59538</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2011-02-01T16:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Mount bootable ISO or IMG file and change files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746966#M59539</link>
      <description>Hi chirs, &lt;BR /&gt;&lt;BR /&gt;Of course that is possible. You need to mount the iso or img file as loop back , then make changes and exit. &lt;BR /&gt;&lt;BR /&gt;eg&lt;BR /&gt;&lt;BR /&gt;mount -o loop cdrom.iso /mnt/loop&lt;BR /&gt;&lt;BR /&gt;cd /mnt/loop&lt;BR /&gt;make changes &amp;lt; Bla bla.&amp;gt;&lt;BR /&gt;&lt;BR /&gt;umount /mnt/loop  &lt;BLA bla=""&gt;&lt;BR /&gt;&lt;BR /&gt;Truly Evil&lt;BR /&gt;Lucifer Megacruel&lt;BR /&gt;&lt;BR /&gt;&lt;/BLA&gt;</description>
      <pubDate>Wed, 02 Feb 2011 05:15:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746966#M59539</guid>
      <dc:creator>Lucifer Megacruel</dc:creator>
      <dc:date>2011-02-02T05:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Mount bootable ISO or IMG file and change files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746967#M59540</link>
      <description>Sorry,&lt;BR /&gt;&lt;BR /&gt;Just checked on what Alzhy said , it is mounted read only :P. You can copy contents and make use of mkisofs to recreate a new image.&lt;BR /&gt;&lt;BR /&gt;Truly Evil&lt;BR /&gt;Lucifer Megacruel</description>
      <pubDate>Wed, 02 Feb 2011 05:21:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746967#M59540</guid>
      <dc:creator>Lucifer Megacruel</dc:creator>
      <dc:date>2011-02-02T05:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Mount bootable ISO or IMG file and change files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746968#M59541</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here's how I would do it :) &lt;BR /&gt;&lt;BR /&gt;mkdir -p /mnt/loopback&lt;BR /&gt;mount -oloop cdrom.iso /mnt/loopback&lt;BR /&gt;mkdir -p /home/Lucifer/remaster&lt;BR /&gt;cp -rf /mnt/loopback/ /home/Lucifer/remaster&lt;BR /&gt;&lt;BR /&gt;Now make we can make glorious modifications in /home/Lucifer/remaster . After we are doing we can create the iso image again.&lt;BR /&gt;&lt;BR /&gt;mkisofs -R -b /mnt/loopback/isolinux/isolinux.bin -c /mnt/loopback/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /home/Lucifer/new.iso /home/Lucifer/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The caveat is the CD's can be booted in floppy emulation mode , so the exact steps i said may not really apply. But it should work in most of the cases.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;You can test the newly created images easily using qemu and see that it boots okay ( I am typing it from memory ). You can also use bochs too ( Bochs is somewhat slower , but it is very good for debugging the kernel) &lt;BR /&gt;&lt;BR /&gt;qemu -net-none -m256 -boot cdrom  -hdc /home/Lucifer/image.iso &lt;BR /&gt;&lt;BR /&gt;Truly Evil &lt;BR /&gt;Lucifer Megacruel</description>
      <pubDate>Wed, 02 Feb 2011 11:19:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746968#M59541</guid>
      <dc:creator>Lucifer Megacruel</dc:creator>
      <dc:date>2011-02-02T11:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mount bootable ISO or IMG file and change files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746969#M59542</link>
      <description>Thx a lot, I try to mount as a root user an img file on debian lenny and get this problem:&lt;BR /&gt;&lt;BR /&gt;# mount -o loop binary.img /mnt/loopback&lt;BR /&gt;mount: you must specify the filesystem type&lt;BR /&gt;&lt;BR /&gt;# file binary.img&lt;BR /&gt;binary.img: x86 boot sector; partition 1: ID=0x83, active, starthead 0, startsector 1, 593919 sectors</description>
      <pubDate>Thu, 03 Feb 2011 16:10:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746969#M59542</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-02-03T16:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Mount bootable ISO or IMG file and change files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746970#M59543</link>
      <description>Hi Chirs,&lt;BR /&gt;&lt;BR /&gt;If it is a valid iso image, you should be able to mount it using&lt;BR /&gt;mount -tiso9660 -oloop cdrom.iso /mnt/loopback&lt;BR /&gt;&lt;BR /&gt;If it is some hard disk image created using qemu or bochs, they you possibly may not be able  to mount it. &lt;BR /&gt;&lt;BR /&gt;to create an iso file from a cd, use the dd command&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/hdc /of=cdrom.iso ( put it in if what basically points to your cd drive )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Truly Evil &lt;BR /&gt;Lucifer Megacruel</description>
      <pubDate>Thu, 03 Feb 2011 17:33:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746970#M59543</guid>
      <dc:creator>Lucifer Megacruel</dc:creator>
      <dc:date>2011-02-03T17:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Mount bootable ISO or IMG file and change files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746971#M59544</link>
      <description>Thx again, this is not ISO-file, it's a bootable USB Live image file.&lt;BR /&gt;&lt;BR /&gt;Anyway I can mount it using:&lt;BR /&gt;&lt;BR /&gt;# mount -o loop,offset=512 binary.img_old /mnt/loopback&lt;BR /&gt;&lt;BR /&gt;I don't know if I can do a change, that I really need, because I cannot see there &lt;BR /&gt;a linux file structure.&lt;BR /&gt;&lt;BR /&gt;# cd /mnt/loopback&lt;BR /&gt;# ls&lt;BR /&gt;doc  ldlinux.sys  live  md5sum.txt  syslinux&lt;BR /&gt;# cd syslinux&lt;BR /&gt;# ls&lt;BR /&gt;boot.txt  f1.txt  f4.txt  f7.txt  footer.cfg  menu.cfg      syslinux.cfg&lt;BR /&gt;data      f2.txt  f5.txt  f8.txt  header.cfg  prompt.cfg&lt;BR /&gt;f10.txt   f3.txt  f6.txt  f9.txt  help.cfg    syslinux.bin&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Feb 2011 19:34:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746971#M59544</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-02-03T19:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Mount bootable ISO or IMG file and change files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746972#M59545</link>
      <description>Hi chris,&lt;BR /&gt;&lt;BR /&gt;syslinux is basically a bootloader :). You wont find anything in that directory other than boot loader related stuff . Check the live directory.  Basically the directory structure depends on configuration , there are some small linux distros that runs entirely of the initial ram disk.  &lt;BR /&gt;&lt;BR /&gt;Truly Evil &lt;BR /&gt;Lucifer Megacruel&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Feb 2011 09:13:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-bootable-iso-or-img-file-and-change-files/m-p/4746972#M59545</guid>
      <dc:creator>Lucifer Megacruel</dc:creator>
      <dc:date>2011-02-04T09:13:07Z</dc:date>
    </item>
  </channel>
</rss>

