LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-22-2004, 01:39 AM   #1
Ameii83
Member
 
Registered: Dec 2004
Location: malaysia
Posts: 56

Rep: Reputation: 15
Exclamation Linux Compress


If i have removed all unneded services in linux, it make the linux is very simple.So I want to compress it and save it just into one handy drive. How to do that?
 
Old 12-22-2004, 03:12 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
http://partimage.org Is this kind of what you are looking for? Do you mean you want to ghost it to another HD?

Cool
 
Old 12-23-2004, 12:54 AM   #3
Ameii83
Member
 
Registered: Dec 2004
Location: malaysia
Posts: 56

Original Poster
Rep: Reputation: 15
Yes, now i'm using non graphical linux, so i want to ghost the linux just into another 512mb thumb drive. how i'm going to do that....please help me???
 
Old 12-23-2004, 02:29 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Go to that link, you can use partimage and back up the saved image to a thumb drive.

Cool
 
Old 12-23-2004, 03:02 AM   #5
Ameii83
Member
 
Registered: Dec 2004
Location: malaysia
Posts: 56

Original Poster
Rep: Reputation: 15
Is there any command line or someting how to zip the file...??
 
Old 12-23-2004, 03:17 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Partimage does that for you, it creates a single tarball (.tar.gz) that you can then save anywhere you'd like, for example, a thumb drive.

If you want it in .zip format, I believe partimage offers that as an alternative option (been a while since I used it).

Cool
 
Old 12-23-2004, 03:31 AM   #7
Ameii83
Member
 
Registered: Dec 2004
Location: malaysia
Posts: 56

Original Poster
Rep: Reputation: 15
Thanks coz continue reply my question, i hope i not bored you, i have download a partition Image form the link that u give, can u give the simplest way to use it and connecting it with my linux....
i hope u understand what i'm writing about...??
 
Old 12-23-2004, 04:26 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I'm guessing you want to know how to install and use it. It's been quite a while for me, but I believe after you get it installed it's as simple as:
/sbin/partimage
And then following the prompts. If there isn't a version that comes in a language you can understand, then I'm really not sure where to point you... Good luck.

As for installing, it depends on your distro and which type of file you downloaded. But there are plenty of threads on this board assisting with installing software on linux, regardless of distro or type of file, there is definitely a thread covering it

Good Luck!

Cool
 
Old 12-23-2004, 08:17 PM   #9
Ameii83
Member
 
Registered: Dec 2004
Location: malaysia
Posts: 56

Original Poster
Rep: Reputation: 15
This note i read from parti image read me, can u explain more about this

* How to create a boot disk:
-----------------------------
1. compile a recent kernel with many harware support,
and many file systems (as ext2, fat, reiser, ntfs)
with make bzImage (do not use DMA by default)
2. use rdev on the image:
rdev bzImage /dev/fd0
rdev -r bzImage 49152 (49152 = ask disk, and read from 0)
rdev -R bzImage 0 (to make the root RW and allow to login)
3. dd if=bzImage of=/dev/fd0


* How to create a root disk:
-----------------------------
1. dd if=/dev/zero of=image count=3733 bs=1k
2. mkfs.minix image
3. mount -o loop -t minix image /mnt/image
4. remove debug data from binaries executables
libraries and programs to save space:
program:...............objcopy --strip-all program
shared library:........objcopy --stripdebug library.so
5. copy all files to /mnt/image
6. umount /mnt/image
7. cat image | gzip -9 > image.gz
8. dd if=image.gz of=/dev/fd0

thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the best way to compress image files in Linux? tgardner Linux - Software 2 06-03-2009 10:39 AM
How to compress video files to avi in linux Prasun Linux - Software 1 09-05-2005 06:22 PM
Compress Gins Linux - General 5 11-19-2004 01:05 PM
compress fs alaios Linux - General 5 09-07-2004 08:29 PM
compress Ownasaurus Linux - Software 4 09-12-2003 07:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration