LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-11-2001, 04:28 AM   #1
sgary
LQ Newbie
 
Registered: May 2001
Posts: 2

Rep: Reputation: 0

i have played with linux on and off for a while but still don't know some of the basics as you will see... i am trying to move my everything from one hard disk to another so i can remove the existing hd that linux is installed on. first i created the new partitions on the new disk. i tried to cp but lost symbolic links. next i tared the existing partitions but i when i extracted the tar i still lost my symbolic links. I looked for how-tos but couldn't find what i needed. please help...
 
Old 05-11-2001, 05:58 AM   #2
sgary
LQ Newbie
 
Registered: May 2001
Posts: 2

Original Poster
Rep: Reputation: 0
nevermind. i forgot to format the ne partitions ext2

doh!
 
Old 05-15-2001, 05:53 AM   #3
lynch
Member
 
Registered: Nov 2000
Location: A Mid-Atlantic state
Distribution: SuSE 8.1,Knoppix 3.2,Mandrake 9.1
Posts: 388

Rep: Reputation: 30
And you did this with the cp command?Does this work like xcopy?What options did you include?
Lynch
 
Old 05-16-2001, 10:41 PM   #4
ther-a-pea
LQ Newbie
 
Registered: May 2001
Posts: 23

Rep: Reputation: 15
Talking Let me know how too.....

When you get this figured out, let me know too as I have to add another hard drive to put Linux on........

Thanks,
 
Old 05-16-2001, 11:41 PM   #5
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
How about the man pages?

Try cp -a

I think that will work.
 
Old 05-17-2001, 09:25 AM   #6
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
By the way, I'm not a salesman for Norton...

Don't know if you've noticed, but I seem to hark on about 'Norton Ghost' as if it was the best program since Linux . It has an option to completely copy one HD partition onto another. The partitions do not need to be on the same physical disk, so I think this would work. It does recognise and can use 'foreign' partition types, but one big downside - it only runs from a DOS disk! It is small enough to fit onto a blank floppy though.

I haven't actually used it to 'copy' complete partitions/disks, but it seems that it can be done. Oh yeah, there are lots of network options aswell (including parallel connections) so you could do this, in theory, from a local 'disk' to a remote 'disk'.
 
Old 05-17-2001, 09:54 PM   #7
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Cool two ways...

You could create an idential sized set of partitions on the new HDD and use dd copy the entire partition with something like

dd if=/dev/hda1 of=/dev/hdb1 count=<partsize>

Or use cpio to copy all the files from one partition to another where the partitions on different drives, it will handle the file perms OK and symlnks. I think something like this would work.

find /oldPart | cpio -p -d -m /newPart

I *think* both those would work, I don't see why not.

cheers!

Jamie...
 
  


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
changing hard disks aRm1983 Linux - Newbie 4 07-18-2005 02:11 PM
How many Hard disks ? BizHat.com Linux - Software 5 01-18-2005 08:38 PM
linux doesn't see my other 2 hard disks tr6boy Linux - Hardware 5 07-19-2004 05:09 PM
2 Hard Disks and 2 OS? How to? nbn792 Linux - General 5 12-26-2003 08:20 PM
2 Hard disks hadi Linux - Newbie 4 10-29-2003 03:34 PM


All times are GMT -5. The time now is 04:15 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