--- [EMAIL PROTECTED] wrote:
> On 26 Feb, Eric Hobbs wrote:
> > I have a 4x8 IDE CDchanger in my Linux machine and when I need to mount one
> of
> > the discs, I usually run a "eject -c <slot#>; mount /dev/cdrom" and it just
> > works.  The trouble is, I have no idea how the CDChanger/VolumeManager in
> obs
> > is supposed to work.
> 
> Wow. No one has ever asked me about the CD Changer support. Quite
> frankly I don't even use it anymore, since using my hard drives is
> easier and faster. Are you sure you want to deal with the CD Changer in
> order to just get 2.4 gigs of space? (Back when I first wrote Obs, 2.4
> gigs of space was significant, but not today)

2.4G isn't that much, but it's getting harder to get $150 computer hardware
purchases past my wife... ;-)

Good News, though!  I managed to get it to work!  I had a few things working
against me, however.  

Most of the MP3s that I've burnt to disk pre-date me trying out Obs. 
Consequently, I had to burn the "Volume" file over the top of the existing
session on the CD.  No Problem, I thought.  I created the Volume file under
Windows 2K on another PC, and wrote another session to the disc so that the
Volume file would be there.  Problem number one:  After adding the mp3s to the
database, I noticed that the logs were looking for the volume name with the ^M
afterwards...  so a volume of 'jazz0001' became 'jazz0001^M'.  Remember, the
Volume file was made with Windows and its funky CRLF scheme.  It seems that
AddFiles.pl may not be able to deal with the Windows CRLF properly for us
weenies that use both Linux and Windows ;-). Frankly, I think the multisession
support with this drive and my Linux kernel 2.2.17 is a bit flaky, too, because
I would not always see the Volume file. Hmmmm.

Another problem I had was with devices.conf.  For some dumb reason, I had the
devicename for the CD_CHANGER_4 device listed as "/mnt/cdrom" instead of
"/dev/cdrom".  After changing to /dev/cdrom, I started up obsd, the changer
loaded and checked all the disks in the changer like it is supposed to do! 
And, yes, this is an NEC 4x8 drive, too!  A-ha!  My devices.conf looks like
this now:

#Device:             Type:         Cache: WriteAllowed:
/mnt/mp3             HARD_DRIVE    no     yes
/dev/cdrom           CD_CHANGER_4   yes    yes


So, I grabbed a blank CDR, and burnt a bunch of MP3s on it, along with a Volume
file that I created on the Linux box so it had the proper UNIX CRLF on it.  I
dropped all the obs tables in the mysql database to clear out the old junk
(hey, that SQL class I took a few months ago finally came in handy!), recreated
the tables with install-db.pl, manually mounted the newly-burned CD, imported
the mp3s into the db with the AddFiles.pl script, unmounted the CD, and started
up obsd...

The changer's slots were scanned, and in a few tense seconds, Freeamp sprung to
life with the sounds of Eric Johnson's "Zap".  Yahoo!!!

Thanks for your help.  Your suggestions pointed me in the right direction.

--Eric

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/
_______________________________________________
Obs-dev mailing list
[EMAIL PROTECTED]
http://www.freeamp.org/mailman/listinfo/obs-dev

Reply via email to