Save directories to multisession DVDs using "growisofs"

How to do things, solutions, recipes, tutorials
Message
Author
tony
Posts: 334
Joined: Sat 14 Jan 2006, 10:52
Location: Montreal.ca

Save directories to multisession DVDs using "growisofs"

#1 Post by tony »

The following growisofs commands work OK with DVD+RW

For directories stored in /root/pictures/

# to initiate ie blank disk.
growisofs -J -R -Z /dev/hdc -graft-points oct06/=/root/pictures/oct06

# to merge another directory on to disk
growisofs -J -R -M /dev/hdc -graft-points dec06/=/root/pictures/dec06

I'm now putting all my holiday snaps on to DVD.

Regards Tony.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post by Flash »

I've been using this idea for a while, with a slightly different option set. It has worked perfectly for what I use it for. You can even save a session to a multisession Puppy CD or DVD. The extra session(s) don't affect Puppy at all; Puppy ignores them when it boots. You then mount the multisession Puppy disk and presto, there's your directory.

It gets even better. If you use the same directory name each session you save, and that directory contains directories and files, all the directories and files you saved under the main directory name will show up in that directory no matter which session they were saved (unless they have the same name - more on that below.)

For example, I convert books on CD to mp3 so I can listen to them at work on my mp3 player. I use Puppy's PBcdripper to do the converting, saving to /tmp/mp3_books/Name_of_Author/Name_of_book, which I then save to a multisession DVD created for the purpose, with this command:

Code: Select all

 growisofs -M /dev/dvd -D -R -l -new-dir-mode 0755 -graft-points mp3_books=/tmp/mp3_books
I have a DVD on which I've so far saved about 10 books, each saved in a separate session. When I mount the DVD, the only directory (folder) that shows is "mp3_books." When I open it, all ten authors are there as though they were saved all at once instead of in separate sessions. Inside each author folder is a book - sometimes more than one, each saved in a separate session. One book was split between two sessions (I had to go to work before the book was finished) but all its mp3 tracks show up combined as though they were saved in one session.

Even when I look at the DVD in Windows 2000, it works the same. The top directory is "mp3_books" (ALL CAPS in Windows, probably because I didn't use the -J option.) Inside it are the author folders and inside them are the book folders containing the actual mp3 files.

I hope I've made this combining or transparency propery of multisession clear, because I think it is a very useful feature of multisession which multisession Puppy could put to good use.

I think that if you record sessions containing files or directories with the same name, only the last one you recorded will show when you mount the disk. The earlier ones are obviously still on the disk, they just aren't shown. I don't know if it is the OS or the DVD drive which is responsible.
Last edited by Flash on Thu 25 Dec 2008, 20:01, edited 2 times in total.

tony
Posts: 334
Joined: Sat 14 Jan 2006, 10:52
Location: Montreal.ca

#3 Post by tony »

Thanks for the info Flash, I will give it a try next time as I have had mixed results using my original method.

It worked perfectly in Pup and XP on my mainframe and in pup on my Toshiba laptop. But on XP on my laptop the DVD just hung. Very strange.

Regards Tony.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#4 Post by Flash »

I should mention that I don't have a laptop. From what people have reported in this forum, multisession almost always works on desktops, but noticeably less than always on laptops. I've not seen a definitive explanation of why. Some people have theorized that the problem is caused by the unique and peculiar hardware used in laptops.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69321][color=blue]Puppy Help 101 - an interactive tutorial for Lupu 5.25[/color][/url]

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#5 Post by Flash »

Just to complete my description of how this works, here's a screenshot of the various components. First, the rxvt window with the growisofs command to burn a new session which contains two files, 5_8 and 6_8 in directory "/tmp/Grisham/The_Runaway_Jury", to the DVD in a session to be named "The_Runaway_Jury"

Yesterday I had burned to the same DVD a session with the same name (The_Runaway_Jury) which contained all the files except 5_8 and 6_8 (which I decided to redo with Precord, to reduce the amount of silence after the tape runs out.) Notice that when the DVD is mounted, only one folder (or session) with the name "The_Runaway_Jury" appears, and when you look inside it, it contains all the files from both sessions! This works no matter how many sessions you record, as long as you give them all the same name.

