Dvd .iso version 1.05

Discuss anything specific to using Puppy on a multi-session disk
Message
Author
User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#16 Post by BarryK »

Yeah, that could be it.
It works when there is just one track.

I'll upload my scripts tonight, after I have looked at GuestToo's bugfix
-- unmodified files are getting saved at end of session.

Guest

#17 Post by Guest »

:oops:

Guest

#18 Post by Guest »

FWIW, here's a description of the Multi Media command set, which may, or may not, be adhered to by all DVD drive manufacturers. :lol:

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#19 Post by BarryK »

Okay, test DVD multi-session here, courtesy of Babbs:

http://puppy.wise-guy.us/

There's also a readme file.

Please heed the warning about the XP swap file.

I'm going to contact the author of growisofs, see if there is any way
to force only one track, instead of the two that are created on the DVD
-- which causes seek errors.

One really good thing is the efficiency of saved sessions, as all in track 2,
until dvd is full.

If you download usr_devx.sfs to /root, it will get saved to dvd at end
of session, then loaded back into /root next session and automatically
mounted on /usr.
...well, that was the idea, but after uploading the iso, i realised that
the shutdown cleanup moves it to /root/archive and it never gets
reloaded. Need to fix that.

However, if put usr_devx.sfs into /livecd, at shutdown there is an option
to create a new dvd, which will burn everything in /livecd onto the dvd,
as well as all files in /root, so the new dvd will load usr_devx.sfs
onto /usr at bootup ...again, in theory.

User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

adding dev. tools

#20 Post by Ted Dog »

Code: Select all

 growisofs -M /dev/hdb usr_devx.sfs 
change to directory having usr_devx.sfs and use the code above changing the /dev/hdb to what ever your burner is located.

Ted_Dog

cdrecord errors in new test-DVD iso in reboot script

#21 Post by Ted_Dog »

if you would replace the cdrecord command at this state with this we will have less problems with DVD drives.

Code: Select all

   #v1.0.5 need ATAPI: prefix... Replace "Can" with "Does"...
   #v1.0.6 get rid of warnings to console...
   if [ "`dvd+rw-mediainfo $CDR 2>/dev/null | grep "non-DVD"`" = "" ];then
    MAXSIZEM=647
    MEDIATYPE="CD" #v1.0.6
cdrecord also fails here:

Code: Select all

  #v1.0.5 need ATAPI: prefix...
  #v1.0.6 get rid of warnings to console...
  CDDVDFS="`cdrecord -toc dev=ATAPI:$CDR `"
  NUMTRACKS=`echo -n "$CDDVDFS" |grep "track"|tail -n 2|head -n 1|tr -s " "|cut -f 2 -d " "`
consider skipping this section of code if DVD is already determined. some size info is reported but it format varies based on DVD+RW or DVD-R media. growiso will block any attempt to add over 4G in a new directory and reports it. That should prompt for a new DVD. That gives about a 700M buffer for a single file [from RAM] over the 4G boundry. Therefore all this checking for size before hand is really not needed.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#22 Post by BarryK »

Thanks, yes, so simple to just append usr_devx.sfs to the DVD!

Well, the size checking is needed.... I think
Need to know in advance whether the session will fit.
If growisofs starts to write files to the dvd, then hits the limit, will get
part of a session saved ...not good.

Note, I have sent an email to Andy, the author of growisofs, asking about
the tracks, how to force everything into just one track for DVD-Rs.

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

puppy-test-ms-dvd-9oct05 test report

#23 Post by Flash »

Barry,
I burned your DVD Puppy (to an 8 cm DVD+RW) and booted it a few times, adding something each time to see if it would save correctly. As far as I could tell, it did. After 3 shutdowns it has only grown to 68 MB.

However, even though it seems to work OK, some puzzling messages do appear during shutdown. I took some pictures of them with my digital camera. Here are all but the second one. (The forum only allows 3 attachments to a post.)
Attachments
puppy-test-ms-dvd-9oct05_shutdown_4.jpg
(57.81 KiB) Downloaded 1564 times
puppy-test-ms-dvd-9oct05_shutdown_3.jpg
(67.4 KiB) Downloaded 1527 times
puppy-test-ms-dvd-9oct05_shutdown_1.jpg
(65.9 KiB) Downloaded 1507 times

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#24 Post by BarryK »

Thanks, your snapshots give me a clue...

Creating the original iso file, I used mkisofs directly.
After you download the iso file, you use growisofs to burn the iso to dvd.

Saving a session, only growisofs is used to write the files to dvd.

Tonight I will try an experiment, usr growisofs to bypass the iso file stage,
and burn the files direct to dvd.

Note, growisofs does use mkisofs, to convert the files to an iso image,
-- so I need to find out the exact parameters that get fed to mkisofs.
...maybe is run "ps" command quick enough, can find that out.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#25 Post by BarryK »

Okay, it's lookin real good!
Ted Dog mentioned in an earlier post that it works better if mkisofs is not used.

In Unleashed, I wrote the files in isolinux-builds directory direct to the DVD
using growisofs, bypassing direct usage of mkisofs.

I then used Graveman to read the DVD image to an iso file.

I'm running it now, so far no error messages at bootup or shutdown.

Just trying a few more tweaks.

Tomorrow I'll upload a new iso, and we will see if we can beat any more
bugs.

I'm most impressed with the space efficiency of saving the sessions,
unlike CD which used 10 - 15M padding for each saved session.

I'm using DVD-Rs to test, wasting lots of them....
but once I get it all working ...well, just about there ....then one DVD
will last for a long time.

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

#26 Post by Flash »

Barry,

I've been trying to make some sense of the MultiMedia Command set. It's pretty heavy going. I may have this wrong, but here's what I think it says.

An open session is made up of at least one but not more than 16 "fragments" which are reported as tracks. Once the session is closed the whole session is viewed as one track. It's not clear to me whether every fragment in an open session is a track, or only the open one(s) or what. Also, I'm unclear on just what constitutes a "fragment."

So, in the unlikely event that I understood it correctly, the MMC literature implies that the only way to have one track on a DVD is to have only one session on the DVD, which contains only one fragment, and which is kept open until the DVD is full.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#27 Post by BarryK »

Well, anyway, the latest isn't giving any seek errors at bootup and shutdown:
http://www.murga.org/~puppy/viewtopic.p ... highlight=

Post Reply