Dvd .iso version 1.05

Discuss anything specific to using Puppy on a multi-session disk
Message
Author
User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

Dvd .iso version 1.05

#1 Post by Ted Dog »

Using the remasterCD script here is a DVD-only v1.05 multi-session iso to burn using normal puppy. Change into the download directory and type this.
change /dev/hdb to your burner, found in CD/DVD wizard.

Code: Select all

growisofs -Z /dev/hdb=DeVilDog.iso
or use this as a script

Code: Select all

BURNERDRIVE="/dev/`cat /etc/cdburnerdevice`
growisofs -Z $BURNERDRIVE=DeVilDog.iso
It does not use cdrecord hince those strange error msgs from normal puppy and its error resulting in only one session saved do not exist.

EDIT: changed to point to newer improved version - Ted Dog 10/9/05
http://puppy.wise-guy.us/index.html
Last edited by Ted Dog on Sun 09 Oct 2005, 03:53, edited 1 time in total.

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

#2 Post by Flash »

Ted, I really want to try it out, but all I get are pictures of cows and goats. :?

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

opps try again

#3 Post by Ted Dog »

Ok changed the name to the one listed, please try again

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

adding developer squashfs to DeVilDog v1.05

#4 Post by Ted Dog »

from the download directory (or /mnt/home ) containing usr_devx.sfs
type this command to add to existing burned DVD disk

Code: Select all

growisofs -M /dev/`cat /etc/cdburnerdevice` -D -R -J usr_devx.sfs
you can also add usr_more.sfs (if you got one)

Code: Select all

growisofs -M /dev/`cat /etc/cdburnerdevice` -D -R -J usr_more.sfs 
add this to rc.local
---------------------- rc.local ----------------

Code: Select all