When I tried to add sessions using Pburn, giving them the same name, they showed up as separate sessions when the DVD was mounted.
Attachments
New session added to multisession DVD.jpg
(117.26 KiB) Downloaded 2415 times

gcmartin

Save directories to DVD+RW as sessions, using growisofs

#6 Post by gcmartin »

Anyone know what the effects of "/" is behind the folder name that is added to the CD/DVD. For example, what's the difference between @flash's

Code: Select all

 
growisofs ... mp3_books=/tmp/mp3_books
and @tony's

Code: Select all

growisofs ... dec06/=/root/pictures/dec06
I have 2 questions
For example, If I entered growisofs ... mp3_books/=/tmp/mp3_books would I achieve the same thing?
Also, using @Flash's example, growisofs will create a "new" folder, if one does NOT exist, on the DVD....right???

Edited last question: Right/yes it will.
Last edited by gcmartin on Fri 09 Jul 2010, 17:42, edited 3 times in total.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#7 Post by Flash »

I might be able to answer your last question. :lol:

What seems to me to happen is that the first time the command is used, it creates a new directory on the DVD. After that, each time I add something to the same directory in a new session using the command, whatever I added shows up in the directory (in ROX anyway) when I mount the DVD. Put another way, when I mount the DVD, only one instance of the directory shows in ROX, and it contains everything I've recorded onto the DVD in separate sessions under that directory.

Sorry I don't feel at all qualified to answer your other questions. My guess is, it will make no difference whether that last / is there or not. If you have a DVD+RW you can find out the answer very easily yourself.

gcmartin

Any ideas on how to add something to the DVD's root ("/")

#8 Post by gcmartin »

I want to add a file to the LiveDVD's root ("/"). Any ideas on how to use "growisofs" to do this?
EDITED THIS POST: Never mind, I found that if you do NOT include a folder-name,it will get written to the root of the DVD.
Thanks in advance

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#9 Post by Flash »

Do you mean an individual file instead of a folder? I thought the folders I was writing with this technique were being written to the / of the DVD. There can be no higher level than what you first see when you mount the DVD, can there? :?

gcmartin

Use GROWISOFS - add files to root of Live Multisession media

#10 Post by gcmartin »

Example

Code: Select all

growisofs -M /dev/dvd -D -R -l -new-dir-mode 0755 -graft-points /tmp/mp3_books/The_Everything_Orgasm_Book-Cooper.book
will deposit this book in the root of the DVD

Hope this helps.
Last edited by gcmartin on Sat 11 Jun 2011, 18:52, edited 1 time in total.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#11 Post by Flash »

I'll have to try that just to see if I can figure out what it is you're trying to do. :lol:

gcmartin

Save directories to DVD+RW as sessions, using growisofs

#12 Post by gcmartin »

