Recently I spent some time trying to create CD images on Solaris, burn CDs
on NT box in such a way that I could read them on both, UNIX and NT.
Here is the summary. I did not post a question here, but I hope, it
will not be a waste of the traffic.
The method described below is just one of the many.
I greatly appreciate help from:
Andreas Buschmann <buschman@lts.sel.alcatel.de>
Mike ``It's Broke`` Dotson <dotson@stt3.com>
My original question:
: Hi forum,
:
: I recently bough a SAF (Smart And Friendly) CD-RW 226 drive and
: installed it into my NT box (PP200Mhz/64M/NT 4.0 SPK3).
:
: I would like to be able to create CD images on Solaris box, transfer
: them to NT and burn CDs on NT.
:
: I downloaded mkisofs, created images under Solaris and wrote them to the
: CDR in ISO format. The format was, actually, defined by mkisofs when the
: image was created.
:
: Looks like long names and mixed cases were taken care of... but only if
: I read the CD on NT.
:
: My attempts to mount the CD under Solaris failed - looks like the drive
: does not recognize the CD format (I have Toshiba drives in Ultras).
:
: I tried to mount the CD on my HP box, using cdfs filesystem, and it
: worked. Cdfs, as usual, does not understand mixed case.
:
: I use the following switches for mkisofs:
:
: -d -D -l -L
: I also tried -R to create RockRidge format to no avail.
:
: My next step would be to remove the drive from the NT box, put it into
: an external SCSI compartment and connect to SUN. Just in case it is
: plain drive incompatibility.
:
: At this point I can definitely use some help.
Sources of tools and information
================================
1. CD-R FAQ
www.fadden.com/cdrfaq
2. tools to create and verify CD image on UNIX
mkisofs (ftp://tsx-11.mit.edu/pub/linux/packages/mkisofs)
creates a ISO9660 image of a CD.
fbk driver by Joerg Schilling (ftp://ftp.fokus.gmd.de/pub/unix)
allows you to mount a file containing CD image as a
filesystem (Solaris).
Read carefully all instructions on fbk driver installation.
Will hang your system if used wrong (tested :-)
this site has several other useful utilities, including
cdrecord for burning CDs on UNIX box.
3. CDR burning software on NT 4.0
Adaptec's EZ CD Creator 3.01a ( came with SAF CD-RW drive)
Steps to create CD
==================
1. download and build mkisofs
2. Create CD image. Assuming that you have everything you want to write to
CD in /mytry/write2cd, your current directory is somewhere else, and have
enough space to hold CD image.
mkisofs -L -l -R -o cdimage.iso /mytry/write2cd
(.iso extension is critical for EZ CD Creator software on NT) See the
description of the switches in Mike's reply below.
3. Transfer your CD image to NT box. I used ftp in binary mode, did not try
Samba, but it should work also with no problem.
4. Burn CD. Start EZ CD Creator, chose, 'Create CD from disk image', chose
'ISO image' for file type (that's where you need .iso extension).
Burn it.
Mount CD on UNIX
================
Solaris: picks up by vold. I noticed that sometimes my CD gets mounted as
/cdrom/cdrom#1. After that I cannot eject the disk. I have to kill vold and
start it again. In this case CD gets mounted as /cdrom/cdrom and can be
ejected by 'eject cdrom' command. At this point I do not know where the
glitch is.
Old Sun CD drives did not read my CDs. They are, probably, not
compatible with the media surface.
HP-UX (a little off topic here, but many people have a zoo of computers,
where HP is a known dino):
1. create /etc/pfs_fstab:
/dev/dsk/c2t2d0 /cdrom pfs-rrip xlat=unix 0 0
2. start /usr/sbin/pfsd &
3. start /usr/sbin/pfs_mountd&
4. pfs_mount /cdrom
to unmount:
pfs_umount /cdrom
if you attempt to mount your cd as cdfs, your will get 8.3 single case
filenames with ';1' at the end.
Replies from newsgroups
=======================
Andreas Buschmann <buschman@lts.sel.alcatel.de>
:
: Do not use mkisofs with any of the flags -d -D -l -L. Use -R for
: RockRidge instead.
:
: Copy the generated image to a partition of a spare harddisk.
: Do not use partition /dev/sd?c, as you would overwrite the disk label.
:
: dd if=image of=/dev/sd1a bs=1024k
:
: mount /dev/sd1a to /cdrom for testing.
:
: If it looks like you want, copy the image to a CD in ``image'' mode.
: To check, you might want to compare the CD to the image:
:
: dd if=/dev/sr0 bs=1024k | cmp image -
:
: p.s. The Solaris and SunOS RockRidge driver have a bug in handling
: long symlinks.
: I have added a workaround to mkisofs.
:
Mike ``It's Broke`` Dotson <dotson@stt3.com>
:
: I burn all of my cd's on my sparc and read everywhere. Here are the
: options I use for mkisofs
:
: mkisofs -a -f -J -L -l -R -T
:
: mkisofs option descriptions:
: -a Include all files in filesystem (files with # and ~ normally
: excluded)
: -f Follow symbolic links
: -J joliet file system for 95/NT
: -L Allow filenames to begin with a .
: -l Allow full 32 character filenames
: -R Rockridge format
: -T Generate a TRANS.TBL
:
: Other options of interest for mkisofs
: -V Volume ID to be placed in master block
:
:
: Now the -J only works with later versions of mkisofs. You have to use
: this in order for NT to read your disk or the system will panic. If
: your version of mkisofs doesn't have this option you're alright and
: just ignore it.
:
: The two options that are needed is -R -l for Rockridge and long
: filenames. The Rockridge format will allow your Sun box to read the
: disk. The -l allows more than 8.3. The -L is very useful for
: creating archives of your unix boxes (like .cshrc).
:
: Check out Jorge Schillings web page for unix burning software. It's
: what I use and I've put out commercial cd's this way with the above
: command line.
:
: http://www.fokus.gmd.de/nthp/employees/schilling/index.html
:
: The other thing to do is turn of vold (/etc/init.d/volmgt stop) and
: try mounting the disk manually. (mount -F nfs -o ro /dev/dsk/c0d0t6s0
: /mnt ) and see if you can get it mounted.
:
: Also, check the media you're burning to. I use the gold media
: personally. Check the cdrom to see which media is recommended. I
: would not use Maxell. They have had a history of being flaky. They
: are supposed to be better now but I'm a little leary. I've had good
: luck with TDK and KAO (kodak).
:
: Just thinking, take a CD that you can read in your Sun cdrom (win
: 95/NT or aol disk, etc, don't use the solaris install disk cause it's
: got multiple tracks which are a pain) and dd that image to your sun
: box. Make sure vold is on, (when you pop the cd in the drive it
: should mount it on /cdrom/cdrom0) if not /etc/init.d/volmgt start and
: then do a:
:
: dd if=/vol/dev/aliases/cdrom0 of=test.dd bs=2048k
:
: this will create a file called test.dd in the current directory so
: make sure you're in the right directory or fully qualify the path.
: The 2048k is telling it to grab the image in 2meg chunks (just copies
: the cd faster).
:
: Now burn that image. You won't have to do an isofs on it because it
: is already isofs'ed. In fact you can do a diff test.dd
: /vol/dev/aliases/cdrom0 and they should be the same.
:
: That will tell you if it's the way you are burning or if it's a
: problem with the mkisofs program.
:
: If you used WIN 95/NT, now break that cd due to copyright laws.
Eugene.
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:45 CDT