LinuxQuestions.org
Review your favorite Linux distribution.
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 10-10-2016, 12:25 PM   #16
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,568

Rep: Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093

If you don't have a Windows installation there that you are trying to boot, you don't have to worry about the disk identifier. Just copy everything up to the start of the first partition. If that's on sector 2048, then
Code:
dd if=/dev/sdX of=/dev/sdY count=2048
Yes, that will be copying the whole MBR and primary partition table again. That partition table will be identical to what sfdisk installed (or will install, depending on which you do first).
 
1 members found this post helpful.
Old 10-10-2016, 03:42 PM   #17
granfran
Member
 
Registered: Jun 2015
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
If you don't have a Windows installation there that you are trying to boot, you don't have to worry about the disk identifier. Just copy everything up to the start of the first partition.

Thanks! This worked!
 
Old 10-10-2016, 11:11 PM   #18
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
jpollard & rknichols:

Thanks for joining the thread.
Your help and advice is appreciated-

@granfran

Glad it worked for you. If you have the time kindly give the details of what worked.
 
Old 10-11-2016, 12:52 AM   #19
granfran
Member
 
Registered: Jun 2015
Posts: 33

Original Poster
Rep: Reputation: Disabled
@Ztcoracat,

I cloned all of the partitions on the device using dd:

dd if=/dev/sda1 of=/dev/sdc1
dd if=/dev/sda2 of=/dev/sdc2
dd if=/dev/sda5 of=/dev/sdc5

Then, I saw that the first partition began at sector 64, so I ran
dd if=/dev/sda of=/dev/sdc count=64

The last command made the device bootable.
 
1 members found this post helpful.
Old 10-11-2016, 01:43 AM   #20
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Quote:
Originally Posted by granfran View Post
@Ztcoracat,

I cloned all of the partitions on the device using dd:

dd if=/dev/sda1 of=/dev/sdc1
dd if=/dev/sda2 of=/dev/sdc2
dd if=/dev/sda5 of=/dev/sdc5

Then, I saw that the first partition began at sector 64, so I ran
dd if=/dev/sda of=/dev/sdc count=64

The last command made the device bootable.
Thanks for the details granfran:-

Have a good week ahead.:-
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] (Fedora) Cloning boot partition dereism Linux - Newbie 5 02-21-2013 07:25 AM
cloning linux partition to different laptop, invalid partition table dsollen Linux - Software 8 11-23-2009 08:50 PM
Cloning an active partition? kmand Linux - Software 2 11-22-2007 11:59 AM
Partition cloning using dd greenberet Linux - Software 2 04-06-2007 06:20 AM
Moving/cloning partition LeftyAce Debian 17 01-13-2006 03:19 PM

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

All times are GMT -5. The time now is 02:27 PM.

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