@Flash, thanks for everything thus far (I think I PM'd you)

I am trying to understand the steps in managing a LiveDVD/LiveCD. This is being done as I am trying to build on a base LiveCD by adding OpenOffice SFS so that the boot process can discover it as the system is booting.
Edited: By following the example in the prior post, one can add individual files to the root ("/" or topmost folder) of the multi-session media.

Code: Select all

sh-4.1# ls /mnt/sr0
boot.cat  help2.msg  initrd.gz	   isolinux.cfg  spup_099.sfs
boot.msg  help.msg   isolinux.bin  logo.16	 vmlinuz
The_Everything_Orgasm_Book-Cooper.book
sh-4.1# 

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#13 Post by Flash »

Gcmartin, if you're still following this thread, did that work? Did the Puppy DVD find and use the OpenOffice.sfs file when it booted?

User avatar
tallboy
Posts: 1760
Joined: Tue 21 Sep 2010, 21:56
Location: Drøbak, Norway

#14 Post by tallboy »

This is very interesting. I have thought somewhat along the same lines, but rather than running programs from a DVD+RW disk, I thought about storing applications, along with their deps, in a multisession directory, using cheap CD/DVD -R disks. They will not be launched at bootup, but always be available and ready to be installed in seconds. Mainly for large programs that make your puppy slow booting, or all the man and info files, all things you rarely use but want to have ready when the occasion demand them. I especially think about those times without a net access, so programs cannot be downloaded. Just mount the disk and click apps to install, after work the results can also be stored in the same multisession dir, still keeping the puppy on the live CD/DVD small and fast-booting.

So the question is if the method with one dir name also work in multisession on a -R disk, or do you have to use +RW disks? As long as there is no overwrite necessary, I would think it may work (I'm out of disks, so I cannot try!!)

There is also the possibility to use /archive to store stuff you don't want to load at bootup, but then you have to save the session - which you may not want to do - and I also think the /archive files are dated each time, so they will multiply.

Tallboy.

Edited: I did not notice that the screenshot above was from a multisession DVD, so my question is already answered!

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#15 Post by Flash »

Tallboy, multisession Puppy will run from any kind of DVD (except DVD-RAM.) DVD+ is said (mostly by Sony, who developed it) to be technically superior to DVD-, but I've never been able to see any difference. If you want to experiment, I recommend a rewritable DVD. Again DVD+RW is said to be technically superior, but I've used both +RW and -RW and I didn't see any difference in performance. Also, some of the 1.4 GB rewritable mini-DVDs that were developed for video cameras have a scratch resistant coating, making them perfect for experimenting with multisession Puppy.

User avatar
tallboy
Posts: 1760
Joined: Tue 21 Sep 2010, 21:56
Location: Drøbak, Norway

#16 Post by tallboy »

Well, that worked just as intended, apart from one small thing, see details below. I used multisession on a DVD-R disk, and made a directory named applications for Gramps, and all othe programs I want to have within reach. I discovered that updating the .gramps file that contains all data, is smart to do in a separate directory. When I first tried to save .gramps to the gramps dir, it simply spilled the contents into the dir, and the dotfile was nowhere to be found. Trying to be smart and rename to dot-gramps did not help, it just updated the loose files, and dot-gramps could not be found. When I did a new test dir, and moved the .gramps file into a dir called dot-gramps, and saved that dir instead, it worked. The .gramps file is always up to date. You can see the screenshot for details. I also made some new dirs for more programs, and they listed nicely within the application dir on the disk.

I wonder if there is a method to find the earlier saves, as only the latest are listed, maybe they need a date attached.

Tallboy.

BTW, the Gramps and it's deps installed and was ready to run in less than a minute.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#17 Post by Flash »

Excellent. Thanks for the feedback. What do the contents of the DVD look like through Windows?

gcmartin

Can save to a Multi-session CD-R too.

#18 Post by gcmartin »

Live Media Information
On one earlier question on adding folder/files to your LIve "CD", the answer is YES; this works same for a multi-session CD as it does on multi-session DVD.

Only distinctions that I am aware of, is, CD-R cannot be erased and re-used. like you can with a CD-RW. But for multi-session use, it works exactly the same for both media; namely you can add additional data after initiial burn..

This applies to DVD media (DVDR vs DVDRW) also.

Hope this helps

User avatar
tallboy
Posts: 1760
Joined: Tue 21 Sep 2010, 21:56
Location: Drøbak, Norway

#19 Post by tallboy »

Flash wrote:What do the contents of the DVD look like through Windows?
When I look out through my windows, I see trees and birds, but cannot see a single DVD content! :lol: :lol: :lol:

I've run Debian since v.3.0 for all heavy stuff at home, Mac before that, Puppy since v.2.13/2.14 or thereabouts, RedHat Enterprise at the university. We do have Windoze at the uni, but most of us prefer Linux. I'll bring the DVD along and take a look in 'doze.

Tallboy.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#20 Post by Flash »

Well, just take a look at the DVD in Windows. See if it looks different from the way it does in Puppy.

Post Reply