Translate

Arm Ukraine, zap Putin

Stolen Votes

berklix.com logo

berklix.org logo

No Cookies

Flag UK DE

BSD-PIE

BSD

GNU

Linux

No Tracking

Disclaimer

IBU

Consol

mkisofs

http://www.berklix.com/~jhs/txt/dvd/mkisofs/

By Julian H. Stacey

Up One Directory


 mkisofs -r -A "FreeBSD 4.3 distfiles" -o ../dists43.cd .
 mkisofs -r -A "FreeBSD distfiles 4.5 2 of 3" -volset-size 3 -volset-seqno 2 \
        -o ../cd.iso `cat ../cd.lst`
 mkisofs -r -A "My Data" -o ../mine.iso . # a trial run may need more flags
 mkisofs -r -A "Global Warming Swindle" -o global_warming_swindle.iso \
        -iso-level 1 SWINDLE.AVI
        # https://en.wikipedia.org/wiki/Martin_Durkin_(television_director)
 mkisofs -o  /usr1/tmp/mine.iso *.vob # happily creates 5.6 Gig on 7.1-rel.
 mkisofs -r -o /usra/tmp/something.iso -A something something
 dvd+rw-format -force=full  /dev/cd0
 dvd+rw-format -blank=full  /dev/cd0
 growisofs -Z /dev/cd0=PCBSD9.0-RC1-x64-DVD.iso


Bug: By Default, MKISOFS Mis-Orders vobs with long names (as can be generated by vobcopy from a DVD with a long title).

By default users should always use mkisofs with "-l"
man mkisofs: -l : Allow full 31 character filenames. Normally the ISO9660 file- name will be in an 8.3 format which is compatible with MS-DOS, even though the ISO9660 standard allows filenames of up to 31 characters. If you use this option, the disc may be difficult to use on a MS-DOS system, but this comes in handy on some other systems (such as the Amiga). Use with caution.
to reduce chance of being caught, but that is not always sufficient. Detail below.

Versions

  • mkisofs comes in some variant versions from different people/ packages, see notes by Joerg Schilling (mkisofs author)
  • I tested 2009.10.21 on:
    • amd64 FreeBSD-7.1 + /usr/ports/sysutils/cdrtools + 1400389 Jan 24 2005 cdrtools-2.01.tar.bz2 MD5 (cdrtools-2.01.tar.bz2) = d44a81460e97ae02931c31188fe8d3fd
    • i686 Latest release FreeBSD 7.2, + cdrtools-2.01.tar.bz2
    • i686 /pri/FreeBSD/branches/i386/-current/686/ports/sysutils/cdrtools-devel + cdrtools-2.01.01a63.tar.bz2 -rw-r--r-- 1 freebsd other 1828967 Aug 12 13:56 cdrtools-2.01.01a63.tar.bz2
    • MD5 (cdrtools-2.01.01a63.tar.bz2) = 01902f004cc139f798783e5f82ec0b7e

Bug in 2.01 - 2.01.01a63

If one attempts to recover data off a damaged DVD, to copy to better media, one can hit a problem: vobcopy by default generates long names , (much longer .vob names than in the original cd9660 mountable "UDF filesystem data (version 1.5)", (long names derive from title of dvd. After mkisofs builds a .iso from them, it plays out of order (with mplayer & vlc ), (& "mplayer xx.iso" & "mplayer DVDVOLUME1-4.vob" start at same wrong place half way through).

Analysis of a bad image:

mdconfig -a -t vnode -f mkisofs.starts_in_middle.iso
mount -t cd9660 /dev/md0 /mnt
cd /mnt
find . -type f -print

./video_ts/DVDVOLUME1-4.vob
./video_ts/DVDVOLUME1-3.vob
./video_ts/DVDVOLUME1-2.vob
./video_ts/DVDVOLUME1-1.vob
Error wont always show up eg if a directory (could be on DVD or hard disc) has .vobs created in a new directory in inverted alphabetic order, so when mkisofs assembles & reverses them again they'll come out right. See also http://www.berklix.com/~jhs/src/bsd/jhs/bin/public/statv/

See order gets reversed on long names:

mkisofs -r -o /tmp/tmp.iso video_ts/*.vob
Using DVDVO000.VOB;1 for /DVDVOLUME1-4.vob (DVDVOLUME1-3.vob)
Using DVDVO001.VOB;1 for /DVDVOLUME1-3.vob (DVDVOLUME1-2.vob)
Using DVDVO002.VOB;1 for /DVDVOLUME1-2.vob (DVDVOLUME1-1.vob)
cd / ; umount /mnt ; mdconfig -d -u 0
One can fix the order manually eg :
mv DVDVOLUME1-1.vob j1.vob 
mv DVDVOLUME1-2.vob j2.vob 
mv DVDVOLUME1-3.vob j3.vob 
mv DVDVOLUME1-4.vob j4.vob 
mkisofs -r -o /tmp/fixed.iso j*.vob
It's better to avoid long names from vobcopy, by use of eg "vobcopy -t xx".
MKISOFS Test Script

Stolen VotesBerklix.Net Computer AssociatesDomainsApache: Web ServerFreeBSD: Operating System