View previous topic :: View next topic |
Author |
Message |
urguncle n00b
Joined: 03 Feb 2007 Posts: 12
|
Posted: Tue Feb 20, 2007 6:04 pm Post subject: [solved] Possible to copy/paste ALL files in / ? |
|
|
If I want to make a backup, can I simply set up partitions on another drive and then copy all files from my current Gentoo to that HD?
(Afterwards I'll replug the HDs to make the new one master and all that.. And I'll run a quickie with the Gentoo CD to fix up Grub.)
I'm gonna switch harddrives, and I want my system exactly as it is now - but on the other HD..
Will this work?
Last edited by urguncle on Wed Feb 21, 2007 3:14 pm; edited 1 time in total |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Tue Feb 20, 2007 6:27 pm Post subject: |
|
|
You could make a stage4 install on your second drive. There are guides on the web. Tell me your progress if you try it! |
|
Back to top |
|
|
urguncle n00b
Joined: 03 Feb 2007 Posts: 12
|
Posted: Tue Feb 20, 2007 7:04 pm Post subject: |
|
|
Yeah I know about the stage 4 scripts. But I don't want to have a stage 4.
I don't want to backup a part of my system - I want to backup everything on the partition..
I don't want to tar anything, or do anything strange.
I just want to "cp hda1/* hdb1/".
And then switch the drives, and run Gentoo CD to fix the MBR on the new disk (I'll wipe the old one).
Humm, would this work? |
|
Back to top |
|
|
BlackEdder Advocate
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Tue Feb 20, 2007 7:46 pm Post subject: |
|
|
Are these two discs IDE, or IDE and SATA, or two SATA discs.
There are certain directorys which shouldn*t be copied, because that makes no sense. Especially /proc .... |
|
Back to top |
|
|
ffaerton n00b
Joined: 14 Apr 2005 Posts: 22
|
Posted: Tue Feb 20, 2007 8:19 pm Post subject: |
|
|
use rsync - cause rsync rocks
Code: | rync -varn --filter='/dev /proc' /mnt/backups/myBackup
tar cvf backup.tar myBackup
gzip backup.tar |
the n option is for a dry run. ie: tell me what you're going to do before you go and do it. The filter option does what it sounds like it should do and excludes those files from the list that rsync builds before it's going to copy.
backing up everything in / isn't generally the way to go about it, have a peep at this from the wiki http://gentoo-wiki.com/HOWTO_Backup
And then i just re read your post and realised that i'd missed the point You broke your MBR? so you really need to just reinstall grub in your mbr? |
|
Back to top |
|
|
urguncle n00b
Joined: 03 Feb 2007 Posts: 12
|
Posted: Wed Feb 21, 2007 3:14 pm Post subject: |
|
|
Thanks for the info, I'll try to fix the partitions right and sort of do a
I'll see what happens. I've already backed up all my important data, so in the worst case I'll have to spend 3 days setting up a fresh Gentoo..
Wish me luck. |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Wed Feb 21, 2007 3:52 pm Post subject: |
|
|
i have had troubles with copying the / to other partitions all dont get copied. some not readable some not movable.
moving has worked better than copy. thought grub has to be installed again and fstab to be rewritten.
hda hdc change of location it does not agree with. if you move it is one chance of working or reinstall. copying gives second third chances also.
in my experience reinstall new gentoo is far easier than end up with a copied / moved broken borked system. i was not at all happy with the performance of the moved install. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
urguncle n00b
Joined: 03 Feb 2007 Posts: 12
|
Posted: Sun Feb 25, 2007 1:23 pm Post subject: |
|
|
Well, I just wanted to post my success.
I'm currently using the new harddrive to write this, and everything seems to work just fine..
Cheers! |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Mon Feb 26, 2007 10:03 am Post subject: |
|
|
three cheers thats very good
enjoy
_________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
Cyker Veteran
Joined: 15 Jun 2006 Posts: 1746
|
Posted: Mon Feb 26, 2007 7:35 pm Post subject: |
|
|
I did this with Midnight Commander! (mc)
You get a nifty progress bar too
Unfortunately I forgot to install grub on the mbr of the target drive! |
|
Back to top |
|
|
|