Results 1 to 6 of 6

Thread: Unable to find Patch of ISO image in CentOS.

  1. #1
    Join Date
    Sep 2010
    Posts
    39

    Unable to find Patch of ISO image in CentOS.

    Hello everyone, I am using CentOS in my computer and I am facing some problem since from many days. I am getting some error in installing the CentOS 5.6 and update. ISO using USB drive. I have also customized the pendrive with proper package removing like openoffice etc. I am writing some detail about the my anaconda and kernel
    anaconda : anaconda-11.1.2.209-1.el5.centos
    kernel : kernel-2.6.18-194.26.1.el5

    I am using ISO image file for this work, but I am not able to do it. so can anyone help me please? Thanks a lot in advance.

  2. #2
    Join Date
    May 2008
    Posts
    991

    Re: Unable to find Patch of ISO image in CentOS.

    When you are creating image in USB then you your creation should be as follows:
    Code:
    USB_IMAGE = usb.img
    ISO_IMAGE = /tmp/Centos-Pansy-i386.iso
    
    all: 
            dd if=/dev/zero of=$(USB_IMAGE) bs=1M count=512
            /usr/bin/mkdiskimage -F $(USB_IMAGE) 505 32 62
            mkdir mount
            mkdir mount-iso
            sudo mount -o loop,offset=31744,uid=9063,umask=007 -t vfat usb.img mount
            sudo mount -o loop $(ISO_IMAGE) mount-iso
            cp mount-iso/isolinux/initrd.img mount
            cp mount-iso/isolinux/vmlinuz mount
            cp mount-iso/isolinux/boot.msg mount-iso/isolinux/ks.cfg mount-iso/isolinux/syslinux.cfg mount
            sudo umount mount-iso
            mkdir -p mount/images
            cp $(ISO_IMAGE) mount/images
            sudo umount mount
            syslinux -t 31744 $(USB_IMAGE)
    try this method you will solve your problem. All the Best.

  3. #3
    Join Date
    May 2008
    Posts
    1,020

    Re: Unable to find Patch of ISO image in CentOS.

    Hey I was also having the same problem. before reading your post for USB, I was having the below error:
    Code:
    Missing ISO 9660 Image"),
    _("The installer has tried to mount "
    "image #%s, but cannot find it on "
    "the hard drive.\n\n"
    "Please copy this image to the "
    "drive and click Retry. Click Reboot "
    " to abort the installation.")
    But when I applied your method now I am able to boot my USB device for update. Thank you.

  4. #4
    Join Date
    Nov 2009
    Posts
    824

    Re: Unable to find Patch of ISO image in CentOS.

    Those who are still having the problem in ISO image file then you can use below patch for fix your problem.


    Code:
    diff -Nur anaconda-11.1.2.209.org/harddrive.py anaconda-11.1.2.209/harddrive.py
    --- anaconda-11.1.2.209.org/harddrive.py        2011-01-25 11:24:54.436007993 +0530
    +++ anaconda-11.1.2.209/harddrive.py    2011-01-29 22:44:11.744004997 +0530
    @@ -58,8 +58,28 @@
             retry = True
             while retry:
                 try:
    -                isoImage = self.isoDir + '/' + self.path + '/' + self.discImages[cdNum]
    -
    +                try:
    +                    isoImage = self.isoDir + '/' + self.path + '/' + self.discImages[cdNum]
    +                except:
    +                    #HACKXXX find iso from isoDir and set path to isoImage 
    +                    isoImage = ""
    +                    files = os.listdir(self.isoDir + '/' + self.path + '/')
    +                    for file in files:
    +                        if not isys.isIsoImage(file):
    +                            continue
    +                        isoImage = self.isoDir + '/' + self.path + '/' + file
    +                    #If file mot found    
    +                    if isoImage == "":
    +                        ans = self.messageWindow( _("Missing ISO 9660 Image"),
    +                                          _("The installer has tried to mount "
    +                                            "image #%s, but cannot find it on "
    +                                            "the hard drive.\n\n"
    +                                            "Please copy this image to the drive.")
    +                                            % (cdNum,), type="custom",
    +                                        custom_icon="warning",
    +                                            custom_buttons=[_("_Reboot")])
    +                        sys.exit(0)
    +                    
                     isys.makeDevInode("loop3", "/tmp/loop3")
                     isys.losetup("/tmp/loop3", isoImage, readOnly = 1)

  5. #5
    Join Date
    Apr 2009
    Posts
    994

    Re: Unable to find Patch of ISO image in CentOS.

    Hey I have seen your error in above post, and I found that there was problem in ISO file at the time of mounting the image in virtual drive. For that purpose you can use below method:
    File Name : harddrive.py
    Method : mountMedia(self, cdNum)
    Line : isoImage = self.isoDir + '/' + self.path + '/' + self.discImage

    If you find it working for you the reply to this post.

  6. #6
    Join Date
    Sep 2010
    Posts
    39

    Re: Unable to find Patch of ISO image in CentOS.

    Hello everyone I have come out of my problem, and I just wanted to thank you all for that. I have applied all the code and logs for this work but it was not working for me. I have search on the official website also but they were not having the appropriate solution as you have. After doing it again and again I have come to know that it was the error of self.discimages [cdnum]. After that I used the above patch to fix this problem, and finally I came out of it and I have successfully updated my CentOs. Thanks a lot again.

Similar Threads

  1. Unable to find ndiswrapper update in CentOS
    By Lyudmyla in forum Operating Systems
    Replies: 5
    Last Post: 08-05-2011, 10:28 AM
  2. Unable to get Centos 5.5 DVD ISO image
    By Pataal in forum Operating Systems
    Replies: 6
    Last Post: 02-05-2011, 10:42 PM
  3. Replies: 4
    Last Post: 30-11-2010, 01:51 AM
  4. What is new in Windows7 Security Patch ISO image file
    By Lashawn in forum Networking & Security
    Replies: 5
    Last Post: 30-03-2010, 09:18 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,253,858.08071 seconds with 16 queries