LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-16-2021, 07:29 AM   #16
mcv110
LQ Newbie
 
Registered: Mar 2021
Posts: 16

Original Poster
Rep: Reputation: Disabled

syg00 is correct in that the image posted is from the target machine, that is I have run dd from the machine I want to copy onto a USB HDD, and moved that USB HDD to the target that I want to dd the image onto. So I should simply be able to run the command you posted below

Code:
 sudo dd of=/dev/sda if=/dev/sdb1
A couple questions.
1. Would it benefit me to go back and redo the dd using /image.img?
2. for the syntax of the command, does it not matter if the of= is before the if=?
 
Old 04-16-2021, 07:36 AM   #17
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,296

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I'm surprised nobody has mentioned it, but if you can read the filesystems involved rsync might be an easier & quicker way of doing this as it doesn't need identical drives.
 
Old 04-16-2021, 07:38 AM   #18
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Doesn't do boot.
 
Old 04-16-2021, 07:40 AM   #19
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by mcv110 View Post
A couple questions.
1. Would it benefit me to go back and redo the dd using /image.img?
2. for the syntax of the command, does it not matter if the of= is before the if=?
Never done it this way, but my feelings would be:
No.
No.
 
1 members found this post helpful.
Old 04-16-2021, 09:50 AM   #20
mcv110
LQ Newbie
 
Registered: Mar 2021
Posts: 16

Original Poster
Rep: Reputation: Disabled
Alright the image has been copied over. I won't be able to boot the server to verify and test until tonight. But will update with how it turns out. Thanks to all for the support. Fingers crossed
 
Old 04-16-2021, 09:53 AM   #21
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by syg00 View Post
I beg to differ.
If that thumbnail was from the target, then the disk has been recognised, but /dev/sdb1 can't be mounted as it's the dd'd image. Given statements in the first post, this will restore that image onto the target - simply reversing the initial command.
Code:
sudo dd of=/dev/sda if=/dev/sdb1
True, but if he wants to actually put the image on /dev/sdb then my answer is right.
If he wants to put a different drive in place of sda and copy the image to it then your answer is right.

The OP needs to be a little more clear in what he is doing with the hardware / image / other.
 
Old 04-19-2021, 03:07 PM   #22
mcv110
LQ Newbie
 
Registered: Mar 2021
Posts: 16

Original Poster
Rep: Reputation: Disabled
I am happy to say the dd operation was a success. The server now boots and I can configure it as needed. Thanks to all for the input.

Is there anything I can do to upvote or mark the thread as solved?
 
Old 04-19-2021, 05:58 PM   #23
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Up the top - under thread tools I imagine.
 
  


Reply



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
Clone and boot from clone geelsu Linux - Server 5 12-17-2018 12:03 PM
LXer: Open-spec SBC is a clone of a clone of a clone of a Raspberry Pi 3 LXer Syndicated Linux News 0 04-25-2018 04:56 PM
Linux 64 bit fresh install, created clone on cd, want to use clone on another laptop... apollo1980 Linux - Software 12 10-12-2017 02:59 PM
I need to Clone a Red Hat drive and install clone in HP server drummer54 Linux - Newbie 14 03-07-2009 04:15 PM
bugzilla: to clone, or not to clone? The00Dustin Linux - Newbie 1 05-24-2008 05:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:46 AM.

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
Open Source Consulting | Domain Registration