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 23 Oct 2014, 09:30
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Revised process for enlarging pup001file in 1.0.4
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
raffy

Joined: 25 May 2005
Posts: 4779
Location: Manila

PostPosted: 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
View user's profile Send_private_message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11120
Location: Arizona USA

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

Edited_time_total
Back to top
View user's profile Send_private_message 
raffy

Joined: 25 May 2005
Posts: 4779
Location: Manila

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

Edited_times_total
Back to top
View user's profile Send_private_message 
BarryK
Puppy Master


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

PostPosted: 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
View user's profile Send_private_message Visit_website 
raffy

Joined: 25 May 2005
Posts: 4779
Location: Manila

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

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) Embarassed

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).

Edited_time_total
Back to top
View user's profile Send_private_message 
BarryK
Puppy Master


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

PostPosted: 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
View user's profile Send_private_message Visit_website 
raffy

Joined: 25 May 2005
Posts: 4779
Location: Manila

PostPosted: 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:
Code:
df -h

_________________
Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0683s ][ Queries: 12 (0.0108s) ][ GZIP on ]