Extracting ISO images on Solaris 10

Phew! Been struggling today to install Red Hat 5 (RHEL5) on a Dell Poweredge 850. It only has a CD-ROM drive, no DVD, but it does have a DRAC. Unfortunately it’s a DRAC4 and RHEL5 doesn’t seem to recognise it. It boots from the virtual CD drive once I have attached the ISO image, but after selecting the keyboard and language it then says it can’t find the RHEL5 files on the (virtual) CD-ROM.

A quick google revealed this to be a common problem, and some people had said it was fixed in a later version of RHEL5. So I went off and downloaded RHEL 5.6 and after a couple of hours found it still didnt’ work.

Ok, so I’ll try an NFS or FTP install. The only machine I have available to act as an NFS/FTP server is a Solaris 10 box. So I set it all up, copied the ISO image to it and tried again. Still no luck. It seems that the installer can’t read ISO images, you have to extract the ISO first. But Solaris doesn’t seem to have any built-in tools for extracting ISO images. At least that’s what I thought!

I stumbled across this blog post which pointed me in the right direction.

These are the commands I used:

-bash-3.00# lofiadm -a /opt/tmp/rhel-server-5.6-x86_64-dvd.iso /dev/lofi/1
-bash-3.00# mkdir /opt/tmp/dvd
-bash-3.00# mount -F hsfs /dev/lofi/1 /opt/tmp/dvd
-bash-3.00# cd /opt/tmp/dvd
-bash-3.00# ls
Cluster                      README-pt_BR.html            RELEASE-NOTES-U6-mr.html     RELEASE-NOTES-kn.html
ClusterStorage               README-ru.html               RELEASE-NOTES-U6-or.html     RELEASE-NOTES-ko.html
EULA                         README-si.html               RELEASE-NOTES-U6-pa.html     RELEASE-NOTES-ml.html
GPL                          README-ta.html               RELEASE-NOTES-U6-pt_BR.html  RELEASE-NOTES-mr.html
README-as.html               README-te.html               RELEASE-NOTES-U6-ru.html     RELEASE-NOTES-or.html
README-bn.html               README-zh_CN.html            RELEASE-NOTES-U6-si.html     RELEASE-NOTES-pa.html
README-de.html               README-zh_TW.html            RELEASE-NOTES-U6-ta.html     RELEASE-NOTES-pt_BR.html
README-en                    RELEASE-NOTES-U6-as.html     RELEASE-NOTES-U6-te.html     RELEASE-NOTES-ru.html
README-en.html               RELEASE-NOTES-U6-bn.html     RELEASE-NOTES-U6-zh_CN.html  RELEASE-NOTES-si.html
README-es.html               RELEASE-NOTES-U6-de.html     RELEASE-NOTES-U6-zh_TW.html  RELEASE-NOTES-ta.html
README-fr.html               RELEASE-NOTES-U6-en          RELEASE-NOTES-as.html        RELEASE-NOTES-te.html
README-gu.html               RELEASE-NOTES-U6-en.html     RELEASE-NOTES-bn.html        RELEASE-NOTES-zh_CN.html
README-hi.html               RELEASE-NOTES-U6-es.html     RELEASE-NOTES-de.html        RELEASE-NOTES-zh_TW.html
README-it.html               RELEASE-NOTES-U6-fr.html     RELEASE-NOTES-en             RPM-GPG-KEY-redhat-beta
README-ja.html               RELEASE-NOTES-U6-gu.html     RELEASE-NOTES-en.html        RPM-GPG-KEY-redhat-release
README-kn.html               RELEASE-NOTES-U6-hi.html     RELEASE-NOTES-es.html        Server
README-ko.html               RELEASE-NOTES-U6-it.html     RELEASE-NOTES-fr.html        TRANS.TBL
README-ml.html               RELEASE-NOTES-U6-ja.html     RELEASE-NOTES-gu.html        VT
README-mr.html               RELEASE-NOTES-U6-kn.html     RELEASE-NOTES-hi.html        eula.en_US
README-or.html               RELEASE-NOTES-U6-ko.html     RELEASE-NOTES-it.html        images
README-pa.html               RELEASE-NOTES-U6-ml.html     RELEASE-NOTES-ja.html        isolinux
-bash-3.00# mkdir /opt/tmp/rhel5
-bash-3.00# cp -R * /opt/tmp/rhel5
-bash-3.00# cp -R .* /opt/tmp/rhel5
-bash-3.00# ls /opt/tmp/rhel5
Cluster README-pt_BR.html RELEASE-NOTES-U6-mr.html RELEASE-NOTES-kn.html
ClusterStorage README-ru.html RELEASE-NOTES-U6-or.html RELEASE-NOTES-ko.html
EULA README-si.html RELEASE-NOTES-U6-pa.html RELEASE-NOTES-ml.html
GPL README-ta.html RELEASE-NOTES-U6-pt_BR.html RELEASE-NOTES-mr.html
README-as.html README-te.html RELEASE-NOTES-U6-ru.html RELEASE-NOTES-or.html
README-bn.html README-zh_CN.html RELEASE-NOTES-U6-si.html RELEASE-NOTES-pa.html
README-de.html README-zh_TW.html RELEASE-NOTES-U6-ta.html RELEASE-NOTES-pt_BR.html
README-en RELEASE-NOTES-U6-as.html RELEASE-NOTES-U6-te.html RELEASE-NOTES-ru.html
README-en.html RELEASE-NOTES-U6-bn.html RELEASE-NOTES-U6-zh_CN.html RELEASE-NOTES-si.html
README-es.html RELEASE-NOTES-U6-de.html RELEASE-NOTES-U6-zh_TW.html RELEASE-NOTES-ta.html
README-fr.html RELEASE-NOTES-U6-en RELEASE-NOTES-as.html RELEASE-NOTES-te.html
README-gu.html RELEASE-NOTES-U6-en.html RELEASE-NOTES-bn.html RELEASE-NOTES-zh_CN.html
README-hi.html RELEASE-NOTES-U6-es.html RELEASE-NOTES-de.html RELEASE-NOTES-zh_TW.html
README-it.html RELEASE-NOTES-U6-fr.html RELEASE-NOTES-en RPM-GPG-KEY-redhat-beta
README-ja.html RELEASE-NOTES-U6-gu.html RELEASE-NOTES-en.html RPM-GPG-KEY-redhat-release
README-kn.html RELEASE-NOTES-U6-hi.html RELEASE-NOTES-es.html Server
README-ko.html RELEASE-NOTES-U6-it.html RELEASE-NOTES-fr.html TRANS.TBL
README-ml.html RELEASE-NOTES-U6-ja.html RELEASE-NOTES-gu.html VT
README-mr.html RELEASE-NOTES-U6-kn.html RELEASE-NOTES-hi.html eula.en_US
README-or.html RELEASE-NOTES-U6-ko.html RELEASE-NOTES-it.html images
README-pa.html RELEASE-NOTES-U6-ml.html RELEASE-NOTES-ja.html isolinux
-bash-3.00#
-bash-3.00# umount /opt/tmp/dvd
-bash-3.00# lofiadm -d /dev/lofi/1
-bash-3.00# rm -R /opt/tmp/dvd

Make sure you copy the hidden files, .discinfo and .treeinfo – without these you will get an error.

Now I set up FTP/NFS and kicked off my installer, using my Solaris box as the FTP/NFS server.

Now I move onto the next problem… “Unable to read package metadata. This may be due to a missing repodata directory.” Sigh.

Advertisements
This entry was posted in Computers and Internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s