how to make centos dvd from centos5 cds

Posted on 2009-05-20
Last Modified: 2013-12-16
hi all,
would you please tell me how to make centos5 dvd from centos 5 cds because just coping files facing troubles
best regards
hatem gamal
Question by:hatem_from_mesr
  • 5
  • 4
  • 2
  • +1
LVL 40

Expert Comment

ID: 24430786
why don't you download centos dvds

Author Comment

ID: 24440359
i don't have money enough for downloading the dvd iso
LVL 40

Expert Comment

ID: 24445409
what do you mean by converting cds to dvd?
LVL 19

Expert Comment

ID: 24458437

downloading the Centos DVD is free!


Author Comment

ID: 24464582
downloading need bandwidth and internet subscription I'm using dial up one and  I have the cd's in hand it could happen that I in a place have only the cd's and  dvd writer or so... can you tell me how to do it

Author Comment

ID: 24464588

>>>what do you mean by converting cds to dvd?
copying all the content of the cds to one dvd and changing what must be changed

best regards
hatem gamal
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.


Accepted Solution

colinvann earned 500 total points
ID: 24465000
Hi there,

Basically, whats on the DVD is just split into several different CD's because of space limitations.

So what you can do is copy the contents on all the CD's into one directory and the make a new iso from that.

1) Make sure you have enough disk space (you will need just move that double the size of all the CD's free - probably about 10GB)
  df -h

2) Create the directory to hold the contents of all the CD's
 mkdir /tmp/centos_dvd

3) For each CD do the following
 a) place CD into drive
 b) make sure its mounted and fine the path that its mounted on
 c) copy the contents to the above directory
  cp -r /mnt/cdrom/* /tmp/centos_dvd/.

4) Create and ISO file from the /tmp/centos_dvd directory
  mkisofs -o /tmp/centos_dvd.iso /tmp/centos_dvd/

If you do not have the mkisofs command, you can install it by running:
 yum install mkisofs

Hope that helped,

Author Comment

ID: 24465001
if there is a book , tutorial , or article please send it to me

Author Comment

ID: 24468159

[root@localhost ~]# cp -r /media/CentOS_5.0_Final/* /tmp/centos_dvd/
cp: reading `/media/CentOS_5.0_Final/CentOS/gnome-screensaver-2.16.1-5.el5.i386.rpm': Input/output error
[root@localhost ~]#

how to avoid this error
LVL 40

Expert Comment

ID: 24469977
the installation from cds is made to ask to change cds when needed, while installing from dvd will not if all are fit in one dvd. I think it will be hard to do what you are asking.
LVL 40

Expert Comment

ID: 24469981
what is the problem in installing from CDs?

Assisted Solution

colinvann earned 500 total points
ID: 24470406
Hi there hatem_from_mesr,

sounds like the media is broken. please run the following commands in order to check the media:

0) Get the SHA1SUM values, I see they are not available in the normal location anymore, here are ones I have found (based on your path, i have assumed that you have CentOS 5.0 for i386 architecture):
820346490eb58c10ea952e62e4d61596a267edea CentOS-5.0-i386-bin-1of6.iso
8e91bf3cd0bb3ef86598a5014741d8992cf4cad5 CentOS-5.0-i386-bin-2of6.iso
71358b3260f83a37ddc084e730e34f8f9b3a9bfd CentOS-5.0-i386-bin-3of6.iso
d350a93a7d32e75a65648b8a8c759039fe582f5e CentOS-5.0-i386-bin-4of6.iso
5f2dab38eb4ec415e789f754a5b3f89bd28fce1d CentOS-5.0-i386-bin-5of6.iso
30e5dee028670fd14a5d91c8a9a7b00a5c9c0f14 CentOS-5.0-i386-bin-6of6.iso

1) Verify the install media against the sha1sum downloaded - assuming your cdrom device is /dev/hdc
  sha1sum /dev/hdc

This will output a string of characters that can be compared with the string next to the disk you are trying to verify within the sha1sum.txt file.

This will tell you if the disk is not functional.

if you want to verify them all at once, you can make ISO images of each disk within a directory, you then place the above strings with thier filenames inside a file called sha1sum.txt in the same directory and execute:
  sha1sum -c sha1sum.txt
This will tell sha1sum to look inside the sha1sum.txt file and verify all files found within the same directory.

To make ISO images of each disk do the following: (again assuming the cdrom is device /dev/hdc)
0) Place CD in drive
1) Find the number of sectors and their size
  isosize -x /dev/hdc
2) create ISO for each of the disks
  dd if=/dev/hdc of /direcoty_to_hold_ISO/disk_label.iso bs=<blocksize> count=<number_of_sectors>

Let me know if you need anything else.

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now