1752780 Members
6157 Online
108789 Solutions
New Discussion юеВ

Re: Splitted files

 

Splitted files

Hola, i have downladed an image of linux, however is splitted, how can i join to the original file:

the files are:
RHEL4-U5-re20070328.12-i386-ES-DVD-ftp.iso.split00
RHEL4-U5-re20070328.12-i386-ES-DVD-ftp.iso.split01
RHEL4-U5-re20070328.12-i386-ES-DVD-ftp.iso.split02
7 REPLIES 7
John Poff
Honored Contributor

Re: Splitted files

Hi,

Use the 'cat' command:

cat RH*split* >RHEL4-U5-re20070328.12-i386-ES-DVD-ftp.iso

JP
Albert Tlapa Tepox
New Member

Re: Splitted files

I├В┬┤ve tried to do that however when burn the DVD is not bootable.

I test the files download and are not corrupt, what can i do?
Manuel Wolfshant
Trusted Contributor

Re: Splitted files

make sure the order you use in cat is correct. for instance use
for i in 0 1 2 ; do cat RHEL$i >>image.iso;done
Manuel Wolfshant
Trusted Contributor

Re: Splitted files

... make it RHEL*$i, of course
Stuart Browne
Honored Contributor

Re: Splitted files

Shell glob expansion will do the ordering for you.

The 'rc' boot-up process also relies upon this shell feature.
One long-haired git at your service...
Stuart Browne
Honored Contributor

Re: Splitted files

oh.. dur.. futher.. ;)

What did you use to burn the ISO image to disk?

If you used 'cdrecord', plese show us your command-line.
One long-haired git at your service...
Ralph Grothe
Honored Contributor

Re: Splitted files

As already said, shell globbing takes care of correct odering during cat if the provider of the ISOs hasn't used some arcane locale specific file names (but which distributer would do this?).

After you concatenated the split ISO file to a single file (thus the command's name cat, though most of the times it is used on a single file)
try to mount the catted ISO through a loopback device.

e.g.

# cat RHEL4*iso*split* > rhel4_dvd.iso
# mkdir /mnt/tmp
# mount -t iso9660 -o ro,loop rhel4_dvd.iso /mnt/tmp
# ls -l /mnt/tmp

I am not sure if there is a general pattern how RHEL ISOs are mastered.
But generally there should be a boot image and catalogue on the disk, probably in a dir like /isolinux.

You can burn this image like
(asuming your DVD burner uses /dev/dvd)

# umount /mnt/tmp
# growisofs -Z /dev/dvd=/path/to/catted/file/rhel4_dvd.iso

If however this isn't bootable you can mount the ISO file via loopback on some NFS/FTP/HTTP server and make it accessible to your installation client.
Somewhere in the ISO there should be small boot images for starting the installation only (some rudimentary miniroot installation kernel).
Then during the install there should come a screen where you are asked for the installation source.
There you could name your repository.
Madness, thy name is system administration