Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just bought a new Samsung laptop, it is the same as this older one, just better processors, i5 third generation, I'm told.
I use Ubuntu, the latest LTS version. I have my old laptop set up nicely, all the things installed just as I need them. Things I can't even remember installing!
Can I simply clone this hd onto the new computer's hd?
Or is that not a good idea?
If this is advisable, I'm thinking of removing the hd from the new laptop, putting it in my external drive and copying everything.
Maybe with rsync? I use that to fetch files from my webpage.
May I demur - dd is absolutely the wrong tool. Allocate some partitions and use rsync as proposed. Best option is to allocate a separate /home partition, then if a fresh install is required, settings aren't lost.
dd has no knowledge of filesystem structure, and if there are any errors will simply clone the errors as well. It has its uses (forensics say), but not a backup tool.
I'm inclined to think that a fresh install on the new computer, with a separate /home, then fetching the files for /home with rsync, is likely the best option (I have used a separate /home partition for many years, and have several times been very glad I do).
If it were me, I'd be concerned about potential hardware conflicts in trying to restore a clone from an older machine to the newer one.
Of course, you could try cloning and, if it fails, you would have a fallback plan.
Fresh install the best option. Yes definitely. I said so in post 2.
A file system will have bad blocks, bad sectors, errors, corrupt files, sometimes even immovable data. If you clone it, you clone all of that. dd clones.
Quote:
Can I simply clone this hd onto the new computer's hd?
Sure you can. Will it run ok, sure it will, it will be just like that old drive.
Quote:
Or is that not a good idea?
You see what everyone has said.
Is there an advantage to doing it? Sure, no reconfiguring, no installing, no nothing.
I did a 160GB almost full to a 500GB. Whole thing from start to rebooting the new drive was about 35 min. If you are going to do it with a 1TB drive...that's going to take a while.
Also when you run some like:
Code:
tune2fs -l /dev/sda2
It will look the same as the old drive. Because that is what it is.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.