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 Mon 20 Oct 2014, 19:08
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
shrinking the puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
MwPhoto
Guest


PostPosted: Thu 19 May 2005, 05:13    Post subject:  shrinking the puppy  

I use puppy on a USB 256Mb device and at present the pup001 file is 186Mb. I don't need all that space right now and it's taking a long time to load and unload. Is there a way I can safely reduce the size of this file and increase it again later if I need the space?

Malcolm
Back to top
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Thu 19 May 2005, 06:52    Post subject:  

Do a backup
delete the Puppy001 and create a new one
do a restore

- I think I have misnunderstood what you are trying to do?

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
MwPhoto
Guest


PostPosted: Thu 19 May 2005, 07:20    Post subject: Further explanation  

Ok, I'll try and explain in more detail.

Currently my pup001 is 186MB. However it takes quite a long time to load into memory, and on shut down quite along time to write back to USB.

the real content of pup001 probably only adds up to 1Mb or so. Most of the time on shutdown is spent 'zeroising' 185MB, which seems pretty pointless.

PERFECT WORLD
pup001 would only be large enough for the files it contains there would be no zeros.

PRACTICAL WORLD
I would be happy to have a pup001 that was only 10Mb or so as long as when needed I could extend it to 20, 30 Mb etc. This would significantly speed up my startup/shutdown cycle

so is there a tool that does . . .

set pupsize to 10MB and just safely gets rid of the zeroised parts and not the real files Smile


I hope that's a more complete explanation of my problem, even better I hope it means someone can help with a solution!
Back to top
Guest
Guest


PostPosted: Thu 19 May 2005, 09:41    Post subject:  

I think you may be wrong about why Puppy is taking so long to boot on your machine. Operating systems don't waste time reading from or writing to an area of memory that the file system thinks is blank. The "size" of your pup001 file is only what has been allocated by the filesystem, not, as you said, the amount of data which are actually in it. My pup001 file is over a Gig and yet my computer boots/shuts down Puppy very quickly. What takes the most time during boot is loading "usr_cram.fs" (about 50 MB) into RAM. That should take less time from a hard drive than from a USB flash memory stick, especially if your computer only has USB1.1. At about 1 MB/s, 50MB will take about 50 seconds to transfer.
Back to top
MwPhoto
Guest


PostPosted: Thu 19 May 2005, 09:48    Post subject: More help on slow shutdown  

Ok,

What I can be sure about is that a large amount of time is taken in shut down is 'zeroising' when writing the pup001. I'll see if I can get the message from the boot process - although that may be tough. I'll have a look and see if the 'zeroise' message is coming from the script or something else.

If anyone knows what's causing this I'd be very grateful.

I have separately noted how much time it takes to load the usr_cram.fs and this is not the real issue.

Thanks
Back to top
MwPhoto
Guest


PostPosted: Thu 19 May 2005, 10:02    Post subject: zeroise again  

I noticed this from Puppy News

23Sept04

Puppy version 0.9.4 released. The live-CD ISO file is 49.5M. Release notes:


Pudd, the drive/partition/image-file copy application, has received a makeover. Thanks to suggestions from guys on the Forum, I have put in the capability to copy to a remote computer over a LAN or the Internet, using nc. The image is transferred gzipped to minimise transmission time. Remote copying is not yet tested. Another enhancement to Pudd is when copying a partition to an image-file (on local PC), there is an option to zeroise the unused space in the partition, potentially greatly enhancing compression of the file (the destination file is gzipped).

Can anyone explain this further - it seems to be the slow step in my shutdown process

Malcolm
Back to top
Flash
Official Dog Handler


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

PostPosted: Thu 19 May 2005, 23:08    Post subject: Re: More help on slow shutdown  

MwPhoto wrote:
Ok,

What I can be sure about is that a large amount of time is taken in shut down is 'zeroising' when writing the pup001. I'll see if I can get the message from the boot process - although that may be tough. I'll have a look and see if the 'zeroise' message is coming from the script or something else.

<>
I seem to recall reading somewhere that there a way to stop the boot sequence, and then either step through it or at least backtrack. If there is, maybe it will also work during shutdown.
Back to top
View user's profile Send private message 
nduanetesh
Ultra Super-stud

Joined: 05 May 2005
Posts: 168

PostPosted: Thu 19 May 2005, 23:28    Post subject:  

Hi Malcolm,

To get back to your original question, the puppy "Resize Root Filesystem" wizard is found on the start menu under "utilities". However, this only allows you to grow your pup file. According to the wizard "you can't make it smaller". Now, whether that means "this wizard cannot make it smaller" or "it is impossible to make your pup file smaller", I don't know.

BTW, when I run puppy from a USB key, the zeroising part on shut down only ever takes a second or so. (Even on a USB 1.1 connection). My pup file is only 60mb on that key, but still I wouldn't think you should be seeing a much greater time than a few seconds. Are you sure your key is ok?

ND
Back to top
View user's profile Send private message 
MwPhoto
Guest


PostPosted: Fri 20 May 2005, 03:16    Post subject: Booting speed issues  

Ok,

With more thought and discussion I am now sure that my problem is that my pup001 file was created at 186Mb on a clean installation. I would assume this is way over the top.

I did notice during the creation phase it wanted to create a 256Mb pup001 files and compromised on a 186Mb file so this may have happened as there wasn't enough USB space for a 256Mb file. In particular there may be a bug in the code that happens in the branch that occurs if the available space is < 256 Mb

I will investigate further . . .

Malcolm
Back to top
MwPhoto
Guest


PostPosted: Fri 20 May 2005, 03:58    Post subject: Partial solution  

Ok,

I've solved my problem, I realised the reason pup100 was so big was the syslinux.cfg file when I initially created the USB stick. SO I started again with a clean install and set the file to be pup100-none-40960 ie a 40Mb file. Everything is much quicker now.

I haven't checked yet but I hope I can extend this further as needed. I'm also hoping I can recover my old files from the other pup100 file.

Malcolm
Back to top
BarryK
Puppy Master


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

PostPosted: Fri 20 May 2005, 04:46    Post subject:  

Yes, you should be able to mount the old pup001 file and copy out the files. -- I think there is something about how to do this in the Wiki.

The "Utilities" menu has an entry to resize the pup001 file, but as was mentioned above, only to make it bigger.
Back to top
View user's profile Send private message Visit poster's website 
everettattebury


Joined: 08 May 2005
Posts: 14
Location: Sarasota, Florida

PostPosted: Fri 20 May 2005, 10:43    Post subject: Re: shrinking the puppy  

MwPhoto wrote:
I use puppy on a USB 256Mb device and at present the pup001 file is 186Mb. I don't need all that space right now and it's taking a long time to load and unload. Is there a way I can safely reduce the size of this file and increase it again later if I need the space?

Malcolm


Hi Malcolm.

I just had a thought reading this thread. If you want to keep your pup001 file small after you resize it, consider storing files you don't use very often, (such as mp3's, saved documents, etc) in a separate directory on your USB key. Then when you want to access them, you can just mount the key to get to them.
This is also a good way to be able to access them from other operating systems.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
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.0716s ][ Queries: 12 (0.0058s) ][ GZIP on ]