When using Yast2 to install or modify my SUSE Linux server, it will prompt me to insert the original installation CDs. This is bothersome if my SUSE Linux server is not easy to access physically. To avoid having to deal with CDs, we can copy the contents of the installation CDs to the hard drive.
Copy the contents of the installation CDs to the hard drive:
- Create a mount point “/dvd” on your hard drive and a directory to place the CDs (example: “/opt/suse10sp1”).
- Insert each CD and run the following commands to mount the CD, copy the CD contents to “/opt/suse10sp1”, and eject the CD:
mount /dev/dvd /dvd
cp -r /dvd /opt/suse10sp1
mv /opt/suse10sp1/dvd /opt/suse10sp1/cd1
For each CD, you can increment “/opt/suse10sp1/cd1” (example: /cd2, /cd3, and /cd4). If “mount /dev/dvd /dvd” does not work, try “mount /dev/hda /dvd” (“/dev/dvd” is just a soft link to “/dev/hda”).
Configure Yast2 to look for installation files on the hard drive:
- Run Yast2
- Go to Software -> Installation Source
- You should see a source entry for the CD drive that looks like “cd:///?devices=/dev/hda”. Select it and hit the Delete button.
- Click on the Add button, select Local Directory, and browse to the path “/opt/suse10sp1/cd1”. (Once you give Yast2 the first CD location, it will figure out the other CDs’ locations based upon the first.)
- The local path should show up as a source entry that looks like “dir:///opt/suse10sp1/cd1”.
- Select our new source entry and unselect the “Synchronize Changes with ZENworks” (per source stting) as it is no longer applicable.
And we are done. Yast2 should no longer prompt you to insert the installation CDs.