#v1.0.5...
ONECD="/dev/`cat /etc/cdburnerdevice`"
mount -t iso9660 $ONECD /mnt/home > /dev/null 2>&1
cp /mnt/home/*.sfs /livecd/
sync
USRDEVX=""
if [ ! "`ls /livecd/usr_devx.sfs 2> /dev/null`" = "" ];then
mkdir /.usr_devx
echo "Mounting /livecd/usr_devx.sfs file on /.usr_devx..."
losetup /dev/loop3 /livecd/usr_devx.sfs
mount -r -t squashfs -o noatime /dev/loop3 /.usr_devx
if [ $? -eq 0 ];then
USRDEVX=':/.usr_devx=ro'
fi
fi
USRMORE=""
if [ ! "`ls /livecd/usr_more.sfs 2> /dev/null`" = "" ];then
mkdir /.usr_more
echo "Mounting /livecd/usr_more.sfs file on /.usr_more..."
losetup /dev/loop4 /livecd/usr_more.sfs
mount -r -t squashfs -o noatime /dev/loop4 /.usr_more
if [ $? -eq 0 ];then
USRMORE=':/.usr_more=ro'
fi
fi
umount $ONECD
fuser -k -m /usr
sync
umount -r /usr
sync
mount -t unionfs -o dirs=/root/.usr=rw${USRDEVX}${USRMORE}:/.usr_cram=ro none /usr

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

#5 Post by Flash »

Hey Ted, thanks. I downloaded it and it works beyond my expectations. For convenience I burned it in Windows with a program called Record Now, because that program has always worked for me. I burned a mini (8 cm) DVD+RW, booted it with option 5, configured it, did some things, shut down, then rebooted and the stuff I had done was still there. Then I sent a few emails and shut down. When I rebooted all the emails I had sent were in the sent folder.

I'm now in my third boot of this DVD and it's saved everything from the first two sessions except your iso, which I had transferred from Windows' NTFS partition to the "My Applications" folder in Puppy. I don't see why the iso wasn't saved. The folder I put the iso in was saved but the iso wasn't. :?

I burned some folders from Windows' NTFS onto the multisession DVD using TkDVD (checking the "Add Session to Disk -M" option in TkDVD's "Advanced" window), and the folders show up when I mount the DVD. I haven't rebooted it yet to see what happens. :)

Watch this space for more exciting developments.

Thanks again Ted, and Barry.

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

TkDVD is missing the -D command

#6 Post by Ted Dog »

this could cause some problems. Since you are on a DVD+RW what the hay it is easy to reuse. You do not even need to erase it (shortens the rewrite count a lot)

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

TKDVD settings

#7 Post by Ted Dog »

uncheck all but the -M and use -R (not -r)
resulting like this
growisofs -M /dev/dvd -J -R -graft.....

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

#8 Post by Flash »

Ted, what does the code, that I'm supposed to add to rc.local, do? To put that another way, why do I need it?

- Thanks

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

adds the use of developer tools

#9 Post by Ted Dog »

-Short answer Not if you can wait.
using your feed back the corrected tlDVD, burnISO2CD, added those changes in rc.local into sysinit-cd where it logically belong fixes are coming into version two of DeVilDog.iso I was trying to fix that dang cdrecord bug for non-DVD users and I am stuck
-now for those who can't wait if the above code is added and *.sfs files are in the same directory as usr_cram.fs, then like magic make,cc and the rest of the developer tools work. So you can compile smallish programs in RAM or in linux, vfat, flashdrive straight off the DVD.

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

#10 Post by Flash »

Thanks, I guess I can wait. :) I have plenty to occupy me till then.

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

#11 Post by BarryK »

Ted Dog,
I'm testing version 1.
It's nice not to have those error messages!

Okay, a bug...
Nothing can be deleted.
Your rc.reboot-cd does not save 00files.backup and 00files.deleted to the DVD so they aren't there on next boot.
The problem is, I deleted a file, and it is back on the next boot.
Which means that the size of files in /root is going to keep growing and
growing ...very bad since it is only in a ramdisk.

I will also have a look at the script this afternoon.

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

#12 Post by BarryK »

Ted Dog, building on your invaluable experience with growisofs, I have
updated rc.reboot-cd and rc.sysinit-cd, now all working, file deletion also.

Ted Dog, you examined this problem of sessions with growisofs.
Using cdrecord -toc, it shows two tracks, the original live-cd, and when
folders are saved at end of each session they just become track 2.

In other words, track 2 just keeps growing until dvd is full.

It seems, growisofs -Z creates the live-cd first track.
However the subsequent saving of each session with growisofs -M goes
into track 2.

The growisofs docs don't say this?
They do say the the commandline options in both cases, that is when
burning the first time with -Z and subsequent times with -M, that all
other options must be exactly the same.
...which they aren't.
The first time, we a building a bootable dvd, so have extra parameters.

Do you have any thoughts on this?
I would, if possible, like to get it down to all be on one track.
With current situation, there are still some seek errors at shutdown,
due to the 2 tracks.

Ted_Dog

cdrecord not really used in combination with growiso

#13 Post by Ted_Dog »

I removed active use of cdrecord (I suspect some how it is bad without scsi or without K2.6 series) with in rc.reboot-cd script. Also note Knoppix states that unionfs was to buggy in their early use but it seems to work ok here.
The cdrecord commands found are hold overs (lazy on my part) :oops:

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

#14 Post by BarryK »

There are two tracks though.

The "disktype" program confirms it.

I hunted around on the Internet, found a vague reference that confirms this.
It suggested the only way to get just one track is with a DVD-RW (I'm using
DVD-Rs) and to put it into "overwrite format" by doing this:

# dvd+rw-format /dev/hdc

then when you do growisofs, firstly with -Z then save sessions with -M,
it is all in one track. ...or so the info implied.

DVD-Rs and normal DVD-RWs are in "sequential format".

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

Testing in DVD-RW drawback

#15 Post by Ted Dog »

I enjoyed only having one reusable DVD to do development. It has been used from version 1.02 on (with earlier growiso tests) I bought a newer DVD (dual layer) for my main linux box, and had trouble reading the DVD-R mini second track burned on winXP box at my folks house. It sound like the same issue you raised. I'll try burning a new mini after a format to see if that was it, I was ready to return this new DVD drive. :)

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.

Post Reply