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 Sat 18 Aug 2018, 14:19
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Remastering doesn't work in 525 or 528
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [25 Posts]   Goto page: 1, 2 Next
Author Message
jonrpick


Joined: 05 Apr 2007
Posts: 54

PostPosted: Tue 13 Dec 2011, 00:12    Post subject:  Remastering doesn't work in 525 or 528
Subject description: Booting from USB flash memory
 

Running XFCE on 5.2.8. Had the same problem on 5.2.5.

I load the remastering tool, it calculates the necessary space, asks where I want to put it, click 'Ok', and then it justs pops up a dialog box with the title "Usage for Xdialog".

I can click 'Ok' or 'Print', and if I click 'Ok', the window just disappears. And that's it. What's the deal?

Hardware specs: HP Mini 311 Netbook, Intel Atom CPU, 3GB RAM, NVidia ION GPU. HDD has been removed for extra battery life and less heat. I boot off of a 4GB mini USB flash stick (4mm thick) and I had a 4GB SD card in the card reader (sdb1) for extra storage space.

Any ideas where to start????
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 4208
Location: Kiel,Germany

PostPosted: Tue 13 Dec 2011, 00:58    Post subject:  

Seems there is a bug in the remaster script OR you have some crappy Xdialog installed .
Code:
# grep Xdialog `which remasterpup2`

Quote:
Xdialog --wrap --left --title "$m_01: $m_02" --msgbox "$m_14_2
DIALOG="Xdialog --wrap --left --title \"$m_01\" --stdout --menubox \"$MSG\n\n$m_14_1\" 0 48 4 $SELECTIONS 2> /dev/null"
#export LANG=C #faster, plus Xdialog happier. # never do so for I18N
Xdialog --wrap --left --title "$m_01: $m_02" --msgbox "$m_03" 0 0
Xdialog --wrap --left --title "$m_01" --msgbox "$m_05" 0 0
Xdialog --wrap --left --title "$m_01" --no-buttons --ignore-eof --infobox "$m_06" 0 0 0 &
echo -n "Xdialog --wrap --left --stdout --title \"$m_01\" --menubox \"$m_13\" 0 0 5 " >> /tmp/savedlg
Xdialog --wrap --left --title "$m_01" --yesno "$m_35" 0 0 && NEW="no"
Xdialog --wrap --left --title "$m_02" --msgbox "$m_15" 0 0
Xdialog --wrap --left --title "$m_01" --msgbox "$m_16" 0 0
Xdialog --wrap --left --title "$m_01" --default-no --yesno "$m_16_1" 0 0
Xdialog --wrap --left --title "$m_01" --no-buttons --ignore-eof --infobox "$m_17" 0 0 0 &
Xdialog --wrap --left --title "$m_01" --no-buttons --ignore-eof --infobox "$m_18" 0 0 0 &
Xdialog --wrap --left --title "$m_01" --msgbox "$m_19" 0 0
Xdialog --wrap --left --title "$m_01" --default-no --yesno "$m_21" 0 0
Xdialog --wrap --left --title "$m_01" --msgbox "$m_23" 0 0
Xdialog --wrap --left --title "$m_01" --yesno "$m_24" 0 0
Xdialog --wrap --left --title "$m_01" --msgbox "$m_25" 0 0
Xdialog --wrap --left --title "$m_01" --msgbox "$m_25_1" 0 0
Xdialog --wrap --left --title "$m_01" --yesno "$m_26" 0 0
Xdialog --wrap --left --title "$m_01" --yesno "$m_27" 0 0
VOLI=$(Xdialog --title "$m_01" --stdout --inputbox "$m_27_1" 0 0 "$SFSBASE")
Xdialog --wrap --left --title "$m_01" --msgbox "$MSG
CDCHOICE="`Xdialog --wrap --left --stdout --title \"$m_01\" --menubox \"$m_29\" 0 0 4 CD-R \"$m_30\" DVD-R \"$m_31\"`"
Xdialog --wrap --left --title "$m_01" --msgbox "$m_33" 0 0

There are several Xdialogs on the remaster script , and if some $variable is empty OR not valid Xdialog tends to spit this disgusting error window every time .
So it is up to yo to check in which Xdialog window this occurs .
Back to top
View user's profile Send private message 
jonrpick


Joined: 05 Apr 2007
Posts: 54

PostPosted: Sun 18 Dec 2011, 14:22    Post subject:  

Hmm... when I ran that exact code from the CLI, I get the following:

Code:

# grep Xdialog `which remasterpup2`
grep: which remasterpup2: No such file or directory
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 4208
Location: Kiel,Germany

PostPosted: Mon 19 Dec 2011, 13:09    Post subject:  

# which which
/bin/which

OR is it witch witch ?

# apropos witch
bash: apropos: command not found

perhaps the backticks had been converted by witch into single quotes ..

Razz
Back to top
View user's profile Send private message 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 282
Location: Earth

PostPosted: Mon 19 Dec 2011, 14:28    Post subject:  

Karl Godt wrote:

perhaps the backticks had been converted by witch into single quotes ..
Razz

Very Happy
To avoid her magic tricks:
grep -e 'Xdialog' $(which remasterpup2)

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
jonrpick


Joined: 05 Apr 2007
Posts: 54

PostPosted: Mon 19 Dec 2011, 15:07    Post subject:  

Yeah... I typed it using backticks this time... forgive me. Wink

Code:
# grep Xdialog `which remasterpup2`
   Xdialog --wrap --left --title "$m_01: $m_02" --msgbox "$m_14_2
DIALOG="Xdialog --wrap --left --title \"$m_01\" --stdout --menubox \"$MSG\n\n$m_14_1\" 0 48 4 $SELECTIONS 2> /dev/null"
LANG=C #faster, plus Xdialog happier.
 Xdialog --wrap --left --title "$m_01: $m_02" --msgbox "$m_03" 0 0
Xdialog --wrap --left --title "$m_01" --msgbox "$m_05" 0 0
Xdialog --wrap --left  --title "$m_01" --no-buttons --ignore-eof  --infobox "$m_06" 0 0 0 &
 echo -n "Xdialog --wrap --left --stdout --title \"$m_01\" --menubox \"$m_13\" 0 0 5 " >> /tmp/savedlg
   Xdialog --wrap --left --title "$m_01" --yesno "$m_35" 0 0 && NEW="no"
   Xdialog --wrap --left  --title "$m_02" --msgbox "$m_15" 0 0
 Xdialog --wrap --left  --title "$m_01" --msgbox "$m_16" 0 0
Xdialog --wrap --left  --title "$m_01" --default-no --yesno "$m_16_1" 0 0
Xdialog --wrap --left  --title "$m_01" --no-buttons --ignore-eof   --infobox "$m_17" 0 0 0 &
Xdialog --wrap --left  --title "$m_01" --no-buttons --ignore-eof   --infobox "$m_18" 0 0 0 &
Xdialog --wrap --left --title "$m_01" --msgbox "$m_19" 0 0
Xdialog --wrap --left --title "$m_01" --default-no --yesno "$m_21" 0 0
Xdialog --wrap --left  --title "$m_01" --msgbox "$m_23" 0 0
 Xdialog --wrap --left  --title "$m_01" --yesno "$m_24" 0 0
Xdialog --wrap --left  --title "$m_01" --msgbox "$m_25" 0 0
  Xdialog --wrap --left  --title "$m_01" --msgbox "$m_25_1" 0 0
Xdialog --wrap --left --title "$m_01" --yesno "$m_26" 0 0
 Xdialog --wrap --left  --title "$m_01" --yesno "$m_27" 0 0
  VOLI=$(Xdialog --title "$m_01" --stdout --inputbox "$m_27_1" 0 0 "$SFSBASE")
 Xdialog --wrap --left  --title "$m_01" --msgbox "$MSG
CDCHOICE="`Xdialog --wrap --left --stdout --title \"$m_01\" --menubox \"$m_29\" 0 0 4 CD-R \"$m_30\" DVD-R \"$m_31\"`"
Xdialog --wrap --left --title "$m_01" --msgbox "$m_33" 0 0


BTW, running remasterpup2 from the CLI gives this output:

Code:
# /usr/sbin/remasterpup2
/usr/sbin/remasterpup2: line 360: 19935 Terminated              Xdialog --wrap --left --title "$m_01" --no-buttons --ignore-eof --infobox "$m_06" 0 0 0
WKGPART=sda1
#



When I checked line 360 in the script, I got this:

(lines 359-361)

Code:
kill $XPID
/tmp/savedlg
WKGPART="`cat /tmp/tag.txt`"
Back to top
View user's profile Send private message 
jonrpick


