Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 01-11-2008, 11:46 AM   #1 (permalink)
Pee into the Wind...
 
shady_inc's Avatar
 
Join Date: May 2007
Location: Mumbai
Posts: 782
Default gzipping root partition: will it work.?


Hi there.!

I have an Arch Linux installed on a 5 GB partition.I plan on buying a new hard disk soon and have only Arch's root partition plus a home partition on it.Will gzipping the current root partition and then gunzipping it on the new hard disk's root partition work, since I really don't wanna reinstall Arch again.

Thanks.
__________________
Life is as complicated as you say it is.
shady_inc is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 01-11-2008, 02:55 PM   #2 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: gzipping root partition: will it work.?

Guess it will work, but also do the necessary changes to the bootloader configuration.
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 01-11-2008, 08:42 PM   #3 (permalink)
Pee into the Wind...
 
shady_inc's Avatar
 
Join Date: May 2007
Location: Mumbai
Posts: 782
Default Re: gzipping root partition: will it work.?

Quote:
Originally Posted by QwertyManiac View Post
Guess it will work, but also do the necessary changes to the bootloader configuration.
A bit of reading the man pages tells me that tarring / will be a better option than gzip..Running tar -cvf / will include even my home partition in tar file.How do I ignore the /home partition from being included in the tar file.?
__________________
Life is as complicated as you say it is.
shady_inc is offline  
Old 01-11-2008, 08:56 PM   #4 (permalink)
Alpha Geek
 
adi007's Avatar
 
Join Date: Sep 2007
Location: hassan
Posts: 717
Default Re: gzipping root partition: will it work.?

Hmmm... how about creating the images using some live cd or Norton Ghost or Drive Image and then restoring the backup ...?
I think their is a Open source software too but forgot the name
__________________
doiteasily.com ►easy way(s) to do certain things
Tech Word of the day : ADSL
Aditech Blog ► There is something for everyone
Terminal Command of the day
regtweak.info ► Windows Registry hacks and tricks
adi007 is offline  
Old 01-11-2008, 09:05 PM   #5 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: gzipping root partition: will it work.?

--exclude=home perhaps?

Tar it via an external source? (Live CD, even Windows?) So that you can mount only / and not /home/ and thus tar worry-free. Do mind the permissions, they have to remain consistent.

Why not gzip? Its just got compression (Lempel Ziv). You anyways would have to extract it via a Live CD or so I guess?
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 01-11-2008, 10:02 PM   #6 (permalink)
Pee into the Wind...
 
shady_inc's Avatar
 
Join Date: May 2007
Location: Mumbai
Posts: 782
Default Re: gzipping root partition: will it work.?

The good old cp command did the trick.!
I booted in a Knoppix LiveDVD, mounted only my Arch root partition and the would-be root partition and then ran the command :

cp -pidvxR /old_partition/* /new_partition/

The options mean:
p - preserve file permissions, timestamps etc...
i - prompt before overwrite (just in case).
d - To copy symlinks as symlinks rather than the file they point to.
v - to be verbose about the process.
x - To stay on one filesystem.
-R copy recursively.

Works like a charm.Now I can truly say I will NEVER EVER have to re-install Arch Linux again.!

BTW, don't forget to make appropriate changes to /boot/grub/menu.lst and /etc/fstab after copying..

Another BTW: I could have perhaps run to cp command from within Arch, but it was the special directories like /proc and /dev that had me worried.So I chose a liveCD for the task.
__________________
Life is as complicated as you say it is.

Last edited by shady_inc; 01-11-2008 at 10:08 PM.
shady_inc is offline  
Old 01-11-2008, 10:05 PM   #7 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,676
Default Re: gzipping root partition: will it work.?

time to party
__________________
Blog | Flickr | Battlelog
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is offline  
Old 01-11-2008, 10:20 PM   #8 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: gzipping root partition: will it work.?

aren't proc and dev supposed to be "mounted"?
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Closed Thread

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Work, Work & Work.... u get no raise ! vish786 Chit-Chat 5 14-09-2007 03:49 PM
Root password ra_sriniketan Software Q&A 4 15-11-2005 12:58 PM
root login nishant_nms Open Source 7 13-11-2005 01:40 PM
Root Password godsownman Software Q&A 5 13-07-2005 08:59 AM
How did Anyone Traces the Root ? visvo QnA (read only) 3 06-06-2005 12:15 PM

 
Latest Threads
- by Charan
- by Sujeet
- by reddick
- by clinton
- by Who

Advertisement




All times are GMT +5.5. The time now is 12:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2