LinuxQuestions.org
Visit Jeremy's Blog.
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 08-13-2009, 12:59 PM   #1
skuzye
Member
 
Registered: Jul 2008
Location: São Paulo - Brazil
Distribution: Fedora 17
Posts: 97

Rep: Reputation: 15
dd - mbr backup, dont wanna mess with extended at all


Hello, I found out that dd could copy the primary partition table, but isnt extended partition a primary partition itself?

If I use dd to backup mbr of one computer which has a primary partition and a extended and copy to another one, would it mess with the extended partition?

I cant lose the things stored there.

Im duplicating a computer installation to another and to boot windows I would have to restore the mbr too.

Skuzye
 
Old 08-13-2009, 01:10 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Several points:

An "extended partition" is really the beginning of a linked list of all the logical partitions. It occupies one of the four slots in the MBR partition table, but I would not call it a primary partition.

For primary and logical partitions, the entries in the partition tables point to actual partitions on the disk. The extended partition entry does not.

If you just copy the MBR you are not doing anything to the actual partitions.

If you copy the MBR to another computer, how do you know that the partition table entries are still valid?---unless the other computer is an identical clone. In that case, simply us dd to clone everything, INCLUDING the MBR.

Quote:
I cant lose the things stored there.
regardless of all the above, be sure you have a backup before you do any of this.
 
Old 08-13-2009, 07:27 PM   #3
skuzye
Member
 
Registered: Jul 2008
Location: São Paulo - Brazil
Distribution: Fedora 17
Posts: 97

Original Poster
Rep: Reputation: 15
well as you said copying the mbr wouldnt damage the partitions themselves. If I backup the mbr and the new one doesnt work I can restore it just like it was before, right?

Quote:
If you copy the MBR to another computer, how do you know that the partition table entries are still valid?---unless the other computer is an identical clone. In that case, simply us dd to clone everything, INCLUDING the MBR.
I used partimage to backup the only primary partition in the source computer. The destination only has one primary too. Since I cant boot windows after restoring to the destination, I found out that I would have to restore the mbr too.

I just trying to hack it to work... Dont wanna reinstall the same things again, it would take a lot of time..

Skuzye
 
Old 08-13-2009, 09:29 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by skuzye View Post
well as you said copying the mbr wouldnt damage the partitions themselves. If I backup the mbr and the new one doesnt work I can restore it just like it was before, right?Skuzye
In principle, that is correct.

If you tell me that all your data is backed up, then I will be able to sleep tonight.....
 
  


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
can someone point me in the right direction so i dont mess it up aeiouer Linux - Laptop and Netbook 13 06-05-2007 10:45 PM
lilo/xp mbr a complete mess bandofmercy Linux - Software 1 10-01-2004 04:13 AM
Dont wanna pay your taxes...You're not alone jaz General 7 07-12-2004 12:56 AM
dont wanna use edge on gnome-panel leukozyt Linux - General 0 11-14-2003 07:30 PM
i dont wanna join a domain!! banelion Linux - General 5 06-28-2002 03:36 PM

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

All times are GMT -5. The time now is 06:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration