Last Edited: 01 May 2008 by superuser
Importered from old WiKi -- 30/04-08 17:04.

Enlarge the pup001 file within NTFS file system

If you need step by step instructions :

1. Download the pup001.zip from the puppy-1.0.1 directory at :

ftp.nluug.nl/vol/4/metalab/distributions/puppylinux/puppy-1.0.1

[ things seem to download much faster from my location

using their FTP than using ibibilo's ]

2. Unzip into the XP C: drive

3. Burn the iso from the same sight onto a Fresh CD.

4. Re-boot the pc with the cd in the drive and the bios set to boot from CD / A / C:

5. Setup the system as desired

6. Re-boot without the CD in the drive .. e.g. back to XP

7. 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 -)
a> 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
c:> copy/b pup001+pupextra pup001
c:> exit
8. ShutDown the XP system , I did a cold boot from here.

9. Re-Boot with the Version 1.0.1 Puppy in the CD

10. Start / Utilities / Resize /root filesystem

11. Press the "Continue" button
Puppy will automatically re-boot

12. Done.. You may wish to repeat the process to add more space
for Puppy Unleashed and or other DotPups or PupGet
Apps..

No credit is due here, I only followed instructions given in the
program and directions within Puppy. I only put it down in
step by step format.. I did this with a virgin XP Pro system
using a 4.2 Gig Hard Drive with 128M ram. I did not even load
the drivers for XP on the system (e.g. audio / vidio / etc...) I
used CD's entirely to do this , not even connected to the Internet
with the PC tested..

You still need the Puppy 1.0.1 Version CD you Burned to boot your system in PuppyLinux.
It only saves added applications / files / settings / and expands your capabilities in Puppy while 'scabbing' off the 'TaDa' file system..

I do hope this helps someone , somewhere , sometime . Later,Smile bd

how can i tell if it resized correctly?

You can see the actual file size from Windows.

If you then start puppy you can type the following in a console terminal (rxvt)

Code:
df -h

You will see a line similar to the following
/dev/loop1 247.9M 142.4M 92.8M 61% /root

The first number is the actual size of /root.
In puppy /root is stored in Pup001
So the size of /root is the size of your Pup001 file.

Regarding the howto steps posted above for NTFS, see the News page -- for 13th July I think --
steps 10, 11, 12 will not be needed for Puppy 1.0.4.

That is, just resize the file in XP, then boot Puppy. That's it.

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

there's an easier way to do it.
open up notepad and put

cd \
fsutil file createnew pupextra 128000000
copy /b pup001 pup001.bak
copy /b pup001+pupextra pup001
del pupextra

in there and save it as whatever.bat

that way, you don't have to sit and wait for pup001 to copy to pup001.bak (which takes longest) and there's
no typing involved.


Categories



CategoryHowto