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 30 Aug 2014, 00:40
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Problem w/ Unleashed too many files in image.gz [solved]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [20 Posts]   Goto page: 1, 2 Next
Author Message
papaschtroumpf


Joined: 17 Jun 2005
Posts: 250

PostPosted: Tue 21 Jun 2005, 03:16    Post subject:  Problem w/ Unleashed too many files in image.gz [solved]  



trying to build my own puppy with firefox and icewm and I get the error message above.
Is it telling me I have too many packages or that the disk I'm working from is too small? I have 650M left on that disk so I'm guessing that's not the problem?
it tells me to press enter if no errors, but wat if I have errors? start over?

_________________
Mandriva LE 2005 user and puppy newbie

Last edited by papaschtroumpf on Thu 23 Jun 2005, 23:42; edited 1 time in total
Back to top
View user's profile Send private message 
Mathiasdm

Joined: 05 May 2005
Posts: 100

PostPosted: Tue 21 Jun 2005, 04:22    Post subject:  

I had that problem too.
I think it's because you have to clean out the subdirectories in your puppy-unleashed directory first (if you've done a remaster before).

I could be wrong, of course Wink
Back to top
View user's profile Send private message 
BarryK
Puppy Master


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

PostPosted: Tue 21 Jun 2005, 08:28    Post subject:  

That's the trickiest part of using Unleashed.
It means you have too many files in image.gz.

image.gz when uncompressed is a 11264K bytes ext2 filesystem.
This loads into a ramdisk at initial bootup, /dev/ram0.
The kernel is compiled for 11264K ramdisks.

You have two choices.

1.
image.gz is all the directories and files OTHER than /usr, so you can
either delete some files, or compress some files using upx.

2.
Do what the script says and make the kernel ramdisk bigger,
ramdisk_size=12288 for example, for a 12M ramdisk.
To do this, you have to edit "createpuppy" script -- look down to
where it writes to isolinux.cfg and place "ramdisk_size=12288"
somewhere, for example before the "PFILE=" entry.

Option 2 would be the easiest probably.
Back to top
View user's profile Send private message Visit poster's website 
Mathiasdm

Joined: 05 May 2005
Posts: 100

PostPosted: Tue 21 Jun 2005, 10:17    Post subject:  

Are there any special consequences with Option 2?
Back to top
View user's profile Send private message 
papaschtroumpf


Joined: 17 Jun 2005
Posts: 250

PostPosted: Tue 21 Jun 2005, 16:30    Post subject:  

If I wanted to use upx, I assume that all I need to do is run upx and the executable files in the /packages sub-directories?

EDIT: saw in the readme that you compress it after the fact in the post-install script. I guess I might do the same.

I'm thinking about adding a dummy package that would be there solely for the purpose of running a post install script. How is the order of the packages determined?
EDIT: looks like it's in the order they are listed in the package file (alphabetical). Another way to do this is to change the createpuppy script to cat my own stuff at the end of the collated pinstall.sh (something like customize.sh).

Is there a way to know you're over the limit without going through the entire "processing keywords" step that occurs before it fails?

_________________
Mandriva LE 2005 user and puppy newbie
Back to top
View user's profile Send private message 
papaschtroumpf


Joined: 17 Jun 2005
Posts: 250

PostPosted: Tue 21 Jun 2005, 17:08    Post subject:  

BarryK wrote:

image.gz is all the directories and files OTHER than /usr, so you can
either delete some files, or compress some files using upx.


I'm missing something about this.

I removed bluefish, scribus, most games, the 3 vector graphics program, fvvm95, jwm and maybe a few other things and simply added my icewm package.
That package is 1020K but only 20 bytes of it are in /etc, the rest of it is in /usr so it would mean that the packages I removed didn't use more than 20 bytes altogether outside of /usr?

_________________
Mandriva LE 2005 user and puppy newbie
Back to top
View user's profile Send private message 
BarryK
Puppy Master


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

PostPosted: Wed 22 Jun 2005, 05:55    Post subject:  

It is very easy to see the size of the files that will go into image.gz
-- it is the folder "rootfs-complete"
after you have run the createpuppy script, there it is.

You can try "du -k" to see how much space rootfs-complete occupies, but it is not an accurate measure of how much space it will actually occupy. Confused
Wink

You can see upx in action in some of the pinstall.sh scripts -- awk/gawk for example, i think also the e2fsprogs package.
Back to top
View user's profile Send private message Visit poster's website 
papaschtroumpf


Joined: 17 Jun 2005
Posts: 250

PostPosted: Thu 23 Jun 2005, 02:56    Post subject:  

I'm I supposed to be able to build an ISO from freshly downloaded puppy-unleashed.1.0.3.tgz and pupget_packages-1 and pressing ENTER for every question in the buildscript?

i.e. is the "default" build list too big to fit? I have been assuming that it's not but for some reason I still get the error above.

I will re-download the packages in case I corrupted something.

I can't confirm my scripts in the pther post work for sure because I'm unabel to build an iso, even without using my scripts.

_________________
Mandriva LE 2005 user and puppy newbie
Back to top
View user's profile Send private message 
papaschtroumpf


Joined: 17 Jun 2005
Posts: 250

PostPosted: Thu 23 Jun 2005, 05:17    Post subject:  

no dice, these are the steps I followed:

reboot computer and biit from 1.0.3 liveCD
selection option 2 no HD
wget -r ftp://ibiblio.org/pub/linux/distributions/puppylinux/pupget_packages-1
wget ftp://ibiblio.org/pub/linux/distributions/puppylinux/puppy-unleashed-core-1.0.3.tar.gz

(also got md5sum, not shwon here)

sync
tar -zxf puppy-unleashed-core-1.0.3.tar.gz
sync
cd puppy-unleashed/packages
cp /mnt/linux2/puppy/ibiblio.org/pub/linux/distributions/puppylinux/pupget_packages-1/* .
./expandtarballs.sh
sync
cd ..
./createpuppy

/dev/hda3 which is on /mnt/linux2 has 2715556 Kbytes available (19% used) so I pressed ENTER
when the ppackage selection came up I clicked OK without changing anything
ignored the warning about possible needed packages and pressed enter
building rootfs-complete...
press enter to choose default kernel (2.4.27)
pressed enter to bypass dependencies check
press enter to satr processing the pinstall.sh
press enter to accept 103 as the version
takes its sweet time to build index.html.....
waited for me to press enter after the fvwm95 menu building and sat there all night (we need a no prompt build option)
ENTER
ENTER to start building image.gz and usr_cramfs
ENTER to NOT do 1 big file

---> KABOOOM!




du rootfs-complete returns 13256

_________________
Mandriva LE 2005 user and puppy newbie
Back to top
View user's profile Send private message 
BarryK
Puppy Master


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

PostPosted: Thu 23 Jun 2005, 05:23    Post subject:  

The default build works.
Others have done it.

Are you sure that rootfs-complete directory is in a partition with lots of free space?

Try booting Puppy live-CD normally, so that there is a pup001 file.
-- what reason would you have for not doing that?
Back to top
View user's profile Send private message Visit poster's website 
papaschtroumpf


Joined: 17 Jun 2005
Posts: 250

PostPosted: Thu 23 Jun 2005, 05:27    Post subject:  

df now returns 2637384 available on /dev/hda3 (mounted on /mnt/linux2) or 21% used

That's a difference of 78172 Kbytes from what was reported at the start of the ./createpuppy script

I'm at a loss here..

_________________
Mandriva LE 2005 user and puppy newbie
Back to top
View user's profile Send private message 
papaschtroumpf


Joined: 17 Jun 2005
Posts: 250

PostPosted: Thu 23 Jun 2005, 05:38    Post subject:  

BarryK wrote:

image.gz when uncompressed is a 11264K bytes ext2 filesystem.
This loads into a ramdisk at initial bootup, /dev/ram0.
The kernel is compiled for 11264K ramdisks.


df reports that /dev/loop2 (the rootfs-tmp2) is 10903 1K blocks. Are you saying it should report 11264?

what's the easiest way to compare the contents of my rootfs-complete with someone that has completed the build successfully to see what is different?

would the fact that I booted in option 2 have anything to do with it (grasping at straws here).

Also I lied, /dev/hda3 is an ext3 partition, not ext2 does it matter?

_________________
Mandriva LE 2005 user and puppy newbie
Back to top
View user's profile Send private message 
papaschtroumpf


Joined: 17 Jun 2005
Posts: 250

PostPosted: Thu 23 Jun 2005, 09:58    Post subject:  

Tried it again with option 1 at boot, but still won't work.

somebody help!

_________________
Mandriva LE 2005 user and puppy newbie
Back to top
View user's profile Send private message 
schlammi
Guest


PostPosted: Thu 23 Jun 2005, 11:26    Post subject:  

I had exactly the same problem than papschtroumpf. I donwloaded teh original puppy-unleashed tarball and my first build was to large.

I stopped the ./createpuppyscript after the errors and used upx to shrink down some files in /bin and /sbin. Then I started the script again and it made a nice .iso File.


But unfortunately my puppy doesn`t boot up right. It stops with kernel panic, when it tries to start the init process. Any ideas?
Back to top
papaschtroumpf


Joined: 17 Jun 2005
Posts: 250

PostPosted: Thu 23 Jun 2005, 12:01    Post subject:  

it will make a nice iso file if you allow the script to continue when there are errors, of course the iso doesn't work...

The script should probably abort on its own, I'll add this to my todo list since I have already made some changes to some of the build scripts. Of course those changes are on hold until I can get puppy unleashed to compile out of the box first.

_________________
Mandriva LE 2005 user and puppy newbie
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [20 Posts]   Goto page: 1, 2 Next
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.0938s ][ Queries: 12 (0.0242s) ][ GZIP on ]