Joined: 05 Apr 2007
Posts: 54

PostPosted: Mon 19 Dec 2011, 15:17    Post subject:  

...also... I just installed the remasterpup3 script and ran it. SAME THING.

Sad
Back to top
View user's profile Send private message 
jonrpick


Joined: 05 Apr 2007
Posts: 54

PostPosted: Mon 19 Dec 2011, 21:46    Post subject:  

I found a reference to where there were issues remastering when the media (flash, HDD, etc...) was formatted to a FAT32 partition. I switched everything over to ext3, started from scratch, annnnnnnnnnnd.....


same thing... Sad
Back to top
View user's profile Send private message 
jonrpick


Joined: 05 Apr 2007
Posts: 54

PostPosted: Mon 19 Dec 2011, 21:59    Post subject:  

I'd tried the manual method as well... found here:

http://puppylinux.org/wikka/remastering

when I ran the following command, I had errors like crazy due to FAT32 file systems not being able to support symbolic links:

Code:
http://puppylinux.org/wikka/remastering


I just successfully did that now that I'm fully ext3'd...

So, I just tried this:

Code:
mksquashfs puppyfilesystem puppylivediscbuild/puppy-remastered.sfs -noappend


and successfully created a new .sfs file. For the record, I was after the .sfs the whole time. I don't need a whole .iso file. If need be, I could simply swap the new .sfs file into the existing .iso file (which I had to mount in order to attempt the remaster).

I'm about to swap out .sfs files and reboot, ignoring the save file. If it works, I'll post up the results.
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 4208
Location: Kiel,Germany

PostPosted: Tue 20 Dec 2011, 01:40    Post subject:  

FINE !

Running a pup-430 atm : it's remasterpup2 is missing the

Xdialog --wrap --left --title "$m_01" --no-buttons --ignore-eof --infobox "$m_06" 0 0 0 &

And the whole locale variables feature ($m_01) .

So somethings have changed to worse or good ... Wink

Quote:
echo '#!/bin/sh' > /tmp/savedlg
echo -n "Xdialog --wrap --stdout --left --title \"Puppy simple CD remaster\" --menubox \"A working area is required in which to create the new live-CD iso file.
Here are the available partitions. You must choose one that has at least ${SIZENEEDEDM}M free space on it. Also, if you choose to create an ISO file rather than burn direct to CD/DVD, then you will need an extra 100 - 200MB space (whatever the size of ISO file is going to be).

If the partition that you would like to use has less than ${SIZENEEDEDM}M free space on it, you will need to quit this script and delete some files.
Note 1: you can use a usb drive, but it needs to have been plugged in before
running this script, so that it will get detected.
${TMPFSMSG}
Highlight desired choice then click OK button...\" 0 0 5 " >> /tmp/savedlg
echo "$SCHOICES" >> /tmp/savedlg
echo ' > /tmp/tag.txt' >> /tmp/savedlg
chmod 755 /tmp/savedlg

/tmp/savedlg
WKGPART="`cat /tmp/tag.txt`"
echo "WKGPART=$WKGPART"
[ "$WKGPART" = "" ] && exit

seems to be the problematic witch craft (lines 139-155 on pup-430)
BUT because WKGPART is not empty in zour case it must be more with which witches there .
btw the keyboard witch has confused the z and y keys ... Cool
Back to top
View user's profile Send private message 
jonrpick


Joined: 05 Apr 2007
Posts: 54

PostPosted: Sat 31 Dec 2011, 23:43    Post subject:  

Karl, I appreciate all of your help. However, I've abandoned the idea of using the remastering script. I've been attempting it manually, each time with more success, but never quite "there".

I've been following the directions here: http://puppylinux.org/wikka/remastering

Here's what I'm doing, step-by-step:

Code:

