\index[sd]{Write Part Command }
Command that must be executed to write a part to the device. Before the
command is executed, \%a is replaced with the Archive Device, \%m with the
- Mount Point, \%n with the current part number (0-based), and \%v with the
- current part filename.
+ Mount Point, \%e is replaced with 1 if we are writing the first part,
+ and with 0 otherwise, and \%v with the current part filename.
For a DVD, you will most frequently specify the Bacula supplied {\bf
dvd-writepart} script as follows:
\footnotesize
\begin{verbatim}
- Write Part Command = "/path/dvd-writepart %n %a %v"
+ Write Part Command = "/path/dvd-writepart %e %a %v"
\end{verbatim}
\normalsize
\item [Free Space Command = {\it name-string}]
\index[sd]{Free Space Command }
Command that must be executed to check how much free space is left on the
- device. Before the command is executed, \%a is replaced with the Archive
- Device, \%m with the Mount Point, \%n with the current part number (0-based),
- and \%v with the current part filename.
+ device. Before the command is executed,\%a is replaced with the Archive
+ Device, \%m with the Mount Point, \%e is replaced with 1 if we are writing
+ the first part, and with 0 otherwise, and \%v with the current part filename.
For a DVD, you will most frequently specify the Bacula supplied {\bf
dvd-freespace} script as follows:
\footnotesize
\begin{verbatim}
- Free Space Command = "/path/dvd-freespace %n %a"
+ Free Space Command = "/path/dvd-freespace %a"
\end{verbatim}
\normalsize
\addcontentsline{toc}{subsection}{Other Points}
\begin{itemize}
-\item DVD+RW supports only about 1000 overwrites, so every time you
- mount the filesystem read/write will count as one write. This can
- add up quickly, so it is best to mount your DVD+RW filesystem read-only.
- Bacula does not need the DVD to be mounted read-write, since it uses
- the raw device for writing.
-\item Reformating DVD+RW 10-20 time can apparently make the medium
- unusable. Normally you should not have to format or reformat
- DVD+RW media. If it is necessary, current versions of growisofs will
- do so automatically.
-\item If you wish to blank your DVD, use the following:
+\item I had several problems writing to DVD-RWs (this does NOT concern DVD+RW),
+because these media have two writing-modes: {\bf Incremental Sequential} and
+{\bf Restricted Overwrite}. Depending on your device and the media you use,
+one of these modes may not work correctly (e.g. {\bf Incremental Sequential} does
+not work with my NEC DVD-writer and Verbatim DVD-RW).
+
+To retrieve the current mode of a DVD-RW, run:
+\begin{verbatim}
+ dvd+rw-mediainfo /dev/xxx
+\end{verbatim}
+where you replace xxx with your DVD device name.
+
+{\bf Mounted Media} line should give you the information.
+
+To set the device to {\bf Restricted Overwrite} mode, run:
+\begin{verbatim}
+ dvd+rw-format /dev/xxx
+\end{verbatim}
+If you want to set it back to the default {\bf Incremental Sequential} mode, run:
+\begin{verbatim}
+ dvd+rw-format -blank /dev/xxx
+\end{verbatim}
+
+\item Bacula only accepts to write to blank DVDs. To quick blank a DVD+/-RW, run
+this command:
+\begin{verbatim}
+ dd if=/dev/zero bs=1024 count=512 | growisofs -Z /dev/xxx=/dev/fd/0
+\end{verbatim}
+Then, try to mount the device, if it cannot be mounted, it will be considered
+as blank by Bacula, if it can be mounted, try a full blank (see below).
+
+\item If you wish to blank completely a DVD+/-RW, use the following:
\begin{verbatim}
growisofs -Z /dev/xxx=/dev/zero
\end{verbatim}
where you replace xxx with your DVD device name. However, note that this
blanks the whole DVD, which takes quite a long time (16 minutes on mine).
+\item DVD+RW and DVD-RW support only about 1000 overwrites (i.e. don't use the
+same medium for years if you don't want to have problems...).
+
+\item Reformating DVD+RW 10-20 time can apparently make the medium
+ unusable. Normally you should not have to format or reformat
+ DVD+RW media. If it is necessary, current versions of growisofs will
+ do so automatically.
+
+\item For more informations about DVD writing, please look at the
+\elink{dvd+rw-tools homepage}{http://fy.chalmers.se/~appro/linux/DVD+RW/}.
\end{itemize}
\index[sd]{Write Part Command }
Command that must be executed to write a part to the device. Before the
command is executed, \%a is replaced with the Archive Device, \%m with the
- Mount Point, \%n with the current part number (0-based), and \%v with the
- current part filename.
+ Mount Point, \%e is replaced with 1 if we are writing the first part,
+ and with 0 otherwise, and \%v with the current part filename.
For a DVD, you will most frequently specify the Bacula supplied {\bf
dvd-writepart} script as follows:
\footnotesize
\begin{verbatim}
- Write Part Command = "/path/dvd-writepart %n %a %v"
+ Write Part Command = "/path/dvd-writepart %e %a %v"
\end{verbatim}
\normalsize
\item [Free Space Command = {\it name-string}]
\index[sd]{Free Space Command }
Command that must be executed to check how much free space is left on the
- device. Before the command is executed, \%a is replaced with the Archive
- Device, \%m with the Mount Point, \%n with the current part number (0-based),
- and \%v with the current part filename.
+ device. Before the command is executed,\%a is replaced with the Archive
+ Device, \%m with the Mount Point, \%e is replaced with 1 if we are writing
+ the first part, and with 0 otherwise, and \%v with the current part filename.
For a DVD, you will most frequently specify the Bacula supplied {\bf
dvd-freespace} script as follows:
\footnotesize
\begin{verbatim}
- Free Space Command = "/path/dvd-freespace %n %a"
+ Free Space Command = "/path/dvd-freespace %a"
\end{verbatim}
\normalsize
# MountCommand = "/bin/mount -t iso9660 -o ro %a %m";
# UnmountCommand = "/bin/umount %m";
# SpoolDirectory = /tmp/backup;
-# WritePartCommand = "/etc/bacula/dvd-writepart %n %a %v"
-# FreeSpaceCommand = "/etc/bacula/dvd-freespace %a %n"
+# WritePartCommand = "/etc/bacula/dvd-writepart %e %a %v"
+# FreeSpaceCommand = "/etc/bacula/dvd-freespace %a"
#}
#
# A very old Exabyte with no end of media detection