William,

> The third window alerts me that "Red Hat Enterprise Linux 4  disk 3
> needed to install packages"
...
> I cannot find how to direct Red Hat's tools to find the materials,
> which are -already- mounted in a subdirectory under /mnt.  And
> advice on how to do so?

How did you create the subdirectory under /mnt?  Maybe only CDs 1 and 2
were copied.  Also, the RedHat documentation does not specify that the
.discinfo file on CD1 is needed. That is real important.

I don't want to start another script like mkrhel4root.sh, but here is the
Q&D code I used to create a tree (from the directory with the 4 RHEL4
64-bit Update 2 CDs). It is easier than SLES's requirements:

------cut-----
#!/bin/bash
# make a temporary mount point (tmpcd) and the target directory
(rhel4root)
if [ -d rhel4root ]; then
  echo "Error: directory rhel4root already exists - exiting"
  exit 1
fi
mkdir rhel4root
if [ $? != 0 ]; then # unable to mkdir
  echo "Error: unable to mkdir rhel4root - exiting"
  exit 2
fi
if [ ! -d tmpcd ]; then mkdir tmpcd; fi
if [ $? != 0 ]; then # unable to mkdir
  echo "Error: unable to make directory tmpcd - exiting"
  exit 3
fi

# mount and copy CD1
mount -o loop,ro RHEL4-U2-s390x-AS-disc1.iso tmpcd
echo "  Mounting and copying disc1.iso ..."
if [ $? != 0 ]; then # unable to mount
  echo "Error: unable to mount RHEL4-s390x-AS-disc1.iso over tmpcd -
exiting"
  exit 4
fi
cp -a tmpcd/RedHat rhel4root
cp -a tmpcd/RELEASE-NOTES* rhel4root
cp -a tmpcd/images rhel4root
cp -a tmpcd/.discinfo rhel4root
umount tmpcd

# mount and copy remaining 3 CDs
for i in RHEL4-U2-s390x-AS-disc2 RHEL4-U2-s390x-AS-disc3
RHEL4-U2-s390x-AS-disc4
do
  echo "  Mounting and copying $i.iso ..."
  mount -o loop,ro $i.iso tmpcd
  cp -a tmpcd/RedHat rhel4root
  umount tmpcd
done
rmdir tmpcd
------cut-----

Hope this helps.
"Mike MacIsaac" <[EMAIL PROTECTED]>   (845) 433-7061

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to