LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 04-10-2003, 07:45 PM   #1
Dren
LQ Newbie
 
Registered: Apr 2003
Distribution: Redhat 8.0
Posts: 3

Rep: Reputation: 0
Rewriting MBR to 0's?


Hello, I need some help rewriting my MBR back to 0's. I have done it once before a while back using dd... But I can't seem to remember exactly how I did so... Please help, thanks.
 
Old 04-10-2003, 07:50 PM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Try man dd, and I think your source file of 0s is /dev/null or something like that
 
Old 04-10-2003, 08:22 PM   #3
Dren
LQ Newbie
 
Registered: Apr 2003
Distribution: Redhat 8.0
Posts: 3

Original Poster
Rep: Reputation: 0
I tried:
dd of=/mbr if=/dev/null

That didn't work. I looked at the dd man page, didn't find anything that helped me.
 
Old 04-10-2003, 09:02 PM   #4
glock27linux
LQ Newbie
 
Registered: Nov 2002
Posts: 29

Rep: Reputation: 15
for zero's you might be better suited with /dev/zero

Your dd command might be failing because it might not know what /mbr is. Is there a /mbr on your system? If MBR means Master Boot Record, I don't think a /mbr exists by default. MBR's are found at the beginning of a hard disk. I don't know how you would access a MBR specifically.
 
Old 04-10-2003, 09:04 PM   #5
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Oh, since I have used my win98 startup floppy with fdisk /mbr to restore the win boot loader, maybe the linux version of fdisk can help
 
Old 04-10-2003, 09:46 PM   #6
Dren
LQ Newbie
 
Registered: Apr 2003
Distribution: Redhat 8.0
Posts: 3

Original Poster
Rep: Reputation: 0
You were right, glock27linux, I got it to work using:

dd if=/dev/zero of=/dev/hda bs=512 count=1

Thanks.
 
Old 04-10-2003, 10:05 PM   #7
glock27linux
LQ Newbie
 
Registered: Nov 2002
Posts: 29

Rep: Reputation: 15
Cool! i knew MBR's were at the beginning of the disk, but i didn't know how many bytes they were for sure. Didn't want to reccommend the wrong specifics. Glad you got it figured out!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rewriting lilo into the mbr Smokey Slackware 4 08-05-2004 06:37 PM
1's, 0's and Software Sale HadesThunder General 9 05-23-2004 11:46 PM
Slackare boot is 1&0's BillyJr Slackware - Installation 12 01-25-2004 06:52 PM
rewriting my files jsfour Slackware 9 12-03-2003 05:06 PM
Lots of 1's and 0's neals-a-newbie Linux - Software 1 02-27-2002 04:41 PM


All times are GMT -5. The time now is 11:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration