(I forgot to forward this also to the list) Hello Richard, Here you have the device entry:
# # A DVD device # Device { Name = "DVD-Writer" Media Type = DVD Archive Device = /dev/hdc LabelMedia = yes; # lets Bacula label unlabeled media Random Access = Yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = yes; AlwaysOpen = no; MaximumPartSize = 800M; RequiresMount = yes; MountPoint = /media/disk; MountCommand = "sudo /bin/mount -t iso9660 -o ro %a %m"; UnmountCommand = "sudo /bin/umount %m"; SpoolDirectory = /disks/wks188d1/temp; WritePartCommand = "/etc/bacula/dvd-handler %a write %e %v" FreeSpaceCommand = "/etc/bacula/dvd-handler %a free" } But the mount and unmount commands from the bconsole works well with DVD's. I've just tested mounting and unmounting a DVD from bacula and it worked. Thanks for your help! Ruben Richard Mortimer wrote: > Can you post the DVD storage device entry from the sd config file. > > The unmount works fine in my setup. Make sure that you have > an unmount line (that works!) in the device entry. > > Regards > > Richard > > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf >> Of Ruben Lopez >> Sent: 29 March 2007 12:31 >> To: bacula-users@lists.sourceforge.net >> Subject: [Bacula-users] Umount DVD before writing >> >> Hi, >> >> I have DVD's working almost well in my setup. The problem is >> that I can >> not reuse a DVD volume because bacula mounts the DVD (to >> ensure that it >> is the right dvd to write to?) before writing, and it does >> not umount it >> again before the actual writing. My device is unable to write >> if it is >> mounted, it complains with these messages: >> Error trying to open /dev/hdc exclusively ... retrying in 1 second. >> Error trying to open /dev/hdc exclusively ... retrying in 1 second. >> Error trying to open /dev/hdc exclusively ... retrying in 1 second. >> Error trying to open /dev/hdc exclusively ... retrying in 1 second. >> [...] >> >> And the writing finally fails. >> This way, I can only do one backup per DVD volume, which is a strong >> limitation. >> >> I added this line to the beginning of the write() method in the >> dvd-handler to fix this situation: >> os.system("sudo /bin/umount /dev/hdc") >> >> And now it appends data to existing DVD volumes just nice. >> >> I imagine that this is not the best place to put this command >> (besides >> it's an ugly hack that only works at this machine), but it solves the >> problem a lets us use bacula with complete functionality in >> production >> for DVD's also. >> >> May I enter a bug in the tracking system for this issue? >> >> Thanks. >> >> -------------------------------------------------------------- >> ----------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the >> chance to share your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge >> > &CID=DEVDEV > >> _______________________________________________ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users >> >> > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users