• Burning a DVD from the commandline?

    From Jeff Smith@1:282/1031 to All on Sun Aug 25 13:34:48 2019
    Hello There,

    A question:

    Any easy way to burn a directory and any sub-directories to a DVD. In my Googling most suggestions suggest/describe creating an ISO. I don't want to create an ISO, I just want to burn a copy of a directory to a DVD from a bash script. Currently the existing directory tree is approximately 3GB in size.

    Any thoughts?


    Jeff

    --- BBBS/Li6 v4.10 Toy-4
    * Origin: Fidonet: The Ouija Board - Anoka, MN - bbs.ouijabrd.net (1:282/1031)
  • From Alexey Vissarionov@2:5020/545 to Jeff Smith on Wed Aug 28 02:00:00 2019
    Good ${greeting_time}, Jeff!

    25 Aug 2019 13:34:48, you wrote to All:

    A question:
    Any easy way to burn a directory and any sub-directories to a DVD. In
    my Googling most suggestions suggest/describe creating an ISO. I don't want to create an ISO, I just want to burn a copy of a directory to a
    DVD from a bash script. Currently the existing directory tree is approximately 3GB in size.
    Any thoughts?

    man growisofs


    --
    Alexey V. Vissarionov aka Gremlin from Kremlin
    gremlin.ru!gremlin; +vii-cmiii-ccxxix-lxxix-xlii

    ... GPG: 8832FE9FA791F7968AC96E4E909DAC45EF3B1FA8 @ hkp://keys.gnupg.net
    --- /bin/vi
    * Origin: http://openwall.com/Owl (2:5020/545)
  • From Maurice Kinal@2:280/464.113 to Jeff Smith on Tue Aug 27 22:52:06 2019
    Hallo Jeff!

    Any easy way to burn a directory and any sub-directories to a DVD.

    Yes. Use growisofs from dvd+rw-tools which will automagically create an iso from a directory and burn it to a DVD.

    For example for multiple directories this should work;

    growisofs -J -R -Z /dev/dvd -speed=2 \
    -graft-points /directory1=/home/user/directory1 \
    /directory2=/home/user/directory2

    I don't believe there is any way to simply copy {,sub}directories to DVDs. For
    that you'll probably want to use USB flashdisks instead such as this;

    cp -a /home/user/directory1 /home/user/directory2 /mnt/usbflash

    where /mnt/flashdisk is wherever you mounted a formatted USB flashdisk.

    Het leven is goed,
    Maurice

    ... Huil niet om mij, ik heb vi.
    --- GNU bash, version 5.0.9(1)-release (x86_64-pc-linux-gnu)
    * Origin: Little Mikey's EuroPoint - Ladysmith BC, Canada (2:280/464.113)
  • From mark lewis@1:3634/12.73 to Jeff Smith on Thu Aug 29 09:18:38 2019

    On 2019 Aug 25 13:34:48, you wrote to All:

    Any easy way to burn a directory and any sub-directories to a DVD. In
    my Googling most suggestions suggest/describe creating an ISO. I don't want to create an ISO, I just want to burn a copy of a directory to a
    DVD from a bash script. Currently the existing directory tree is approximately 3GB in size.

    i replied in the other echo where you also posted this question...

    i do have a question of my own, though... what's is wrong with creating an ISO first and then writing it to the CD/DVD??

    )\/(ark

    Once men turned their thinking over to machines in the hope that this would set
    them free. But that only permitted other men with machines to enslave them.
    ... Americans should avoid saying "bloody" as they just sound silly.
    ---
    * Origin: (1:3634/12.73)
  • From Richard Falken to mark lewis on Thu Aug 29 12:03:14 2019
    Re: Burning a DVD from the commandline?
    By: mark lewis to Jeff Smith on Thu Aug 29 2019 09:18 am

    i do have a question of my own, though... what's is wrong with creating an ISO first and then writing it to the CD/DVD??

    I cannot speak for him, but needing to create a whole ISO image,
    store and then record it... well, it is a bit ugly and wastes
    storage space. If you can just create the image and buffer it
    and record it without having to put it in the hard drive, that
    would save both time and hard drive space.

    I hit this problem long ago when remastering a Knoppix image.
    I didn't have room enough to put a whole ISO in the hard drive.
  • From Jeff Smith@1:282/1031 to Richard Falken on Thu Aug 29 14:21:30 2019
    Hello Richard,

    Re: Burning a DVD from the commandline?
    By: mark lewis to Jeff Smith on Thu Aug 29 2019 09:18 am

    i do have a question of my own, though... what's is wrong with creating an >> ISO first and then writing it to the CD/DVD??

    The DVD is to be a simple backup of a directory and it's sub-directories. I know that I could create an ISO of the directory tree. But all I wish to do create a simple "Copy-N-Paste" to the DVD of the directory. IOW, the backed up directory would be as easily readable from the DVD as it was from the HDD.

    I cannot speak for him, but needing to create a whole ISO image,
    store and then record it... well, it is a bit ugly and wastes
    storage space. If you can just create the image and buffer it
    and record it without having to put it in the hard drive, that
    would save both time and hard drive space.

    I can burn the directory manually by using one of the available CD/DVD burning apps. And simply selecting the directory in the app and click burn.

    But was hoping to automate the process with the use of a BASH script.

    Jeff

    --- BBBS/Li6 v4.10 Toy-4
    * Origin: Fidonet: The Ouija Board - Anoka, MN - bbs.ouijabrd.net (1:282/1031)
  • From Kai Richter@2:240/77 to Jeff Smith on Sat Aug 31 17:04:28 2019
    Hello Jeff!

    To all experts, technically some statements in this mail are wrong, i tried to reduce complexity by keeping it user friendly from a user point of view.

    29 Aug 19, Jeff Smith wrote to Richard Falken:

    But all I wish to do create a simple "Copy-N-Paste" to the DVD of
    the directory.

    You can't do that and...

    IOW, the backed up directory would be as easily readable from the DVD
    as it was from the HDD.

    ...you can't do that on a HDD. You think you could do that because your HDD is already prepared.

    The DVD and the HDD are just storage devices that provide space.

    How this space is used needs to be defined. You "install" a file system with the mkfs* commands or in common speek you put a format to the disc.

    Once formated your operating system can re-use the filesystem on "write many times" devices like HDD/SDD.

    A CD/DVD is not a true RW media it's a "write one time" device. A CD/DVD-R is always empty if new and needs to get a filesystem any time. That's what the mkisofs is for.

    I cannot speak for him, but needing to create a whole ISO image,
    store and then record it... well, it is a bit ugly and wastes
    storage space.

    Useful for slow systems. The writing process to the DVD must not be interrupted. If your PC can deliver the minimum writing throughput the created ISO image of mkisofs can be piped to the cdrecord software directly.

    I can burn the directory manually by using one of the available CD/DVD burning apps. And simply selecting the directory in the app and click burn.

    But was hoping to automate the process with the use of a BASH script.

    For DVD "man growisofs".

    ----
    To master and burn an ISO9660 volume with Joliet and Rock-Ridge extensions on a
    DVD or Blu-ray Disc:

    growisofs -Z /dev/dvd -R -J /some/files
    ----

    It invokes mkisofs, you need to check "man mkisofs" for its switches (-R -J).

    The data stream is directly piped to /dev/dvd without creating an ISO on the hard disk nor a complete image in the RAM.

    Make sure you use the --dry-run switch for testing.

    Regards

    Kai

    --- GoldED+/LNX 1.1.4.7
    * Origin: Monobox (2:240/77)