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 Thu 18 Dec 2014, 22:24
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Make blank Pupsave
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [31 Posts]   Goto page: 1, 2, 3 Next
Author Message
dejan555


Joined: 30 Nov 2008
Posts: 2720
Location: Montenegro

PostPosted: 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.
make_pupsave.pet
Description  Makes blank pup_save
pet

 Download 
Filename  make_pupsave.pet 
Filesize  2.38 KB 
Downloaded  1151 Time(s) 

Last edited by dejan555 on Mon 08 Dec 2014, 03:49; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
musher0


Joined: 04 Jan 2009
Posts: 4443
Location: Gatineau (Qc), Canada

PostPosted: Fri 20 Nov 2009, 09:18    Post subject:  

Thanks, dejan555. That can be pretty handy.
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Sylvander

Joined: 15 Dec 2008
Posts: 3548
Location: West Lothian, Scotland, UK

PostPosted: 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
View user's profile Send private message 
dejan555


Joined: 30 Nov 2008
Posts: 2720
Location: Montenegro

PostPosted: 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

_________________
Dpup 487 | Puppy Gallery | My photo gallery | mtPaint works
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Sylvander

Joined: 15 Dec 2008
Posts: 3548
Location: West Lothian, Scotland, UK

PostPosted: 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
View user's profile Send private message 
dejan555


Joined: 30 Nov 2008
Posts: 2720
Location: Montenegro

PostPosted: 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...
_________________
Dpup 487 | Puppy Gallery | My photo gallery | mtPaint works
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Sylvander

Joined: 15 Dec 2008
Posts: 3548
Location: West Lothian, Scotland, UK

PostPosted: 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. Very Happy
Does it look good to you?
Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: 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.
make_pupsave.gz
Description  yad script
gz

 Download 
Filename  make_pupsave.gz 
Filesize  869 Bytes 
Downloaded  618 Time(s) 
Back to top
View user's profile Send private message 
dejan555


Joined: 30 Nov 2008
Posts: 2720
Location: Montenegro

PostPosted: 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.

_________________
Dpup 487 | Puppy Gallery | My photo gallery | mtPaint works
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: 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.
make_pupsave.gz
Description  version 0.3
gz

 Download 
Filename  make_pupsave.gz 
Filesize  1012 Bytes 
Downloaded  635 Time(s) 
Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: 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
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: 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
simpleSAVE-0.4.pet
Description  version 0.4
pet

 Download 
Filename  simpleSAVE-0.4.pet 
Filesize  1.48 KB 
Downloaded  769 Time(s) 
Back to top
View user's profile Send private message 
dejan555


Joined: 30 Nov 2008
Posts: 2720
Location: Montenegro

PostPosted: 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.

_________________
Dpup 487 | Puppy Gallery | My photo gallery | mtPaint works
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: 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 Laughing
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
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: 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 Smile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [31 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
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.0941s ][ Queries: 13 (0.0046s) ][ GZIP on ]