mkdir /mnt/home/
mkdir /mnt/home/puppyfilesystem
cp -a  /initrd/pup_ro2/* /mnt/home/puppyfilesystem
mkdir /mnt/home/puppylivediscbuild
cd /mnt/home/puppyfilesystem
rm -r root
rm -r var
rm -r bin
cp -a /root/ /mnt/home/puppyfilesystem
cp -a /var/ /mnt/var/puppyfilesystem
cp -a /bin/ /mnt/bin/puppyfilesystem
cd /mnt/home
mksquashfs puppyfilesystem puppylivediscbuild/puppy-remastered.sfs -noappend


So, I'm copying my /var, /bin and /root directories over before remastering, as I should. However, I'm still missing some things. The newly-created .sfs file *does* boot, however there are things missing (Xfce for example) while other things are there (Chromium).

So, I'm in process of figuring out the "why". I apparently am not copying over all the necessary stuff to make it work correctly.

The journey continues...

Last edited by jonrpick on Sun 01 Jan 2012, 01:43; edited 1 time in total
Back to top
View user's profile Send private message 
jonrpick


Joined: 05 Apr 2007
Posts: 54

PostPosted: Sun 01 Jan 2012, 01:42    Post subject:  

...and just to be clear, I'm not going through the entire remastering process. I'm only going so far as to create a new .sfs file to replace the one on my USB stick.
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 4208
Location: Kiel,Germany

PostPosted: Sun 01 Jan 2012, 16:59    Post subject:  

Quote:
cp -a /initrd/pup_ro2/* /mnt/home/puppyfilesystem

copies the pup-name-version.sfs into the build directory .

OK .

Now to where your new installed files are :

They should be in the save file in /initrd/pup_rw .

To update the save-file with everything you installed the last few minutes : Click if present the " Save " icon on the desktop to run /usr/sbin/snapmergepuppy which should first copy the installed files still residing in tmpfs in RAM into the save-file .

This " Save " thingy is to write only to flash in intervals not permanently like frugal installed to HDD .

The Save interval is adjustable by /usr/sbin/eventmanager writing into the configuration file /etc/eventmanager :

#For odd-numbered PUPMODE, periodic save in minutes. 0=no periodic save...
RAMSAVEINTERVAL=30

The daemon /sbin/pup_event_frontend_d started by ~/.xinitrc sources the /etc/eventmanager once at start . If changes made into /etc/eventmanager this would be recognized by restarting /sbin/pup_event_frontend_d by restarting X .

/sbin/pup_event_frontend_d lauches /usr/sbin/snapmergepuppy every 30 minutes automatically .

There are some problems reported running the snapmerge while in/uninstalling packages .

I think if the periodic message to save to save-file would popup and looking into top command output for snapmerge to dissapear and wait one minute after it disappeared

AND
Code:
cp -a --remove-destination /initrd/pup_rw/* /mnt/home/puppyfilesystem

should do it .

cp -a /* /mnt/home/puppyfilesystem would again cp the whole main.sfs incl all other mounted sfs and the save-file into /mnt/home/puppyfilesystem directory .

Quote:
cp -a /var/ /mnt/var/puppyfilesystem
seems not correct
cp -a /var/ /mnt/home/puppyfilesystem should it be if you dont want to use /initrd/pup_rw but want to cp all directories manually .

/var /root /bin are not enough .
The needed dirs are /bin /dev /etc /lib /opt /root /sbin /usr /var
NOT /initrd AND /mnt
BUT /proc /sys /tmp /mnt have to be as directory dummy without content inside /mnt/home/puppyfilesystem evtl /mnt/data ./flash ./cdrom ./ram1 ./msdos ./dvd ./swap ./zip needed .

You would need to make sure that especially the blockdevice nodes are not deleted in /dev folder by udevd unplugging some usb
AND /etc/.XLOADED /etc/asound.state and /etc/X11/xorg.conf should be left out of /mnt/home/puppyfilesystem/etc
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2581
Location: UK

PostPosted: Sun 01 Jan 2012, 17:15    Post subject:  

See this thread for other options, such as Woofy, moo-tools, and what you may be looking for, Edit-SFS...

http://www.murga-linux.com/puppy/viewtopic.php?p=536927#536927

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
jonrpick


Joined: 05 Apr 2007
Posts: 54

PostPosted: Sun 01 Jan 2012, 18:16    Post subject:  

sc0ttman wrote:
See this thread for other options, such as Woofy, moo-tools, and what you may be looking for, Edit-SFS...

http://www.murga-linux.com/puppy/viewtopic.php?p=536927#536927


Does Edit-SFS make changing an existing SFS file easier than just mounting it like so:

Code:
mount -o loop lupu-528.sfs /mnt/data


...and then changing it manually?

Last edited by jonrpick on Sun 01 Jan 2012, 18:20; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [25 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0697s ][ Queries: 13 (0.0065s) ][ GZIP on ]