Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

easiest way to move linux from one hard drive to another 1

Status
Not open for further replies.

fenris

Programmer
May 20, 1999
824
CA
What would be the easiest way to move linux from one hdrive to another. This is my current setup:<br>Mandrake 7.0 on a 1gb ide hdrive primary master<br>22 gb ide hdrive mounted under /home<br><br>I recently got a 3.2 gb scsi with adaptec scsi card and I want to make it the linux's new home. How can I do this with a minimal of effort. I am familiar with computers and hardware but have little experience with scsi equipment. How would I set it up for such a configuration.<br><br>BTW, the computer is a pII 366 celeron, with 32mb of ram and it runs great as my mp3 server. I thought about giving the scsi drive to windows (which I would have no problems install ;-))but I would rather learn something new and give it to an O/S that would be able to fully use it.<br><br>Any opinions, comments or help will be greatly appreciated<br> <p> fenris<br><a href=mailto:fenris@hotmail.com>fenris@hotmail.com</a><br><a href= > </a><br> I am interested in Mining Software, as well as Genetic Algorithms.
 
<font color=red><b><FONT FACE=monospace>mount /dev/sca0 /scsii<br> cp -a /xx /scsii</font></b></font><br><br>will copy directory <font color=red><FONT FACE=monospace><b>xx</b></font></font>, with all its subdirectories, preserving file dates and syslinks and only copying files having newer dates than those on the destination.<br><br>By only copying one top directory at a time you avoid recursively copying the contents of /scsii to itself with each additional directory.&nbsp;&nbsp;Unless you want to fill up your SCSII drive.<br><br>I use this method to make partial backups to a Castlewood ORB 2.2 GB removable cartridge disk drive. <p>Octalman<br><a href=mailto: > </a><br><a href= > </a><br>
 
Octalman,<br><br>I would have used the <FONT FACE=monospace><b>dd</font>]</b> command like this<br><br>/dev/hd1 is the existing hard drive with linux on it<br><br>/dev/hd2 is the new hard drive where you want linux to be.<br><br><FONT FACE=monospace><b>dd if=/dev/hd1 of=/dev/hd2 </font>]</b><br><br>This would have the advantage that it would copy the boot sectors across as well -- or am I barking up the wrong tree? <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Please -- Don't send me email questions without posting them in Tek-Tips as well. Better yet -- Post the question in Tek-Tips and send me a note saying "Have a look at so-and-so in the thingy forum would you?"
 
whoops - that final ']' on the dd line is not needed <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Please -- Don't send me email questions without posting them in Tek-Tips as well. Better yet -- Post the question in Tek-Tips and send me a note saying "Have a look at so-and-so in the thingy forum would you?"
 
Thank you for the help, I will try it as soon as I get home.<br><br>BTW, is there anything that I should watch for while setting up the scsi drive, both in terms of physical installation and the computer recognizing the drive?<br><br>fenris <p> fenris<br><a href=mailto:fenris@hotmail.com>fenris@hotmail.com</a><br><a href= > </a><br> I am interested in Mining Software, as well as Genetic Algorithms.
 
I recently got around to moving linux off the 1gig ide drive to the 3 gig scsi. I realized that I want to keep the partitions scheme intact. I have a boot, root, and a few other partitions that I would like to keep. Is there a way to copy them over as well, I doubt there is but it doesn't hurt to ask. What would be the best partitioning scheme for me. I really only use the linux box as a fileserver for now, but I am planning on having it act as a router and a webserver in the near future. Any input would be appreciated.<br><br> <p> fenris<br><a href=mailto:fenris@hotmail.com>fenris@hotmail.com</a><br><a href= > </a><br>
 
Have a look at Partition Manager, that provides a menu driven way to create partitions and copy their contents around. <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Thanks Mike, I appreciate the Help. <p> fenris<br><a href=mailto:fenris@hotmail.com>fenris@hotmail.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top