openSUSE Forums > Applications » Super-Compressing /home

Go Back   openSUSE Forums > Applications
Forums FAQ Members List Search Today's Posts Mark Forums Read


Applications Questions about desktops (KDE, Gnome, XFCE, etc.), software applications (configuration, usage, bugs, documentation)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-Nov-2009, 06:28
TheMask's Avatar
Parent Penguin
 
Join Date: Jan 2009
Location: PARADISE
Posts: 890
TheMask hasn't been rated much yet
Cool Super-Compressing /home

Hi there, penguins!
As a deletion of /home is not necessary at all when moving to an upgraded System (*hint*), I´d like to know hwo it might be possible to super-squeeze /home.
Of course, using an external drive would be the easiest way to go, but what to do if /home is HUGE and no adequate HDD is around?

Which command does exist to super-compress home as much as possible in oder to uncompress it on the new system?

NOTE: I am _not_ looking forward to compress /home with any archiving tools like Arc.
__________________
Rock the World!
...and grab your goodies. Checkout: download.opensuse.org/repositories/home:/microchip8

Currently seeking for hints:
http://tinyurl.com/klamavmenu
Reply With Quote
  #2 (permalink)  
Old 03-Nov-2009, 06:43
Explorer Penguin
 
Join Date: Apr 2009
Posts: 691
ab@novell.com hasn't been rated much yet
Default Re: Super-Compressing /home

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I believe Ark (like file-roller) is just a frontend for the apps on the
backend. If you have a huge directory to squeeze, though, the same
technologies apply. To move them quickly with low compression just use
tar but to actually squeeze (rather than just bundle) data into a smaller
space use a compression application like gzip or bzip2:

tar -cvf /tmp/yourUserHomeDirectory.tar /home/yourUser #bundle
tar -zcvf /tmp/yourUserHomeDirectory.tgz /home/yourUser #gzip compress
tar -jcvf /tmp/yourUserHomeDirectory.tgz /home/yourUser #bzip2 compress

Once done move the /tmp/whatever file to your new box.

Good luck.





TheMask wrote:
> Hi there, penguins!
> As a deletion of /home is not necessary at all when moving to an
> upgraded System (*hint*), I´d like to know hwo it might be possible to
> super-squeeze /home.
> Of course, using an external drive would be the easiest way to go, but
> what to do if /home is HUGE and no adequate HDD is around?
>
> Which command does exist to super-compress home as much as possible in
> oder to uncompress it on the new system?
> NOTE: I am _not_ looking forward to compress /home with any archiving
> tools like Arc.
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJK8CWBAAoJEF+XTK08PnB5Y9MQANcBtTN/6+lR1lYqZyEgYNtX
VM7WcCo8SYRyNQlLN6NAnJ0J1GzlTZjvE1L/itFKmrUp77jt8nd7+asy4N3n1HR1
D2KeAtgcvmxQujAzLiAN8FIBByTv7+ONH2P9C0G7rfS+/ptldfPQz899vjk/T/CB
SIX5+1kAqTFNK9sDBLlMjSNiKM9E8AMRiaMNd+6rck4V0Mnzju Th3uWNOq+Kzlq/
0WJOceHNjpwKUM3/eTJCjXqWoIqhWVh/J2ZydQrRIBb+0yw342AVAcGeNWUUpt9y
CjyvNkJWlipYbuB/Sr5pZglIDJnr7o3mZKTgq1F958TAZ6luJeddY72L3cyrugTe
Z9yk+6OZIn4RmoTAUabaa6rcahOvMUyixUGKN4DQhc9t3iKRDm 7UEnNmeyTVpFdg
aRCHc9zDN+tF/T+HUyY//Vcwxp+TZredav/1qWsOpq8trQql8DMexJ+i1tX6Mfc9
ckDXxf39YEI7CM4wxVfCu3zwwt3jO3gzNgLgfe8xmKnjd2HvWd eYz69ytDkIOXc5
Df1eSax6ZArkSQUAp9dfyZK5I3gCZvehdAm+yAVDX9ULTBEaB0 W0N0nNsDmhtdBr
ZCkDIaXK9RpOp2/ExlOKajESCsCbwYibEd34qa4UfOh2tZGn04KQk8757mMrgFmx
/VdIeq8fqoXMJFNccxdO
=NcN2
-----END PGP SIGNATURE-----
Reply With Quote
  #3 (permalink)  
