Mounting 3 disk iso's

Hi guys,

I’m wanting to mount the three ISO disks of the SLES11SP3 OS onto my system, as we have a minimal installation and we need to zypper install some additional packages.

zypper addrepo iso:/?iso=/path/to/iso1.iso disk1
zypper addrepo iso:/?iso=/path/to/iso2.iso disk2
zypper addrepo iso:/?iso=/path/to/iso3.iso disk3

However for the second disk, although I add it successfully, the zypper update disables the second disk because:

zypper update

File ‘/media.1/media’ not found on medium ‘iso:///?iso=/path/to/disk/SUSE11SP3_002.iso’

Now the disk is correct → /media.2/media is the file that exists on the other disk, as it should by this post:
https://en.opensuse.org/openSUSE:Standards_YaST2_Repository_Metadata_media#YaST.2FZypp_media_description
so given it’s the second disk, the directory should be /media.2 as the numeral is the disk number.
Here’s another question on another forum also unanswered:
https://forums.suse.com/archive/index.php/t-1507.html

I think I might need to indicate to zypper to “expect” the disk as #2 but no flag in the zypper man pages seem be useful.

thanks in advance.

Hi rupert160,

I’m wanting to mount the three ISO disks of the SLES11SP3 OS onto my system, as we have a minimal installation and we need to zypper install some additional packages.

IIRC, you actually only need DVD 1 for this, unless you’re in the need of installing the source packages.

File ‘/media.1/media’ not found on medium ‘iso:///?iso=/path/to/disk/SUSE11SP3_002.iso’
so given it’s the second disk, the directory should be /media.2 as the numeral is the disk number.

I don’t think your assessment is correct - you’re trying to add a repository, not a disk. Hence zypper is looking for the repository media description, which is in media.1 - media.2 is the second media of that same repository, and as such cannot be used to add another repo.

Regards,
Jens

On 27/05/2016 02:54, rupert160 wrote:
[color=blue]

I’m wanting to mount the three ISO disks of the SLES11SP3 OS onto my
system, as we have a minimal installation and we need to zypper install
some additional packages.[/color]

Note that for SLES11 SP3 there are only two ISOs,
SLES-11-SP3-DVD--GM-DVD1.iso and
SLES-11-SP3-DVD--GM-DVD2.iso, for which, as Jens noted in his
reply, you usually only need DVD1.
[color=blue]

zypper addrepo iso:/?iso=/path/to/iso1.iso disk1
zypper addrepo iso:/?iso=/path/to/iso2.iso disk2
zypper addrepo iso:/?iso=/path/to/iso3.iso disk3

However for the second disk, although I add it successfully, the zypper
update disables the second disk because:

zypper update

File ‘/media.1/media’ not found on medium
‘iso:///?iso=/path/to/disk/SUSE11SP3_002.iso’

Now the disk is correct → /media.2/media is the file that exists on the
other disk, as it should by this post:
https://en.opensuse.org/openSUSE:Standards_YaST2_Repository_Metadata_media#YaST.2FZypp_media_description
so given it’s the second disk, the directory should be /media.2 as the
numeral is the disk number.
Here’s another question on another forum also unanswered:
https://forums.suse.com/archive/index.php/t-1507.html

I think I might need to indicate to zypper to “expect” the disk as #2
but no flag in the zypper man pages seem be useful.[/color]

Whilst there are ways of “merging” directories there’s definitely no
“easy” way with SLES to add ISOs for second (or third) disks.

If you really need DVD2 then your best bet is to copy the contents of
the DVD2 ISO to a directory on your server, then copy the contents of
the DVD1 ISO to the same directory (which will overwrite a few files),
and finally add “media.2/” to the directory.yast file. You should then
be able to point YaST/zypper at the directory and it should see packages
including sources ones.

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.