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 Fri 25 Apr 2014, 02:52
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Filesystems in a File - Rolling your own Puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Wed 25 May 2005, 11:04    Post subject:  Filesystems in a File - Rolling your own Puppy  

Well, I've been thinking about making my own flavor of Puppy lately (Not as different as Puplet, though. More of a practice run before I start Operation: CovertPups (yes, that's plural)), and I was wondering how you make filesystems in a file, like image(un-gzipped). I was also wondering how to make a compressed filesystem like usr_cram.fs. Yes, I know I could use the remastering script to do a bunch of this, but I don't have enough ram, and I'd rather do it this way anyway. This way I can set up a directory on my harddrive and have the full tree in it and won't dissappear when I shut-down, then write a script that will get the size, make the filesystems, and add the files. It would be much faster than running through the remaster script every time I want to test it.

Thanks!

EDIT: Okay, I found the first part. Once I get that sorted out, I'll try to figure out the squash stuff. Then I'll turn this into a howto.


EDIT 2: Did it, done it, done!
To make an ext2 filesystem (like image or pup001) of <X> kilobytes
Code:

dd if=/dev/zero of=/tmp/hdimage bs=1k count=<X>
mke2fs -m 0 -b 1024 /tmp/hdimage


To make a squashfs (like usr_cram.fs) out of a directory (/tmp/usr, in this case)
Code:

mksquashfs /tmp/usr /tmp/usr_cram.fs

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib


Last edited by Pizzasgood on Wed 25 May 2005, 23:59; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
wscarl

Joined: 16 May 2005
Posts: 99
Location: NY

PostPosted: Wed 25 May 2005, 20:54    Post subject: HD install  

Do an HD install with grub then down load puppy-unleased to /root/
in Xtrem expand the tarball (x.x.x is version#)
# tar -zxf puppy-unleased-x.x.xtar.gz
repeat for update puppy-unleased
# cd puppy-unleased (note: read readme file for changes)

# ./createpuppy
Back to top
View user's profile Send private message 
wscarl

Joined: 16 May 2005
Posts: 99
Location: NY

PostPosted: Wed 25 May 2005, 21:06    Post subject: What to do that myself!!!!!!!!!  

SO I have put to gether and old system out of junk parts and install puppy and puppy-unleased on the hard drive. Let me know how it goes!

windowsystemcomputers@yahoo.com
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Wed 25 May 2005, 22:11    Post subject:  

Nah, that won't work for me. I don't quite feel like messing with partitions yet, so I'm using a poor-man's install. Otherwise I'd be using the Unleased method. How I've got it running, I have a 256 megabyte partition image (yeah, you guessed it: an old pup001 file! I just deleted everything from inside) that I put the filesystem inside. I've actually figured it all out, I just have to finish setting up my scripts so I can test it. I'm probably doing things the hard way, but it is a good learning experience. I even learned how to use fdisk (I thought I needed to use it on a blank file to turn it into a filesystem. mke2fs was all I needed...).

EDIT: Woot! It actually worked! I now have a 1.0.1 Puppy with John's bootmenu and splash that starts in IceWM and comes preconfigured to run my wireless card. Not to mention starting with Firefox and GuestTwo's wallpaper roxapp. I figured the whole thing would blow up in my face while booting after trying to do so many things I've never done all at once! Now I need to smooth out my scripts. I'm keeping them separate so I can do individual parts instead of the entire thing, but I think I'll take that shell that Lobster created to combine them in an easy to access panel. Then I can proceed to trick-out Pizzapup. I edited my first post to say how to do the filesystems, too.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


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

PostPosted: Thu 26 May 2005, 00:58    Post subject: Sharing a Pizza  

Pizzasgood wrote:
I think I'll take that shell that Lobster created to combine them in an easy to access panel. Then I can proceed to trick-out Pizzapup. I edited my first post to say how to do the filesystems, too.


Ian is compiling a new version of GtkDialog - that MAY give us new features.

If you modify or add any items to the welcome.sh please share it - that way we can have both a common and specialist PizzaPup Welcome . . .

Smile

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


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Thu 26 May 2005, 07:24    Post subject:  

What I meant was that I'll edit it to be a "Make Pizzapup Control Panel" of sorts. One button to extract everything, one to recompress usr_cram.fs, one to recompress image.gz, one to form an iso, and one to clean up when I'm done. That way I can edit just /root0/ and not have to wait for it to recompress usr, or I can go back and edit isolinux.cfg and just remake the iso. Hmmm... Maybe I'll make the scripts more portable and upload them too. It is pretty useful.
_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 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.0607s ][ Queries: 12 (0.0147s) ][ GZIP on ]