Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Unable to find Patch of ISO image in CentOS.

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 04-05-2011
Member
 
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.

Reply With Quote
  #2  
Old 04-05-2011
Member
 
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.
Reply With Quote
  #3  
Old 04-05-2011
Member
 
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.
Reply With Quote
  #4  
Old 04-05-2011
Member
 
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)
Reply With Quote
  #5  
Old 04-05-2011
Member
 
Join Date: Apr 2009
Posts: 990
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.
Reply With Quote
  #6  
Old 06-05-2011
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Unable to find Patch of ISO image in CentOS."
Thread Thread Starter Forum Replies Last Post
Unable to find ndiswrapper update in CentOS Lyudmyla Operating Systems 5 08-05-2011 10:28 AM
Unable to get Centos 5.5 DVD ISO image Pataal Operating Systems 6 02-05-2011 10:42 PM
Unable to find Microsoft Document Image to open MDI file in office 2010 ForNeir45 Windows Software 4 30-11-2010 01:51 AM
What is new in Windows7 Security Patch ISO image file Lashawn Networking & Security 5 30-03-2010 09:18 AM


All times are GMT +5.5. The time now is 02:57 AM.