Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 01 Oct 2014, 01:59
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge » Multi-session live-CD/DVD
1.0.3 error writing multisession to CD- aborts
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
BungaDunga

Joined: 05 Jun 2005
Posts: 17

PostPosted: Tue 14 Jun 2005, 20:21    Post subject:  1.0.3 error writing multisession to CD- aborts  

When I shut down my 1.0.3 multisession disc, it tries to write to the CD but fails, giving an error something like this:

Premature EOF on stdin
Input buffer read error, aborting.

It then just continues shutting down. The odd thing is that its certainly been able to write back to it at least twice before- is there any reason why it might refuse to now? If I start it up, do nothing, and shut down, it goes through the whole writing part without error- but, of course, writes no data.
Back to top
View user's profile Send private message 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Tue 14 Jun 2005, 20:30    Post subject:  

Have you tried the first multi-session version to see if the same error occurs.
I haven't got around to trying multi 1.0.3 but as it is using the 2.4 kernel it should work like the earlier one.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Tue 14 Jun 2005, 20:50    Post subject:  

The shutdown script is in /tmp/rc.reboot, which is a copy of /etc/rc.d/rc.reboot-cd.

There's a long line in there somewhere that feeds the list of files to cdrecord.
Here it is:

Code:
mkisofs -J -R -C $SECT -M $DEV -pad -new-dir-mode 0755 -P "Puppy Linux" -p "Barry Kauler" -graft-points -path-list /tmp/listfinalshutdown.txt  $MYDATE/$LOG=$LOG | cdrecord -multi -data -eject -v speed=4 gracetime=1 dev=$CDR  -


It seems that something is wrong in here somewhere.
Maybe /tmp/listfinalshutdown.txt has an invlide entry in it ...just guessing.

You could try inserting some code just before this line, like this:

Code:
echo "MYDATE is $MYDATE"
echo "LOG is        $LOG"
echo "CDR is        $CDR"
echo -n "Press ENTER: "
read xxzz
cat /tmp/listfinalshutdown.txt | more
Back to top
View user's profile Send private message Visit poster's website 
ezeze5000


Joined: 10 May 2005
Posts: 346
Location: Missouri U.S.A

PostPosted: Wed 15 Jun 2005, 07:14    Post subject: puppy-1.0.3 multisession  

I'm writing this to you on puppy-1.0.3 multisession and it works real good

It burns ok to save session.
Back to top
View user's profile Send private message Yahoo Messenger 
BungaDunga

Joined: 05 Jun 2005
Posts: 17

PostPosted: Fri 17 Jun 2005, 23:51    Post subject:  

BarryK wrote:
The shutdown script is in /tmp/rc.reboot, which is a copy of /etc/rc.d/rc.reboot-cd.

There's a long line in there somewhere that feeds the list of files to cdrecord.
Here it is:

Code:
mkisofs -J -R -C $SECT -M $DEV -pad -new-dir-mode 0755 -P "Puppy Linux" -p "Barry Kauler" -graft-points -path-list /tmp/listfinalshutdown.txt  $MYDATE/$LOG=$LOG | cdrecord -multi -data -eject -v speed=4 gracetime=1 dev=$CDR  -


It seems that something is wrong in here somewhere.
Maybe /tmp/listfinalshutdown.txt has an invlide entry in it ...just guessing.

You could try inserting some code just before this line, like this:

Code:
echo "MYDATE is $MYDATE"
echo "LOG is        $LOG"
echo "CDR is        $CDR"
echo -n "Press ENTER: "
read xxzz
cat /tmp/listfinalshutdown.txt | more


Erp. It looks like I have been wasting your time rather. When I was messing around trying to get it to write, a line caught my eye as it whizzed past: ¨directories too deep¨. This, of course, reminded me of the bug report on the News page. In short, adding -D to the mkisofs line got it to work fine. Thanks for your help, though.

Edit: Ok, looks like I am having some problems. Both /tmp/rc.reboot and /etc/rc.d/rc.reboot-cd seem to be resetting after reboot- even when the write goes ok. Is there any easy way to make the changes ¨stick¨?
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sat 18 Jun 2005, 05:02    Post subject:  

No, the changes won't stick. You will have to remaster the CD, for which there is a script, and /root0/.etc/rc.d/rc.reboot-cd will have to be edited in image.gz.

Anyway, I have made the correction for Pup 1.0.4.

What you could do is write a little script in /etc/rc.d/rc.local, as this file does "stick". The script could modify /tmp/rc.reboot at every bootup.

Something like this:

Edit /tmp/rc.reboot and place modified version in /root/my-documents/rc.reboot

Then in /etc/rc.d/rc.local:

