LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Fixing ISOs (https://www.linuxquestions.org/questions/linux-software-2/fixing-isos-54619/)

Proud 04-11-2003 04:35 PM

Fixing ISOs
 
Ok, I persuaded my college's admins to download me the Mandrake 9.1 isos (they want to test it now too :D), but they could not work out how to check the files against md5sums. Instead we resorted to just burning the cd-rs as it was the last (half)day of term.
When attempting to create iso images back from these cds via Nero in windows, it fails at 54%, trying to read some mandrake kernel rpm. Hopefully I can keep reading beyond this error in the disk in linux. :(

How do I create iso files from my cds in Linux?
How do I check those against checksums?
How can I fix any slight errors in downloads? Via 'rsync'?

onurb 04-11-2003 04:49 PM

Everything you want to know about iso's, downloading, chesksums, burning:
http://www.linuxiso.org/

Proud 04-11-2003 05:16 PM

Cant find any specific help about how to read all but a few knackered bytes of a cd, then make and ISO of that, and fix it with rsync :S

Thanks though. :)

Edit:
Nero log:
Quote:

2:11:56 PM #10 Phase 24 File dlgbrnst.cpp, Line 1550
Caching of files started

2:19:47 PM #11 WINPFILE 31 File winpfile.cpp, Line 342
A device attached to the system is not functioning.

H:\Mandrake\RPMS\kernel-enterprise-2.4.21.0.13mdk-1-1mdk.i586.rpm

2:19:47 PM #12 TRANSFER 4 File geniso.cpp, Line 4914
Error reading file
H:\Mandrake\RPMS\kernel-enterprise-2.4.21.0.13mdk-1-1mdk.i586.rpm

2:19:51 PM #13 Phase 40 File dlgbrnst.cpp, Line 1249
Aborted by user

2:19:51 PM #14 Phase 27 File dlgbrnst.cpp, Line 1550
Caching of files aborted

2:19:51 PM #15 Text 0 File Scsicmd.cpp, Line 386
SCSI not using temporary buffers
20 out of 20 temporary buffers allocated

GtkUser 04-12-2003 05:37 AM

MD5SUM can be run from the command line:
Type: md5sum filename.iso

After a minute or two, it will return a series of hex numbers. Compare the numbers that you get with the numbers of the source. Make sure they match. linuxiso.org has the MD5SUM keys for each disk.

As far as burning an ISO image on Linux:
Type: cdrecord -scanbus
Note the numbers of your cd burner device (for example mine are 0,0,0 ).
Type: cdrecord -v -speed=4 -dev=0,0,0 filename.iso

XavierP 04-12-2003 08:02 AM

the md5sums are the underlined parts to the right of the isos to download - they open in a seperate page, compare those numbers to the ones you have.

Proud 04-13-2003 06:39 AM

Ok, but I still need to convert my cd to an iso image file first, and that might require skipping a bit of the disk.

Would it be possible to copy the files off the cd, download the few which cant be read, then rebuild the iso from the files (and checksum it), then burn working cds? :)

Shak 04-13-2003 08:28 AM

Maybe you could try the Windows MD5 checker called MD5 Summer, a quick trip to Google [google.com] will show a download location

Shak

Proud 04-13-2003 09:24 AM

Yes, I know, we tried that at college. Thanks anyway.
My problem is making an iso of the cd to be able to check it.
Anyone know if reading off all the files I can+downloading others wont work?

Shak 04-13-2003 09:31 AM

On Linux you can use the command mkisofs to make an ISO :)

Shak

Proud 04-13-2003 09:36 AM

Cool, ok, off to try it now :D

quietguy47 04-13-2003 09:41 AM

You should be able to mount the iso like a regular cd or hd.
I think the command is mount -t iso9660 -o ro, loop0 mandrake.iso /cdrom
All the files in the iso should appear exactly like they would on a cd.
When your done just use the umount /cdrom command.

I just knew buying all those books would come in handy:D

Proud 04-13-2003 10:17 AM

Oh there's no need for that, Mandrake kindly automatically mounts all my drives for me by default :cool:
Note: Woohoo I got Opera to work with my paranoid cookie settings :D
Using X-cd-roast to try and copy the cd, I got:
Quote:

Capacity: 333238 Blocks = 666476 kBytes = 650 MBytes = 682 prMB
Sectorsize: 2048 Bytes
Copy from SCSI (0,2,0) disk to file '/cd_image_store/track-01.img'
readcd: Input/output error. Cannot read source disk
readcd: Retrying from sector 133120.
.
.
......
......
......
......
......
......
......
.....
~
~
-
~
~
~
+
~
~
~
-
~
~
~
+
~
~
~
-
~
~
~

readcd: Input/output error. Error on sector 133168 not corrected. Total of 1 errors.

Time total: 152.338sec
Read 266240.00 kB at 1747.7 kB/sec.
I think I might need something like dd to specify which sector to jump if I want to directly copy what I can. Far easier to copy the files to a new dir and attempt to make my own iso.

quietguy47 04-13-2003 10:48 AM

or just download new iso's.

Proud 04-13-2003 10:53 AM

I only have a 56K, hence downloading them at college. I'm not that stupid.
I still have 12 days til I can use their broadband again, I did plan to install Mdk9.1 this hol.

Proud 04-13-2003 01:24 PM

Ok, after using Nero to make iso images of disks 2 and 3, and copying all I could from disk1, I just need to get:

kernel-enterprise-2.4.21.0.13mdk-1-1mdk.i586.rpm
koffice-1.2.1-8mdk.i586.rpm
xcin-2.5.2.3-18mdk.i586.rpm

