|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
|
Thread Tools | Display Modes |
|
|||
You can use mkisofs to create iso files. It's included in cdrtools package.
Last edited by erno; 11th May 2008 at 04:47 PM. |
|
||||
Oliver: isovfy is part of cdrecord.
Last edited by tuck; 12th May 2008 at 09:26 AM. |
|
||||
tar(1) supports ISO9660:
% tar tf image.iso % tar tf /dev/acd0 More reliable would be: Code:
# mdconfig -at vnode -f image.iso # mount -t cd9660 /dev/md0 /mnt/md0 # cd /mnt/md0 # find . -type f -exec md5 {} \; > ~/MD5.img[/cmd] # cd - # umount /mnt/md0; mdconfig -du0 [burn image] # mount -t cd9660 /dev/acd0 /mnt/acd0 # cd /mnt/acd0 # find . -type f -exec md5 {} \; > ~/MD5.disc # diff -u ~/MD5.img MD5.disc |
|
||||
Quote:
but if you just want to check if the cd is an corrupted or not: $ md5 < image.iso > image.md5 [burn image] $ dd < /dev/acd0 bs=2k | md5 | cmp - image.md5 && echo Ok |
|
||||
actually, no need to use md5 this would likely be much faster:
$ dd < /dev/acd0 bs=2k | cmp - image.iso && echo Ok btw, calculating the checksum of all the files being burned (similiar to what carpetsmoker suggested) and storing it in a file on the cd (say file.md5) is IMO a good idea. so that if the cd develops problems in the future you can easily tell which files are ok by comparing the files on the cd with their md5sums in file.md5. |
|
||||
Quote:
It also a good idea if you enclose a SHA256 checksum in the package as well
__________________
The power of plain text? It can control an entire OS |
|
||||
Yeah, nobody cares to spoof my torrent's MD5s, my torrents are crap btw
The fact is, an algorithm is said to be secure if its impossible to generate identical hash strings, from different source, which is not the case of MD5. Also MD5 hash can be decrypted with rainbow table. I reakon we will be moving to SHA256 in near future, so what I was saying is to get yourself be familiar with SHA256 is not a bad idea
__________________
The power of plain text? It can control an entire OS |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PHP read file contents - Maximum file size | cksraj | Programming | 1 | 21st September 2009 11:38 AM |
Simple/easy ircd | Weaseal | FreeBSD Ports and Packages | 0 | 17th July 2008 12:31 PM |
cannot make back up file | seadog109 | Other BSD and UNIX/UNIX-like | 5 | 4th June 2008 10:36 PM |
KDE app for easy Wireless connection | coppermine | FreeBSD Ports and Packages | 4 | 17th May 2008 07:33 PM |
Should be easy.... Keyboard copy n paste | WeakSauceIII | OpenBSD General | 4 | 11th May 2008 07:32 PM |