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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-22-2004, 01:39 AM
|
#1
|
Member
Registered: Dec 2004
Location: malaysia
Posts: 56
Rep:
|
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?
|
|
|
12-22-2004, 03:12 AM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
http://partimage.org Is this kind of what you are looking for? Do you mean you want to ghost it to another HD?
Cool
|
|
|
12-23-2004, 12:54 AM
|
#3
|
Member
Registered: Dec 2004
Location: malaysia
Posts: 56
Original Poster
Rep:
|
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???
|
|
|
12-23-2004, 02:29 AM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Go to that link, you can use partimage and back up the saved image to a thumb drive.
Cool
|
|
|
12-23-2004, 03:02 AM
|
#5
|
Member
Registered: Dec 2004
Location: malaysia
Posts: 56
Original Poster
Rep:
|
Is there any command line or someting how to zip the file...??
|
|
|
12-23-2004, 03:17 AM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
12-23-2004, 03:31 AM
|
#7
|
Member
Registered: Dec 2004
Location: malaysia
Posts: 56
Original Poster
Rep:
|
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...??
|
|
|
12-23-2004, 04:26 AM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
12-23-2004, 08:17 PM
|
#9
|
Member
Registered: Dec 2004
Location: malaysia
Posts: 56
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 10:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|