Make blank Pupsave
Make blank Pupsave
EDIT: For latest version check this post
http://murga-linux.com/puppy/viewtopic. ... 008#813008
If anyone has problems saving session to file or needs a way to create blank savefile, here's the script, it installs under utillities in menu.
If anyone wants to make little hack to add option for making new (customized name e.g. pup_save-dejan.2fs) file please post new script/pet here. Thanks to Bruce for explaining me his method of creating blank pupsave b4. After you create new pup_save in folder where you installed frugal puppy it will be used next time you reboot.
http://murga-linux.com/puppy/viewtopic. ... 008#813008
If anyone has problems saving session to file or needs a way to create blank savefile, here's the script, it installs under utillities in menu.
If anyone wants to make little hack to add option for making new (customized name e.g. pup_save-dejan.2fs) file please post new script/pet here. Thanks to Bruce for explaining me his method of creating blank pupsave b4. After you create new pup_save in folder where you installed frugal puppy it will be used next time you reboot.
- Attachments
-
- make_pupsave.pet
- Makes blank pup_save
- (2.38 KiB) Downloaded 1613 times
Last edited by dejan555 on Mon 08 Dec 2014, 07:49, edited 3 times in total.
1. Pupsave install wanted.
sdb2/06-Drake/puppy_drake_0.1.sfs is in place.
But booted Drake won't make pupsave at shut-down/reboot.
Therefore:
2. Attempting to make suitably named pupsave beside the sfs file. [What name required?]
The program complains there are no frugal files to be found, so won't make the pupsave.
Does make_pupsave only work with frugal installs?
sdb2/06-Drake/puppy_drake_0.1.sfs is in place.
But booted Drake won't make pupsave at shut-down/reboot.
Therefore:
2. Attempting to make suitably named pupsave beside the sfs file. [What name required?]
The program complains there are no frugal files to be found, so won't make the pupsave.
Does make_pupsave only work with frugal installs?
I assume this is some puplet?Sylvander wrote:1. Pupsave install wanted.
sdb2/06-Drake/puppy_drake_0.1.sfs is in place.
But booted Drake won't make pupsave at shut-down/reboot.
Well pupsave are mostly used with frugal installs, don't know why would you need it with full install.The program complains there are no frugal files to be found, so won't make the pupsave.
Does make_pupsave only work with frugal installs?
make_pupsave script asks you for directory where to create savefile, then it checks if vmlinuz is in same directory so it's sure you made savefile in correct place. Maybe you can make dummy text file named 'vmlinuz' in that dir if you really want it there instead besides vmlinuz.
Also, I checked this script again now, since it's older script it formats savefile ext2 and adds .2fs extension. Don't know if that would be optimal for your puppy.
If you want to create this manually, this is basically the code you need from that script:
Code: Select all
cd /mnt/sdb2 #or any other dir
dd if=/dev/zero of=pup_save.2fs bs=1M count=512 #replace 512 with your desired size in MBs
mkfs.ext2 pup_save.2fs #or mkfs.ext3/4 depending on what your puppy use and also rename savefile with apropriate name/extension
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
1. "I assume this is some puplet?"
drake-0.1.iso is Barry Kaulers latest offering.
2. "don't know why would you need it with full install"
As I said in my post above...
This is a pupsave install.
i.e. Boot a "live" CD-RW, make a pupsave, sfs copied beside the pupsave.
3. "since it's older script it formats savefile ext2 and adds .2fs extension. Don't know if that would be optimal for your puppy"
No, it isn't.
I'd like it to be a .3fs [ext3 Linux filesystem] pupsave.
4. "If you want to create this manually, this is basically the code you need from that script:
Thanks muchly...
Will try that ASAP, and get back.
drake-0.1.iso is Barry Kaulers latest offering.
2. "don't know why would you need it with full install"
As I said in my post above...
This is a pupsave install.
i.e. Boot a "live" CD-RW, make a pupsave, sfs copied beside the pupsave.
3. "since it's older script it formats savefile ext2 and adds .2fs extension. Don't know if that would be optimal for your puppy"
No, it isn't.
I'd like it to be a .3fs [ext3 Linux filesystem] pupsave.
4. "If you want to create this manually, this is basically the code you need from that script:
Thanks muchly...
Will try that ASAP, and get back.
Here's what I see in my terminal window:
A 512MB puppy_drake_01.3fs file was made.
Does it look good to you?
Code: Select all
# cd /mnt/home/06-Drake
# dd if=/dev/zero of=puppy_drake_01.3fs bs=1M count=512
512+0 records in
512+0 records out
536870912 bytes (537 MB) copied, 24.578 s, 21.8 MB/s
# mkfs.ext3 puppy_drake_01.3fs
mke2fs 1.41.14 (22-Dec-2010)
puppy_drake_01.3fs is not a block special device.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
32768 inodes, 131072 blocks
6553 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=134217728
4 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 23 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
#
Does it look good to you?
Hi dejan555,
Just seen this topic - I have made a hack on your script ( see download below)
I changed the GUI to Yad, i also added the option to name the new save file and the option to make save file from 32mb - 1GB
I don't know anything about the command used to make the save file 2.fs ( used what was in your origional script) so i was wondering is there a similar command to make the save file 3.fs insted of 2.fs - Is it just a case of swapping the save file extension or is there more to it?
thanks.
Just seen this topic - I have made a hack on your script ( see download below)
I changed the GUI to Yad, i also added the option to name the new save file and the option to make save file from 32mb - 1GB
I don't know anything about the command used to make the save file 2.fs ( used what was in your origional script) so i was wondering is there a similar command to make the save file 3.fs insted of 2.fs - Is it just a case of swapping the save file extension or is there more to it?
thanks.
- Attachments
-
- make_pupsave.gz
- yad script
- (869 Bytes) Downloaded 1009 times
@Sylvander Looks good!
@stu90 Yes, there's a difference, like I said mkfs.ext2 command formats to ext2 filesystem, but newer pups use ext3 or ext4 probably
typing "mkfs" [TAB] in terminal gives me these formating mkfs commands
EDIT: Maybe add additional field/dropdown menu to choose format? I wanted to keep it dead simple though and in that time all pups used ext2 for savefiles by default i think.
@stu90 Yes, there's a difference, like I said mkfs.ext2 command formats to ext2 filesystem, but newer pups use ext3 or ext4 probably
typing "mkfs" [TAB] in terminal gives me these formating mkfs commands
Code: Select all
# mkfs
mkfs mkfs.ext3 mkfs.minix mkfs.reiser4 mkfs.xfs
mkfs.cramfs mkfs.ext4 mkfs.msdos mkfs.reiserfs
mkfs.ext2 mkfs.ext4dev mkfs.ntfs mkfs.vfat
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
Hello dejan555,
Here is another update - need testing to make sure the save file is in the correct format.
run script from /root directory.
cheers.
Here is another update - need testing to make sure the save file is in the correct format.
run script from /root directory.
cheers.
- Attachments
-
- make_pupsave.gz
- version 0.3
- (1012 Bytes) Downloaded 1013 times
Here is a .pet of the above with some minor changes - as it is now fairly different to dejan555's origional Make Pupsave i called this version simpleSAVE
Dependency:
requires Yad, download on this link:
http://www.murga-linux.com/puppy/viewto ... 647#539647
Dependency:
requires Yad, download on this link:
http://www.murga-linux.com/puppy/viewto ... 647#539647
- Attachments
-
- simpleSAVE-0.4.pet
- version 0.4
- (1.48 KiB) Downloaded 1228 times
I added note to first post about your version.
BTW, what do you like about yad, is it scripting syntax, is it faster then gtkdialog?
I see you are converting many scripts to use yad.
BTW, what do you like about yad, is it scripting syntax, is it faster then gtkdialog?
I see you are converting many scripts to use yad.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
Thanks dejan555,
Im not sure, i guess i just find Yad easier to use then gtkdialog - the actual gui's for yad in most cases are only a couple of lines long, they are just let down by my poor script writing
There is a trade off though as Yad is pretty rigid with its GUI - you cant have the customaziation, layout and features you get with gtkdialog.
Im not sure, i guess i just find Yad easier to use then gtkdialog - the actual gui's for yad in most cases are only a couple of lines long, they are just let down by my poor script writing
There is a trade off though as Yad is pretty rigid with its GUI - you cant have the customaziation, layout and features you get with gtkdialog.
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
simpleSAVE 0.4
I have tested simpleSAVE 0.4 in drake01.Sylvander wrote: Attempting to make suitably named pupsave beside the sfs file. [What name required?]
My drake01 is in /mnt/home/drake01
The existing save files in this directory are:
drakesave-fido.2fs and drakesave-root.2fs
Using the script 1st time I have got an error and fixed it by adding one line
Code: Select all
## get new save file size ##
SIZE=`echo $SETUP | cut -d "|" -f 2`
SIZE=`echo $SIZE | tr "," "."`
file name drakesave-test was working successfully.
Cheers
@dejan555,
yad is fun
- ASRI éducation
- Posts: 3197
- Joined: Sat 09 May 2009, 12:10
- Location: France
- Contact:
Simple PupSave 0.5 20130420
There are some days, I found this thread. Like you, I think the utility 'MakePupSave/SimpleSave' is a good idea.
Based on SimpleSave-0.4, I made some modifications:
- added localisation, help , information
- test pupmode & Yad presence
- detect save folder directory (RSH method)
- added .4fs
- lang : en, fr, de
- and other...
Proposals/Questions:
1 - I can not add a third format in the main GUI, I wanted to offer three choices (ext2/ext3/ext4).
2 - I am looking for translators (to check the English translation and translated into other languages).
Cordialement,
Based on SimpleSave-0.4, I made some modifications:
- added localisation, help , information
- test pupmode & Yad presence
- detect save folder directory (RSH method)
- added .4fs
- lang : en, fr, de
- and other...
Proposals/Questions:
1 - I can not add a third format in the main GUI, I wanted to offer three choices (ext2/ext3/ext4).
2 - I am looking for translators (to check the English translation and translated into other languages).
Cordialement,
- Attachments
-
- simplepupsave-0.5_20130420.pet
- (9.72 KiB) Downloaded 699 times
-
- simplepupsave20130420.jpg
- (28.95 KiB) Downloaded 2543 times
Last edited by ASRI éducation on Thu 25 Apr 2013, 08:47, edited 2 times in total.
Hi ASRI éducation.
That's pretty cool!
Meanwhile I did made some work on this as well and have created also a GUI version of the SimpleSave Script. It shows all existing save files inside the gui and has option to remove them, if not longer needed/wanted.
But you are a little faster to publish, so, will keep it private.
I've had a look into your script and found some missing stuff
- the MSGMODEX definitions inside the script are missing the $ in front of it
- to have ext2, ext3, ext4 as a choice inside the yad gui do use
Works over here (yad 0.12).
Hope that helps
RSH
P.S.
The script getbootdir to detect the boot directory / save folder is made by myself, that's right so far as your script says.
But the method to get the $APPDIR and the $TMPLANG is the older so called zigbert method.
That's pretty cool!
Meanwhile I did made some work on this as well and have created also a GUI version of the SimpleSave Script. It shows all existing save files inside the gui and has option to remove them, if not longer needed/wanted.
But you are a little faster to publish, so, will keep it private.
I've had a look into your script and found some missing stuff
- the MSGMODEX definitions inside the script are missing the $ in front of it
- to have ext2, ext3, ext4 as a choice inside the yad gui do use
Code: Select all
--field="$FIELDFORMAT":CB "ext2!ext3!ext4" \
Hope that helps
RSH
P.S.
The script getbootdir to detect the boot directory / save folder is made by myself, that's right so far as your script says.
But the method to get the $APPDIR and the $TMPLANG is the older so called zigbert method.
- Attachments
-
- image-2.jpg
- (24.66 KiB) Downloaded 2259 times
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]
The new LazY Puppy Information Centre[/url][/b]
- ASRI éducation
- Posts: 3197
- Joined: Sat 09 May 2009, 12:10
- Location: France
- Contact:
Very good news!R-S-H wrote:Meanwhile I did made some work on this as well and have created also a GUI version of the SimpleSave Script. It shows all existing save files inside the gui and has option to remove them, if not longer needed/wanted.
You are obviously much better than me to write a script.
Users will obviously gain.
If I can help, you know where contact me.
Cordialement,
- ASRI éducation
- Posts: 3197
- Joined: Sat 09 May 2009, 12:10
- Location: France
- Contact:
Simple PupSave 0.6
With the help of RSH, Simple PupSave now version 0.6
Changes:
- Fixed default save directory.
- $DISTRO_FILE_PREFIX is now added to the given save file name.
- Added creation of save file put into a back end script.
- Updated the getbootdir script.
- Added German locales.
Changes:
- Fixed default save directory.
- $DISTRO_FILE_PREFIX is now added to the given save file name.
- Added creation of save file put into a back end script.
- Updated the getbootdir script.
- Added German locales.
- Attachments
-
- simplepupsave_de01.jpg
- (28.42 KiB) Downloaded 2162 times
-
- simplepupsave-0.6_20130424.pet
- md5 7e81b112690b9aa444a3bcd02cda2ce7
- (11.38 KiB) Downloaded 706 times
- ASRI éducation
- Posts: 3197
- Joined: Sat 09 May 2009, 12:10
- Location: France
- Contact:
20130510 SimplePupSave v0.7
20130510 SimplePupSave v0.7
Visually, it hardly change anything for the user, I basically tried to improve the background tasks.
Changes
- Variables: added values pupsave size min/max & default format
- Help: added new tab
- Change the full name of the file pupsave
- Bug fix: now the utility warns if a pupsave file with the same name already exists
- Update translations fr-en-de
- Added information during creation of pupsave file
- Improving information pupmode
Improvements I have not succeeded
1 - The main window (written with yad) exit/restart when the user clicks on the buttons 'space free/help/information': it is not useful and it is inconvenient for the user who loses every time choices (directory, size, name, format). Does anyone know how to prevent exit/restart of the main window?
2 - Help GUI (gtk) offers a window whose height is too high. Does anyone know how to limit its height?
Improvements I have not tried
- View the list of existing pupsave files.
- Propose to remove existing pupsave files.
- Automatically check the free space on the home partition before creating the new pupsave file.
Sincerely,
Visually, it hardly change anything for the user, I basically tried to improve the background tasks.
Changes
- Variables: added values pupsave size min/max & default format
- Help: added new tab
- Change the full name of the file pupsave
- Bug fix: now the utility warns if a pupsave file with the same name already exists
- Update translations fr-en-de
- Added information during creation of pupsave file
- Improving information pupmode
Improvements I have not succeeded
1 - The main window (written with yad) exit/restart when the user clicks on the buttons 'space free/help/information': it is not useful and it is inconvenient for the user who loses every time choices (directory, size, name, format). Does anyone know how to prevent exit/restart of the main window?
2 - Help GUI (gtk) offers a window whose height is too high. Does anyone know how to limit its height?
Improvements I have not tried
- View the list of existing pupsave files.
- Propose to remove existing pupsave files.
- Automatically check the free space on the home partition before creating the new pupsave file.
Sincerely,
- Attachments
-
- simplepupsave-0.7_en.jpg
- (30.54 KiB) Downloaded 1978 times
-
- simplepupsave-0.7_20130510.pet
- md5 9dc981051e0dc4b1e2104a33633c4bdd
- (13.17 KiB) Downloaded 791 times