Author |
Message |
dejan555

Joined: 30 Nov 2008 Posts: 2805 Location: Montenegro
|
Posted: Sat 13 Jun 2009, 13:06 Post subject:
Make blank Pupsave Subject description: Makes blank savefile |
|
EDIT: For latest version check this post
http://murga-linux.com/puppy/viewtopic.php?p=813008#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.
Description |
Makes blank pup_save
|

Download |
Filename |
make_pupsave.pet |
Filesize |
2.38 KB |
Downloaded |
1455 Time(s) |
Last edited by dejan555 on Mon 08 Dec 2014, 03:49; edited 3 times in total
|
Back to top
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 12076 Location: Gatineau (Qc), Canada
|
Posted: Fri 20 Nov 2009, 09:18 Post subject:
|
|
Thanks, dejan555. That can be pretty handy.
_________________ musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 4327 Location: West Lothian, Scotland, UK
|
Posted: Mon 04 Jul 2011, 05:23 Post subject:
|
|
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?
|
Back to top
|
|
 |
dejan555

Joined: 30 Nov 2008 Posts: 2805 Location: Montenegro
|
Posted: Mon 04 Jul 2011, 06:10 Post subject:
|
|
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.
|
I assume this is some puplet?
Quote: |
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? |
Well pupsave are mostly used with frugal installs, don't know why would you need it with full install.
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: | 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 HERE or HERE
|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 4327 Location: West Lothian, Scotland, UK
|
Posted: Mon 04 Jul 2011, 09:46 Post subject:
|
|
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.
|
Back to top
|
|
 |
dejan555

Joined: 30 Nov 2008 Posts: 2805 Location: Montenegro
|
Posted: Mon 04 Jul 2011, 09:57 Post subject:
|
|
OK, gonna check his blog... oh i remember he wanted to make a puppy with mageia packages...
_________________ puppy.b0x.me stuff mirrored HERE or HERE
|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 4327 Location: West Lothian, Scotland, UK
|
Posted: Mon 04 Jul 2011, 11:47 Post subject:
|
|
Here's what I see in my terminal window:
Code: | # 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.
# |
A 512MB puppy_drake_01.3fs file was made.
Does it look good to you?
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1399 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Mon 04 Jul 2011, 11:47 Post subject:
|
|
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.
Description |
yad script
|

Download |
Filename |
make_pupsave.gz |
Filesize |
869 Bytes |
Downloaded |
843 Time(s) |
|
Back to top
|
|
 |
dejan555

Joined: 30 Nov 2008 Posts: 2805 Location: Montenegro
|
Posted: Mon 04 Jul 2011, 13:30 Post subject:
|
|
@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
Code: | # 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 |
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.
_________________ puppy.b0x.me stuff mirrored HERE or HERE
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1399 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Mon 04 Jul 2011, 15:48 Post subject:
|
|
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.
Description |
version 0.3
|

Download |
Filename |
make_pupsave.gz |
Filesize |
1012 Bytes |
Downloaded |
850 Time(s) |
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1399 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Tue 05 Jul 2011, 07:08 Post subject:
|
|
Though i better do some testing - made a new ext3 save file for frugal installed Lucid-260 all seems to work / boot ok.
cheers.
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1399 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Fri 08 Jul 2011, 07:33 Post subject:
|
|
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/viewtopic.php?p=539647#539647
Description |
version 0.4
|

Download |
Filename |
simpleSAVE-0.4.pet |
Filesize |
1.48 KB |
Downloaded |
1036 Time(s) |
|
Back to top
|
|
 |
dejan555

Joined: 30 Nov 2008 Posts: 2805 Location: Montenegro
|
Posted: Fri 08 Jul 2011, 07:48 Post subject:
|
|
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.
_________________ puppy.b0x.me stuff mirrored HERE or HERE
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1399 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Fri 08 Jul 2011, 08:11 Post subject:
|
|
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.
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 3431 Location: www.eussenheim.de/
|
Posted: Sat 09 Jul 2011, 11:00 Post subject:
simpleSAVE 0.4 Subject description: drake01 |
|
Sylvander wrote: | Attempting to make suitably named pupsave beside the sfs file. [What name required?] |
I have tested simpleSAVE 0.4 in drake01.
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: | ## get new save file size ##
SIZE=`echo $SETUP | cut -d "|" -f 2`
SIZE=`echo $SIZE | tr "," "."`
|
This was because decimal point is comma in my locale
file name drakesave-test was working successfully.
Cheers
@dejan555,
yad is fun
|
Back to top
|
|
 |
|