Resizing pup_save.3fs

Using applications, configuring, problems
Post Reply
Message
Author
RMW
Posts: 85
Joined: Mon 12 Sep 2005, 15:58

Resizing pup_save.3fs

#1 Post by RMW »

Alright, so I do something a bit unconventional and use a very large (5 gig) save file. When I used puppy 1.0x I had no problems resizing pup001 from WinXP, then using resize2fs to correct the size after booting into puppy.

With puppy 2.10, I want to resize pup_save.3fs to be the same 5 gig size. I tried the Resize Personal Filesystem utility, it tells me to go back to Windows and do the whole pup + pupextra thing again. The problem is that the new pup_save.3fs did not automatically resize. So how do I force the filesystem to expand to fit the new, larger file size?

Thanks for any help.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#2 Post by BarryK »

There seems to be a bug.
The script is /usr/sbin/resizepfile.sh. This puts up that message about NTFS,
however as NTFS is now writable, that special handling is no longer required.
I've modified the script accordingly.

However, the script normally writes to a file named 'pupsaveresize.txt', that
is read by Puppy at bootup (see /initrd/sbin/init script). This file has the
amount, in kilobytes, by which the pup_save.3fs file is to be increased.
It seems though, in the case of NTFS the resizepfile.sh script doesn't create
that file.

So, perhaps you can do it yourself. If you know how many kilobytes you
increased the pup_save.3fs file by, create a file pupsaveresize.txt in the
same place as pup_save.3fs and put the size-increase into it, then boot Puppy.

I've fixed the script, so it should be okay for 2.11 final.

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#3 Post by Dougal »

Barry: you could post here the fixed version of the script for him to use...

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#4 Post by BarryK »

Okay, download, uncompress:
# gunzip resizepfile.sh
then copy it to /usr/sbin

However, RMW has already resized the file in XP, so I gave instructions
for that situation in my previous post.
Attachments
resizepfile.sh.gz
(2.57 KiB) Downloaded 474 times

RMW
Posts: 85
Joined: Mon 12 Sep 2005, 15:58

#5 Post by RMW »

That seems to have worked. Creating the file I mean. Luckily I had the original save file backed up, so I was able to just subtract the old size from the new one to get the increase size for pupsaveresize.txt. Might not be perfect, wasted space and all, but the size should be pretty close.

Thanks for the help.

Post Reply