My Mdk9.0 disk doesnt have them. Rpmfind.net has naff ftp links.

Hopefully I just have to download those files, make a new cd1, and check all three isos :cool:

Edit: rpm.pbone.net resulted in all 3 files, and the ftp-linux.cc.gatech.edu mirror seems to work fine. :)
Recorded size inconsistent compared to that reported by resumer app. The odd size is the same from a few mirrors tested...
Edit2: Nope, that mirror isnt working :(

Proud 04-13-2003 01:45 PM

Long live ftp.nluug.nl ;)

Still those shorted file lengths...

Shak 04-13-2003 04:18 PM

I _could_ send them you, if you mail me a download location and your address...

Shak

Proud 04-13-2003 04:25 PM

It's ok, I've just got to finish this 40min download and I'm ready to build the first iso. Then if they all check out good I'm ready to install (the next challenge, tri booting) :D
So really it worked out as intended, I abused the college connection to get the bulk of the files. ;)

Might buy 9.2, I forked out for 9.0PowerPack, was worth it for the conexant modem drivers and so many apps like StarOffice, amongst other things :)

So I just have to make this set of files and directories into an iso for it to be bootable?

Proud 04-13-2003 05:46 PM

Mandrake site:
Quote:

6f1581974e12420fef87868ed6caa31f Mandrake91-cd1-inst.i586.iso
87afe11ddef6b619866322aa0797e45f Mandrake91-cd2-ext.i586.iso
ff187c7a552722f42790b5726fdb62b3 Mandrake91-cd3-i18n.i586.iso
Me:
Quote:

[-@- -]$ md5sum Mandrake91-cd1-inst.i586.iso
46d2e5870eb4909702e57a10a69cda58 Mandrake91-cd1-inst.i586.iso
[-@- -]$ md5sum Mandrake91-cd2-ext.i586.iso
80cbd3d5e2cd34db2c51a518de0f4bf2 Mandrake91-cd2-ext.i586.iso
[-@- -]$ md5sum Mandrake91-cd3-i18n.i586.iso
27098ce3b34ef2bc7519c30b181767b6 Mandrake91-cd3-i18n.i586.iso
Not one right :(

oot 04-13-2003 09:53 PM

I think ISO's contain other information than just the files in them. It could be irrelevant information like timestamps or order to burn the files on the disk that's throwing off your MD5sums. Try burning the ISOs and see if the disk works, if it does you're probably all set. The one thing to be worried about would be if you've built these ISO's from files on a disk (which it sounds like you have) and didn't put in information for a computer to boot off of the CD with (which the originals probably did). I don't know how to put in booting information, but most distros will have images for boot floppies somewhere on the disk that you can write to a those, boot off of those, and then use your non-bootable CD.

Proud 04-14-2003 01:31 PM

The second and third disks are simple iso files downloaded and burned straight off. They dont lock up either so the only reason for the checksums failing could be errors in the download or errors in copying the cd to iso again.
I didnt want to risk using a possibly dodgy disk to install an OS, but as I wont be affecting my Lilo install, I should be able to boot into my current OSs atleast. :)

I noticed that when copying a file off cd1, it's creation time was 1 second later, consistently. :(
Could I use touch to alter the timestamps?

The cd1 has boot images in it's /images but the install.txt says these are for making boot floppies. It says the cd should be bootable, so I think I should just be able to burn the iso to boot, and it seemed to work at college ;)

Proud 04-15-2003 01:37 PM

Ah f**k it, my official purchased 9.0cd1 checksummed to give me:
a9a3a89df50bb6dd035122ec61133dce Mandrake90-cd1-inst.i586.iso
An official French ftp mirror quote:
f7a093af34b8cbe1abc165213fea9deb Mandrake90-cd1-inst.i586.iso

So either that cd's dodgy but worked fine, or Nero can't make iso files from cds. :(
Either way I cant work out what isnt working, and as the 9.1cd1 worked when accidentally booted at college (great default setting no? ;)) I'll just work out how to repartition my hd to take another OS.

rickenbacherus 04-16-2003 06:10 PM

Quote:

Originally posted by oot
The one thing to be worried about would be if you've built these ISO's from files on a disk (which it sounds like you have) and didn't put in information for a computer to boot off of the CD with (which the originals probably did).
An El Torito bootable disk contains a floppy sized image 1.44 or 2.88 which the BIOS emulates as a floppy disk. If you don't have that exact sized image on the cd the BIOS doesn't even give it a second thought.

Personally, when I have a known good .iso that I think I may want to make copies of I simply copy the file itself to a cd - I don't make a bootable disk out of it. I works very well and there is no fear of corruption.

Proud 04-16-2003 06:16 PM

But are all bootable disks El Torito ones?
It has quite a few exactly 1,440kb floppy images in it's /images directory.

I never started with a known good 9.1 cd, and cant seem to verify these ones as being so :(

rickenbacherus 04-16-2003 06:45 PM

Rather then ramble about a topic that I am not an expert on I will simply point you to where I go when I have bootable cd questions http://www.linuxdocs.org/HOWTOs/Boot...OWTO/pros.html I hope you haven't been directed there 1000 times already.

Unless you REALLY want to buy the 9.1 disks I could dl em and send em to you. Shoot me an email if you want to go that way. I have to admire your tenacity in trying to get those things to work but HAY CARAMBA! what a nuissance!

Proud 04-17-2003 01:47 PM

After I found this page about correctly transfering data between cds and harddrives, I just slapped my dodgy install cd in and avoided the 3 broken packages :rolleyes:

Managed to hack my system back to almost fully functioning ;)


All times are GMT -5. The time now is 01:28 AM.