LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2004, 11:03 AM   #16
CuBiC
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Rep: Reputation: 0

Quote:
Originally posted by Goala
I'd suggest you not to use cp -a because it doesn't keep symbolic links, use tar instead.
Code:
  -a, --archive
              Preserve  as  much as possible of the structure and
              attributes of the original files in the  copy  (but
              do  not  preserve directory structure).  Equivalent
              to -dpR.

       -d, --no-dereference
              Copy symbolic links as symbolic links  rather  than
              copying  the files that they point to, and preserve
              hard links between source files in the copies.
Taken from the man page. Sounds a lot like preserving symbolic links to me =\

Quote:
Originally posted by Kroenecker
Well, I think that cp -a /dev/hda /dev/hdb should be just fine. The -a option preserves permissions as well as to do some other useful stuff for you. As far as needing boot disks is concerned...well this isnt voodoo magic. You are using the copy command. At the very worst your copy doesnt turn out well. My recommendation is to perform the copy and then (if you are comfortable with this) turn your computer off, unplug the power, and put the hdb drive in the hda ide slot. Effectively you have just replaced the hda with the hdb drive. Then try turning on your computer. If everything runs smoothly, you have successfully copied everything down to the MBR. (I hope.) As I havent done this myself, I cant guarantee.
I've decided I should just partition the new drive with the partitions I want and just copy over all the data, trying to preserve as much of it as I can.

Last edited by CuBiC; 06-30-2004 at 11:07 AM.
 
Old 06-30-2004, 01:48 PM   #17
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
Quote:
CuBiC said to me with a lot of sarcasm :
Taken from the man page. Sounds a lot like preserving symbolic links to me
ooooups..... ehhhhh..... in my defence I'd like to say I work with Unix SVR4 (linux only at home), and -a option doesn't work in my system like in linux (it doesn't keep symbolic links). So tar is the solution here.

Sorry

Last edited by Goala; 06-30-2004 at 01:50 PM.
 
Old 06-30-2004, 01:55 PM   #18
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
Run partimage from the linux system rescue cd. Life is sweet.

http://www.sysresccd.org/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ghost software : Linux Ghost server NL-Stitch Linux - Newbie 18 02-02-2007 11:55 PM
ghost linux drive ? xaeniac Linux - General 3 05-30-2005 07:36 PM
Ghost and Linux robbow52 Linux - General 3 07-31-2004 02:24 AM
Linux and Ghost robbow52 Debian 1 07-30-2004 09:46 PM
Can i ghost Linux? Goll Linux - Newbie 20 12-17-2003 03:22 PM


All times are GMT -5. The time now is 01:06 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration