Linux - Hardware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-23-2022, 10:11 PM
|
#1
|
Member
Registered: Nov 2021
Distribution: KDE Neon
Posts: 72
Rep: 
|
Cloning primary drive to external drive - any issues?
Hi everyone,
Previously, I used the following command to successfully clone one external drive to another:
sudo dd if=/dev/sd* of=/dev/sd* bs=1024k status=progress
I'm wondering if there might be any issues if I attempt to clone my running system to an external drive using this method?
Thanks.
|
|
|
09-23-2022, 10:23 PM
|
#2
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
You need to boot from an external media for this method. Technically it is possible to back up your live drive, but you have to combine dd and other copy methods, and you must exclude virtual filesystems like /proc, /dev and /sys. For EFI systems you do not need dd at all.
|
|
|
09-23-2022, 10:26 PM
|
#3
|
Member
Registered: Nov 2021
Distribution: KDE Neon
Posts: 72
Original Poster
Rep: 
|
Quote:
Originally Posted by Emerson
You need to boot from an external media for this method. Technically it is possible to back up your live drive, but you have to combine dd and other copy methods, and you must exclude virtual filesystems like /proc, /dev and /sys. For EFI systems you do not need dd at all.
|
Thanks. Had a feeling that might be the case.
If I boot from a USB stick, will that be fine?
Last edited by Eucalyp333; 09-23-2022 at 10:27 PM.
|
|
|
09-24-2022, 12:48 AM
|
#4
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,533
|
Quote:
Originally Posted by Eucalyp333
If I boot from a USB stick, will that be fine?
|
That's one type of external media, so yes.
|
|
1 members found this post helpful.
|
09-24-2022, 02:44 AM
|
#5
|
LQ Newbie
Registered: Jan 2021
Location: Germany
Distribution: debian
Posts: 27
Rep: 
|
Quote:
Originally Posted by Emerson
You need to boot from an external media for this method. Technically it is possible to back up your live drive, but you have to combine dd and other copy methods, and you must exclude virtual filesystems like /proc, /dev and /sys. For EFI systems you do not need dd at all.
|
What do mean by saying "For EFI systems you do not need dd at all"?
|
|
1 members found this post helpful.
|
09-24-2022, 06:43 AM
|
#6
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
You can back up your EFI partition with plain 'cp -a'. Other filesystems as well. With dd you will have a huge image, it will copy the free space, too. With cp method you can create directories (boot, root, home) in your backup media and copy your files over. Will use much less space and won't take ages. Then you can use rsync to update your backup any time you wish, it will take a minute or two. Granted, restoring from such backup involves editing fstab and bootloader conf to replace UUID's. But how often you restore from full backup? Besides, you can set up your system using labels instead of UUID's. Then when you prepare new disk to replace failing drive you create filesystems with same labels and everything works right out of the box. With cp method you can even back up a live system if you know what you are doing. I personally do even less, I back up only user files and configuration files. Restoring from such backup is more work. But again, how often one needs to do full restore? Hasn't happened to me in last ten years. Imagine, if I was backing up 6-7 computers using dd over ten years. How much work that would have been? Nono, in my opinion dd backups are clumsy, time consuming and not practical.
|
|
1 members found this post helpful.
|
09-24-2022, 10:24 PM
|
#7
|
Member
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 657
|
I'd suggest just use clonezilla as that is what it is used for. Write that to your USB drive and follow the instructions after booting from it. Worked fine for me.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 06:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|