Old 03-Nov-2009, 06:56
TheMask's Avatar
Parent Penguin
 
Join Date: Jan 2009
Location: PARADISE
Posts: 890
TheMask hasn't been rated much yet
Default Re: Super-Compressing /home

Umpf, isn´t there some other way to do this? When doing this like you suggested, I´d have to install Ark again - and I´ve uninstalled it for a reason.
Which internal compressing commands do exist for OpenSuse?
__________________
Rock the World!
...and grab your goodies. Checkout: download.opensuse.org/repositories/home:/microchip8

Currently seeking for hints:
http://tinyurl.com/klamavmenu
Reply With Quote
  #4 (permalink)  
Old 03-Nov-2009, 06:58
Knurpht's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: groningen, netherlands
Posts: 1,804
Knurpht 's reputation will be famous soon enoughKnurpht 's reputation will be famous soon enoughKnurpht 's reputation will be famous soon enough
Default Re: Super-Compressing /home

If it's about moving /home to a new system, I never compress. I put the new drive in my main system, 'dd' /home to the new disk, after that enlarge the partition if needed.
__________________
- AMD Athlon X2 6.0 GHz, 8 GB DDR2-800, 30 GB SSD, 1.5 TB, EVGA 9800GT, openSUSE 11.2 KDE4 4.3.3
- ASUS K70IO laptop, GT120M-1GB, 4 GB, 64 GB SSD, opensuse Factory, KDE4 4.3.3

R.E.S.T.E.C.P.
Reply With Quote
  #5 (permalink)  
Old 03-Nov-2009, 07:02
TheMask's Avatar
Parent Penguin
 
Join Date: Jan 2009
Location: PARADISE
Posts: 890
TheMask hasn't been rated much yet
Default Re: Super-Compressing /home

I don´t understand what you just said. Please explain it again.
__________________
Rock the World!
...and grab your goodies. Checkout: download.opensuse.org/repositories/home:/microchip8

Currently seeking for hints:
http://tinyurl.com/klamavmenu
Reply With Quote
  #6 (permalink)  
Old 03-Nov-2009, 07:04
Wise Penguin
 
Join Date: Mar 2009
Posts: 1,824
Akoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the rough
Default Re: Super-Compressing /home

Quote:
Originally Posted by TheMask View Post
Umpf, isn´t there some other way to do this?
Of yourse there is, you can also use one of the other dozens of compressing programs, so where's your problem?

Compressing without a compression program is something that won't work.

Quote:
Originally Posted by TheMask View Post
When doing this like you suggested, I´d have to install Ark again
Where is Ark involved in that process?

Quote:
Originally Posted by TheMask View Post
- and I´ve uninstalled it for a reason.
Which internal compressing commands do exist for OpenSuse?
The ones already mentioned for example.
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon)
Reply With Quote
  #7 (permalink)  
Old 03-Nov-2009, 07:08
TheMask's Avatar
Parent Penguin
 
Join Date: Jan 2009
Location: PARADISE
Posts: 890
TheMask hasn't been rated much yet
Default Re: Super-Compressing /home

Thanks Alkoellh for your clrification. Still looking forward to receive Knurphts response.
__________________
Rock the World!
...and grab your goodies. Checkout: download.opensuse.org/repositories/home:/microchip8

Currently seeking for hints:
http://tinyurl.com/klamavmenu
Reply With Quote
  #8 (permalink)  
Old 03-Nov-2009, 07:33
Explorer Penguin
 
Join Date: Apr 2009
Posts: 691
ab@novell.com hasn't been rated much yet
Default Re: Super-Compressing /home

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

man dd

