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 Sat 29 Aug 2015, 19:29
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Resizing pup_save.3fs
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
RMW

Joined: 12 Sep 2005
Posts: 85

PostPosted: Thu 12 Oct 2006, 10:50    Post subject:  Resizing pup_save.3fs  

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.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7454
Location: Perth, Western Australia

PostPosted: Thu 12 Oct 2006, 18:53    Post subject:  

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.
Back to top
View user's profile Send private message Visit poster's website 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Fri 13 Oct 2006, 08:41    Post subject:  

Barry: you could post here the fixed version of the script for him to use...
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7454
Location: Perth, Western Australia

PostPosted: Fri 13 Oct 2006, 19:43    Post subject:  

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.
resizepfile.sh.gz
Description 
gz

 Download 
Filename  resizepfile.sh.gz 
Filesize  2.57 KB 
Downloaded  343 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
RMW

Joined: 12 Sep 2005
Posts: 85

PostPosted: Mon 16 Oct 2006, 09:13    Post subject:  

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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0871s ][ Queries: 12 (0.0131s) ][ GZIP on ]