The time now is Mon 20 May 2013, 12:57
All times are UTC - 4 |
| Author |
Message |
raffy
Joined: 25 May 2005 Posts: 4636 Location: Manila
|
Posted: Sun 31 Jul 2005, 06:58 Post subject:
Revised process for enlarging pup001file in 1.0.4 |
|
Now that installing Puppy in Windows XP is quite easy (thanks to drj's posts here), it will be useful to explore the size limits of pup001.
The current resizing utility of pup001 (for non-NTFS filesystems) can resize it up to 512 MB. How much larger can this possibly be?
As to NTFS-resident pup001, resizing from within Puppy is not presently allowed, so is it possible to use a utility for pup001 creation that asks for a preferred size? Or can the user just download a pup001.zip of a given size when decompressed?
Thanks!
_________________ Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9843 Location: Arizona USA
|
Posted: Sun 31 Jul 2005, 11:42 Post subject:
|
|
I have increased my pup001 file to over 2 GB, by repeatedly using Start->Utilities->Resize/Root filesystem. I'm guessing that the pup001 file can be enlarged until it fills the partition where it is located. One thing to keep in mind is that it takes a while after you tell it to resize, and there is no progress indicator to tell you that anything is happening. So, be patient.
As to resizing a NTFS pup001 file, here's what came up when I searched the forum for "pup001 AND NTFS AND resize"
Last edited by Flash on Sun 31 Jul 2005, 22:38; edited 1 time in total
|
|
Back to top
|
|
 |
raffy
Joined: 25 May 2005 Posts: 4636 Location: Manila
|
Posted: Sun 31 Jul 2005, 17:16 Post subject:
Recap |
|
Thanks, Flash and Rarsa.
EDIT: Given Barry's post below, the pup001 resizing procedure shall be:
Reboot after doing resizing of pup001 and Puppy _actually resizes_ the underlying filesystem (ext2) at bootup.
As to resizing:
Case 1 - Non-NTFS: In Puppy, Start -> utilities -> Resize /root filesystem
Case 2 - NTFS: See PakRat's step 7 below:
| Quote: |
Resizing the pup001 filesize in the NTFS formatted drive :
(Check the size by going to Start / Programs / Accessories /
Windows Explorer / My computer / C\:> and look for the
pup001 file....Click - View / Details -)
Access the command prompt (e.g. Start / Programs /
Accessories / Curser {there's a reason for the name})
c:\nomatterwhat> cd\
c:> fsutil file createnew pupextra 512000000 {input your
desired expansion size here in bytes}
c:> copy/b pup001 pup001.bak {to make a backup of pup001}
c:> copy/b pup001+pupextra pup001 {to make the larger pup001}
c:> exit
|
_________________ Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
Last edited by raffy on Mon 01 Aug 2005, 03:10; edited 2 times in total
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: Sun 31 Jul 2005, 20:34 Post subject:
|
|
Flash, raffy,
You need to revise those instructions for 1.0.4.
What happens now is at bootup Puppy automatically compares the size of the filesystem inside the pup001 file and resizes it if it is smaller than the file.
So, the "Start -> utilities -> Resize /root filesystem"
now does NOT resize the filesystem, so there is no delay.
The script just resizes pup001 (if it isn't a NTFS partition) then after
rebooting Puppy the ext2 f.s. gets resized at bootup.
In the case of NTFS, no need to run the above script or do anything
at all. After resizing pup001 from XP, boot Puppy, and the ext2 f.s.
will automatically resize.
At least, that is what is supposed to happen...
you should see a resizing progress bar at bootup.
This new arrangement was announced on the News page, and it fixes
a possible corruption problem with resizing pup001 f.s. while it is
mounted.
|
|
Back to top
|
|
 |
raffy
Joined: 25 May 2005 Posts: 4636 Location: Manila
|
Posted: Mon 01 Aug 2005, 03:34 Post subject:
Error in pup001 resizing in NTFS |
|
Intro:
What I did in NTFS: pup001 (256 MB) + pup002 (512000000) = pup001
New pup001 = 780435456 bytes or 762144 KB
Results after rebooting into Puppy 1.04:
"Resizing to fill 744 M file"
resize2fs version xxx
resize2fs: Invalid argument while trying to flush /mnt/home/pup001 failed
Pausing for 60 seconds"
My theory: error could be the number in the last parameter of resize2fs which is expected to be in kbytes (a wild guess )
More experiments: I tried "resize2fs -p /mnt/home/pup001" without ending parameter and it reported "761,857 blocks" (but Barry has already warned against doing this, OK?). Same report even when I specified "762144" after another reboot (I restored my backup pup001 in WinXP before the fresh reboot). Usually, resize2fs requires me to first "e2fsck -f /mnt/home/pup001", which goes well.
EDIT: My error = Forgot to avoid mounting pup001 (forgot to use option 3 at bootup)
PC system: AMD 2+Ghz with Windows XP home edition booting Chubby Puppy from WinGrub (No booting errors in the past).
_________________ Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
Last edited by raffy on Tue 02 Aug 2005, 02:35; edited 1 time in total
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: Mon 01 Aug 2005, 05:12 Post subject:
|
|
raffy,
did you actually try the "e2fsck -f /mnt/home/pup001" in rc.sysinit before the resize?
This has to be done at bootup, before pup001 is mounted on /root.
Note, if resize2fs has no size parameter on the end, it defaults to filling the entire file.
|
|
Back to top
|
|
 |
raffy
Joined: 25 May 2005 Posts: 4636 Location: Manila
|
Posted: Mon 01 Aug 2005, 06:02 Post subject:
Filesystem check |
|
Yes, Barry, I remember that e2fsck is a filesystem check routine.
EDIT: Anyway, perhaps Rarsa's solution is still the best for that bug:
http://www.murga.org/%7Epuppy/viewtopic.php?p=6763
| rarsa wrote: | There seems to be a bug in the rc.sysinit script in Puppy 1.0.4.
Here is what I had to do to successfully resize:
1. Resize the pup001 in XP as indicated in step 7 of the first post in this thread.
2. Start puppy using option 3 and selecting not to save to HD
3. Mount the XP partition. e.g. | Code: | | mount -t ntfs /dev/hda1 /mnt/home |
4. Manually rezise the partition inside the pup001 file: | Code: | | resize2fs -pf /mnt/home/pup001 |
5. Reboot puppy as regularly. (this time I did not get any error messages)
6. Confirmed the size of /root using de command line: |
_________________ Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
|
|
Back to top
|
|
 |
|
|
|
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
|