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 Tue 19 Jun 2018, 08:40
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to manually specify a larger save-file increase
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
Mike Walsh


Joined: 28 Jun 2014
Posts: 3792
Location: King's Lynn, UK.

PostPosted: Tue 13 Jun 2017, 10:18    Post subject:  How to manually specify a larger save-file increase
Subject description: Many Pups allow a max of 512MB at a time, necessitating more than one re-boot...
 

Afternoon, all.

I came across this almost by accident. I know many of you prefer to keep your save-files as small as possible. For those of you who want to increase the size of your save-file substantially, and your Pup's resize script only goes to a maximum of 512 MB, here's a simple 'workaround'.

1. Run the Resize application from Menu->Utility. Specify the maximum of 512 MB. OK the increase.

2. Go to /mnt/home, and you will find a text-file, called 'pupsaveresize.txt'. This needs to be done before you re-boot, which is when the resize will occur.

3. Open this with Geany. All the file specifies is the amount (in Kb) by which Pup will increase the size of the save-file at the next boot.

4. If you wish to increase the size of the save-file by more than the maximum of 512MB, and don't want to keep re-booting to achieve this, then do this:-

a) Work out the number of MB you want to increase the save-file by, then, using Galculator (or your calculator of choice), multiply this by 1024. This will give the desired size increase in Kilobytes.

b) Edit the contents of the 'pupsaveresize.txt' file to show this figure.

5. At the next boot, Puppy will increase your save-file by this amount.

PLEASE NOTE:- For those of you running Puppy from a FAT32-formatted USB drive, the maximum save-file will be limited to 4 GB.....this being due to constraints imposed by the way the FAT32 file-system works.

----------------------------------------------------------------------------

To many of you, this will seem totally pointless, and appear to contradict the whole point of Puppy's small size. I only offer this as a single-step operation for those of you who require a larger save-file (for whatever reason), and don't wish to have to run the Resize script multiple times to achieve it.

Hope some of you may find this useful. This is, of course, the complete opposite of Shinobar's 'sticky' above about keeping your save-file as small as possible.

The Puppy way is to offer maximum choice.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------


Last edited by Mike Walsh on Tue 13 Jun 2017, 20:18; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


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

PostPosted: Tue 13 Jun 2017, 10:58    Post subject:  

Hi Mike.

Thanks for starting this thread.

You are right, the pupsaveresize.txt can be edited before reboot.

I would even suggest to users that they make a back-up of that file in a
safe place as a template for future use.

However file pupsaveresize.txt is created only on older Pups. Newer Pups
create a file called pupsaveresizenew.txt. Its structure and syntax are as
follows:
Quote:
KILOBIG=262144
PUPSAVEFILEX=/DpupStretch-7.0b/stretchsave-yaya.2fs
(Talk of a silly example!)

In the newer file structure, the name of the save-file is mentioned, so only
that save-file will be increased by the "KILOBIG" number of bytes.

But defining the increase is done exactly as you mention, and the
principle is the same.

You can indeed use this technique to specify a larger save-file.

As for me, I frequently use it to specify increases in multiples of 96Mb's
rather than the defaults, suggested in multiples of 64 Mb's.

Just a fancy, I suppose. Or sometimes it's more convenient.

BFN.

_________________
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
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 10569
Location: Charleston S.C. USA

PostPosted: Tue 13 Jun 2017, 12:21    Post subject:  

One issue.
Fat 32 formats are limited to max file size of 4GB.
The save file cannot be bigger than this.
Not sure what would happen to process, if you tried making it bigger.
Hopefully, something in the resize program code, would stop process and give warning.

I would add that warning to the first post.

A lot of people put Puppy on USB flash drives that come fat 32 formatted by manufacture.
As long as they keep this fat 32 format, they can only use save files.

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 3792
Location: King's Lynn, UK.

PostPosted: Tue 13 Jun 2017, 12:44    Post subject:  

@bigpup:-

Thanks for raising this issue; it hadn't occurred to me, since I always use ext3. I've amended the first post to relect that advice.

@musher0:-

Thank you for pointing out the differences between the older Pups, and the newer ones. I 'discovered' this in Precise 5.7.1 this morning, it being one of the last of the 5-series (with the exception of some of the later Slackos) to use the save-file as default.

In all of my 6-series, the save-folder is the default configuration....so, of course, with them it's a moot point, as increases occur automatically (up to the size of your partition, obviously).

I just thought it would be useful for some of our newer members to know. I myself, when requiring a larger save-file, have been frustrated by the constraints of the resize script, and have had to run it multiple times to achieve what I wanted. I was reading a post about something totally unrelated this morning, and the 'pupsaveresize.txt' file was mentioned.....I tried out something just for the hell of it; it worked, so I thought a quick 'How-to' might come in handy for some..!


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------


Last edited by Mike Walsh on Tue 13 Jun 2017, 14:57; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
Sailor Enceladus

Joined: 22 Feb 2016
Posts: 1512

PostPosted: Tue 13 Jun 2017, 14:22    Post subject:  

I used the method by Mike Walsh once too, because I wanted to increase by 16MB instead of 32MB (I think). Smile
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Tue 13 Jun 2017, 15:04    Post subject:  

A few years ago, as a challenge, ttuuxxx conducted an experiment to build a
30 Gb pupsave on a 32 Gb ext partition. It took awhile to get created, but
It worked! (His report is somewhere in this bazaar of a forum!)

You wouldn't normally want or need a 30 Gb pupsave, I suppose, but hey!,
the capacity is there!

BFN.

_________________
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
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 2433
Location: 500 seconds from Sol

PostPosted: Tue 13 Jun 2017, 19:50    Post subject: Warning: Don't try for a larger than 4 Gb SaveFile on Fat32  

bigpup wrote:
One issue.
Fat 32 formats are limited to max file size of 4GB.
The save file cannot be bigger than this.
Not sure what would happen to process, if you tried making it bigger.


Nice catch bigpup.

Most likely the process will hang, if not the entire computer and perhaps corrupt the SaveFile. Coincidentally, I decided today to use an SFS of Unetbootin I cobbled together in Tahrpup64 to see what LinuxMint 18.2 was about. Unetbootin requires a Fat32 partition, and during the installation of "Ubuntus" asks how large you want the Persistent file to be. As the USB-Key had plenty of space, without thinking, I choose 5000 Mbs. The result was a frozen computer requiring resort to the Power Button.

Having to resort to a hard-shutdown while changes to a SaveFile are taking place is one of the known causes of SaveFile corruption.


mikesLr
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0744s ][ Queries: 11 (0.0114s) ][ GZIP on ]