cp -f /root/my-documents/rc.reboot /tmp/

You can remove this after Puppy is upgraded to v1.0.4.
Back to top
View user's profile Send private message Visit poster's website 
BungaDunga

Joined: 05 Jun 2005
Posts: 17

PostPosted: Sun 26 Jun 2005, 19:07    Post subject:  

Well- I took a little break from Puppy, and just today I tried your instructions. I´m afraid I can´t tell if they work, because it won´t write, even if I add the -D parameter! I have tried this at least three times, it persists in not working. I even burned a new Puppy, and got all my data off the old one using that prompt during boot- I couldn´t get that to write either.

One thing I noticed when shutting down is that it lists a few files with ¨file exists¨ afterwards- this never used to happen. Are those the ones which are meant to be archived?
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sun 26 Jun 2005, 19:55    Post subject:  

One thing you could try is put a pause into the shutdown, like

sleep 120

in the /tmp/rc.reboot script somewhere, so it will wait for 120 seconds at that point, give you time to read the messages.
Back to top
View user's profile Send private message Visit poster's website 
BungaDunga

Joined: 05 Jun 2005
Posts: 17

PostPosted: Sun 26 Jun 2005, 22:00    Post subject:  

scsidev: '0,0,0'
scsibus: 0 target: 0 lun : 0
Linux sg driver version 3.1.25
scsidev: '0,0,0'
scsibus: 0 target: 0 lun : 0
Linux sg driver version 3.1.25
scsidev: '0,0,0'
scsibus: 0 target: 0 lun : 0
Linux sg driver version 3.1.25

ln: /root/.usr/bin/iPodder: File exists
(a few more of these, I don't feel like writing out the long paths)

Track to be saved on CD/DVD is number 15
Total size to be saved to CD/DVD is 6352 bytes

All I managed to get after that was the "Premature EOF on stdin" etc.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Mon 27 Jun 2005, 07:59    Post subject:  

The problem seems to be that /tmp/listfinalshutdown.txt.

...something in that, perhaps, is causing that "premature EOF".
maybe one of the entries in there is not a valid file.

Just before the "sleep 120" line, you need to insert some code to examine and verify that file.
Something like this:

for ONEFILE in `cat /tmp/listfinalshutdown.txt`
do
echo "Looking for $ONEFILE..."
if [ -e $ONEFILE ];then
echo "Yes"
else
echo "No"
fi
echo -n "Press ENTER to check next file: "
read mmoorree
done
sleep 120
Back to top
View user's profile Send private message Visit poster's website 
BungaDunga

Joined: 05 Jun 2005
Posts: 17

PostPosted: Mon 27 Jun 2005, 14:32    Post subject:  

Hmm. As far as I can tell, every file that little snippet finds comes up as ¨No¨. I took pictures of it as it shut down- I can attach them, but I´ll have to boot into Windows to get them off my camera, so I´ll add them in a bit.

Edit: Here it is, most of it is in chronological order:
AllPics.jpg
 Description   
 Filesize   204.35 KB
 Viewed   2101 Time(s)

AllPics.jpg

Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Tue 28 Jun 2005, 21:08    Post subject:  

Oh, I'll need to check how the script works... all those files are prefixed with the CD folder name, for example 2005-10-1-6-5, rather than /root.
So, the test code I supplied won't work.

I'll attempt to do something for 1.0.4, some extra testing of the validity of the entries in the /tmp/listfinalshutdown.txt file.
Back to top
View user's profile Send private message Visit poster's website 
kirk_22

Joined: 09 Jun 2005
Posts: 6

PostPosted: Fri 01 Jul 2005, 06:03    Post subject:  

BarryK wrote:
Oh, I'll need to check how the script works... all those files are prefixed with the CD folder name, for example 2005-10-1-6-5, rather than /root.
So, the test code I supplied won't work.

I'll attempt to do something for 1.0.4, some extra testing of the validity of the entries in the /tmp/listfinalshutdown.txt file.


I've seen the same problem but so far haven't been able to nail down the cause.

I trimmed down a copy of the shutdown script to just the file name collection and burning sections. I believe that it did burn fine when running from the icewm session but it failed when running the full script (with -D) during a normal shutdown. If I remember right it had problems restoring the session from the trimmed down script but I attributed that to open files in the /proc directory. (I am by no means a linux guru so take the above for what it's worth)

I would like to see more error checking in the shutdown script. I think that if there is an error, the script should prompt to save the session in a different manner or return to the session rather than loosing all changes.

Kirk
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge » Multi-session live-CD/DVD
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0801s ][ Queries: 13 (0.0055s) ][ GZIP on ]