![]() |
|
|
#1 |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
381710 Posts |
I have enjoyed greater freedom in moving a linux drive between machines than I ever did with Windows. (At least, older versions - I don't know about newer ones.)
That said, whenever I move a drive from one machine to another, the system comes up right away with no (apparent) issues other than defaulting to DHCP for the "new" interface hardware. I always recompile GMP, ECM-GMP, Msieve, ggnfs, YAFU, etc., so the programs will match the new hardware. What I'm wondering, is whether there is anything other than updates I should do for the OS. Will the normal OS suffer any degradation from the h/w swap that I would not detect, but would make a difference in the running or the compilation of the above packages? Is there something I should be doing OS-wise? |
|
|
|
|
|
#2 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
37·263 Posts |
Nope. You should be fine.
Winblows ties your OS licence to the hardware signature (read: every single bit of kit you paid for), so every time you change anything M$ will revalidate your licence, and perhaps tell you that you need to pay them several hundred dollars for the right to run their crap OS. Since Linux is Free, you can swap your hard drives as often as you like. Mirror them. Deploy new computers. Whatever you want to do.. |
|
|
|
|
|
#3 |
|
"Curtis"
Feb 2005
Riverside, CA
486110 Posts |
Are you sure? Your examples and comparisons seem to miss entirely OP's question.
If I have Ubuntu installed on a Core2 system, and I move the hard drive from that core2 to my haswell and boot the old ubuntu image, the system will be fine? What if I move to a Ryzen? Like Ed, I've been pleasantly surprised to find ubuntu usually boots on the new hardware; I am curious if this is by luck/similarity of hardware (say, i7-920 laptop to sandy bridge desktop), or if linux installs are designed to handle such changes. |
|
|
|
|
|
#4 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
37×263 Posts |
|
|
|
|
|
|
#5 |
|
"/X\(‘-‘)/X\"
Jan 2013
22·733 Posts |
I've done this more times than I can remember. Moving a Linux installation from hardware to hardware is something I take for granted.
|
|
|
|
|
|
#6 |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
11×347 Posts |
Thanks for all the replies. The only issue, as mentioned earlier, that I have found is that all my math machines use static IPs, and when I swap to new hardware, the new network interface is defaulted to DHCP. This is a small inconvenience, since I run the machines headless normally and have to connect a monitor and keyboard to reset the static IP. But, then again, I'm already swapping drives.
My OP was meant more along the lines of questioning whether I was missing something OS-wise that I should add, as I do for my recompilation of the math specific packages. Thanks all! |
|
|
|
|
|
#7 |
|
Sep 2002
Database er0rr
3,739 Posts |
On some distros you might need to reconfigure what udev thinks the NIC is.
I suspect there are commands for changing ssh keys when copying drives. By and large the monolithic Linux kernel does a good job when moving drives, but in some cases it might need a recompilation of the kernel to cope with finickity RAID stuff etc. Last fiddled with by paulunderwood on 2018-04-07 at 14:45 |
|
|
|
|
|
#8 | |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
23×3×5×72 Posts |
Quote:
|
|
|
|
|
|
|
#9 | ||
|
"Ed Hall"
Dec 2009
Adirondack Mtns
11·347 Posts |
Quote:
I have had no troubles keeping the ssh setup intact when I move the drive. Essentially, to my system, the drive is the machine and once I "correct" the IP, all is well for communication. Of course, that's when I recompile all the GMP, etc. packages for the new CPU. I try to use AHCI for all these systems, since there's no real long term backup needed. I thought that was really only affected at the BIOS level. I had one machine that wouldn't run AHCI, only RAID, even though it had only one drive. I finally discovered it was a bad SATA port on the MB. Quote:
|
||
|
|
|
|
|
#10 | |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
23·3·5·72 Posts |
Quote:
A script run at login could detect a new pc and then run a script that sets the static IP. |
|
|
|
|
|
|
#11 | |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
11·347 Posts |
Quote:
|
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Anyone experience problems with USB hard drives? | Jeff Gilchrist | Hardware | 10 | 2011-05-18 13:16 |
| Any thoughts on large hard drives... | petrw1 | Hardware | 21 | 2010-04-27 21:33 |
| k's/n-ranges not searched for team drives | gd_barnes | No Prime Left Behind | 20 | 2008-12-26 08:13 |
| prime95 blend torture test and memory swapping to disk | Tresark | Software | 8 | 2004-06-17 19:03 |
| Memory settings and swapping problem | MaxP | Hardware | 3 | 2003-12-20 05:08 |