'dd' is a command to copy data byte-by-byte from one place to another.
Personally I do not know why you would use this over just a plain old 'cp'
of data from the source to the destination (especially since you could
have the destination be a larger size from the start) but hopefully that
explanation will come. Using 'cp' and other commands also means you can
optimize transfer of things like sparse files.

Good luck.






TheMask wrote:
> I don´t understand what you just said. Please explain it again.
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJK8DE/AAoJEF+XTK08PnB5qFsQAJ7r8znul6fnOO9K4hVwEes1
8DTMHsGOYNkkoS2hElTojmhgxXgwSbjNizgR/Uxsq9JBCr2281s3XSiLoVHF+vdE
KOL+l+q9quez/4WqIuNpENormrIljazAido1Ih8VulptCU/qsFr/a+7/MBZFNv7+
uqhkr9DxQp7aD0AiiHrr5uxwFVgE57q9z07ycMuB+hBqwslm2e xC/x5rX7mEMOd4
aRuGX2cYsxlhdEGcYfhvLtcueBLdqEPnuMkDEzVFrk8tztKgBh zRjOfzSoqTf0E5
iAUQBG6BxavRo3BbrbpbtWf7TdVehLskWbzi5MHc7dW9KSdO3h otiwmFxjk/hEc9
lYaTr3jbyV4hKh4gd9hyRl9GlctdQWioLoJUzG+uCaWFwrvWXk g3V54RTGD7Ep2o
NFIDgybrYrOwfNHprrcX51oqcY25isy9gYjIyN0ibDHPI7WqD7 EFtgu99koND7zz
e2X00HaSUPvMYGR0pzuWzjkMv3UUKVu4TOm2m6V58IQ8hMvoeB ac+DuynaoS0WC+
gcyepVFdS9hufsutHTTosTBS8Te3w7WffmW0C1igeRcT4V736G HUtP5kKFr4qRSy
FbzRmMUB5QkNQ6MYOFSPbpKF/S3Wq+aNBPCPwGh+YQS2TyZdTbfQkpY4Uyug52Nq
xRNLf92e/Cke4Bpd8yL0
=Cmrn
-----END PGP SIGNATURE-----
Reply With Quote
  #9 (permalink)  
Old 03-Nov-2009, 07:45
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,716
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Super-Compressing /home

Quote:
Originally Posted by TheMask
Hi there, penguins!
As a deletion of /home is not necessary at all when moving to an
upgraded System (*hint*), I´d like to know hwo it might be possible to
super-squeeze /home.
Of course, using an external drive would be the easiest way to go, but
what to do if /home is HUGE and no adequate HDD is around?

Which command does exist to super-compress home as much as possible in
oder to uncompress it on the new system?
NOTE: I am _not_ looking forward to compress /home with any archiving
tools like Arc.
Hi
Look at using lmza from the command line, else as ab said, use dd
http://en.wikipedia.org/wiki/Lempel-...hain_algorithm

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
up 10:26, 2 users, load average: 0.31, 0.26, 0.22
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Reply With Quote
  #10 (permalink)  
Old 03-Nov-2009, 08:01
Knurpht's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: groningen, netherlands
Posts: 1,804
Knurpht 's reputation will be famous soon enoughKnurpht 's reputation will be famous soon enoughKnurpht 's reputation will be famous soon enough
Default Re: Super-Compressing /home

Quote:
Originally Posted by TheMask View Post
I don´t understand what you just said. Please explain it again.
To explain, this is what I did:

Had /home on a 120GB, bought a 250GB, put it in the machine, did:
dd if=/dev/sd[homedisk] of=/dev/sd[newdisk]
Used partitioner to enlarge /home partition on the newdisk, and mount it instead of the old one, done.

Is that what you meant? A 'man dd' will give you all the info you need.
__________________
- AMD Athlon X2 6.0 GHz, 8 GB DDR2-800, 30 GB SSD, 1.5 TB, EVGA 9800GT, openSUSE 11.2 KDE4 4.3.3
- ASUS K70IO laptop, GT120M-1GB, 4 GB, 64 GB SSD, opensuse Factory, KDE4 4.3.3

R.E.S.T.E.C.P.
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2