LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 08-31-2009, 03:21 PM   #1
wisdev
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
Do all hard drives have a master boot record?


Because trying to Google that is apparently impossible.

I know -what- it is (first 512b, supposedly 'outside' of the partition, contains partition table). But what I don't know is that if I partition a hard drive starting at the first cylinder with fdisk -- will that overwrite the MBR?
 
Old 08-31-2009, 05:02 PM   #2
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
Quote:
Originally Posted by wisdev View Post
if I partition a hard drive starting at the first cylinder with fdisk -- will that overwrite the MBR?
It will not.
 
Old 09-01-2009, 11:50 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
This will

http://www.linuxquestions.org/questi...query.-606489/
 
Old 09-01-2009, 12:00 PM   #4
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Actually, if you use fdisk to partition the drive, it will overwrite the partition table that is already there. The partition table is 64 of the last 66 bytes of the MBR (the last two bytes are the signature block).

So, yes. fdisk DOES overwrite the MBR...that portion of it that it is concerned with.

Also, using dd to "zero" an MBR is dangerous; you can easily overwrite the partition table if you don't know what you are doing. The linked thread tells you quite adequately about that.

Last edited by jiml8; 09-01-2009 at 12:01 PM.
 
Old 09-02-2009, 06:42 AM   #5
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Partitioning doesn't blow away the MBR. But hard drives write whole sectors at a time. So even when you specify 446 with dd you're still, technically, rewriting all 512.
 
  


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
master boot record goldeneagle1234 Linux - Newbie 2 11-09-2008 08:58 AM
master boot record???? harsh.911 Linux - Newbie 10 06-15-2008 08:25 AM
master boot record help sfr7 Linux - Laptop and Netbook 10 04-25-2004 08:52 AM
Master Boot Record linuxuser05 Linux - General 3 01-11-2004 06:57 PM
master boot record alaios Linux - General 1 04-22-2003 08:41 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 08:43 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