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 28 Aug 2014, 03:33
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
how can i make new image.gz
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
bombayrockers


Joined: 24 Sep 2005
Posts: 427
Location: Mumbai, India

PostPosted: Thu 27 Oct 2005, 02:50    Post subject:  how can i make new image.gz  

i have made a new image which i want to use in place of the default image.gz

my files are stored in /root/my-documents/imagep/
how can i make a image & image.gz out of this folder
Back to top
View user's profile Send private message Yahoo Messenger 
willhunt


Joined: 05 Oct 2005
Posts: 495

PostPosted: Thu 27 Oct 2005, 10:49    Post subject: A humble offering  

I'm not sure if this is the answer but some thing like this

mkdir mountdir
gunzip image.gz
mount -o loop image mountdir
then change the files you want
umount mountdir
gzip image

like I said I'm not sure if it works for image.gz but it does for initrd.gz
Back to top
View user's profile Send private message 
iamsofaking


Joined: 26 Oct 2005
Posts: 4
Location: Las Vegas, NV USA

PostPosted: Thu 27 Oct 2005, 12:53    Post subject: yep  

Willhunt has it right. I just did it.
Back to top
View user's profile Send private message Yahoo Messenger 
bombay_rockers
Guest


PostPosted: Thu 27 Oct 2005, 12:54    Post subject: this is how i did it  

here is how i made a new image.gz from scratch

i wanted to add some new kernel modules that would grow the image size > 12mb so editing the default image.gz was not an option for me.

in copied files from image.gz -> /my-documents/imagep/ as follows
gunzip image.gz
mount -o loop image /mnt/data
copied the data folder to /my-doc..

then i added new files and made a new image.gz as follows

dd if=/dev/zero of=image bs=1k count=13312 (13 Mb)
mke2fs -F -m 0 -b 1024 image
mkdir /mnt/tmpimage
mount -o loop image /mnt/tmpimage
copy the files from /my-doc../imagep to /mnt/tmpimage
umount tmpimage
gzip image
Back to top
Guest
Guest


PostPosted: Fri 28 Oct 2005, 03:41    Post subject:  

now when booting don't forget to add RAMDISK_SIZE=


well whatever the new size is otherwise you'll get problems when booting
Back to top
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
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.0443s ][ Queries: 12 (0.0052s) ][ GZIP on ]