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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-10-2003, 06:45 PM
|
#1
|
|
LQ Newbie
Registered: Apr 2003
Distribution: Redhat 8.0
Posts: 3
Rep:
|
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.
|
|
|
|
04-10-2003, 06:50 PM
|
#2
|
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep: 
|
Try man dd, and I think your source file of 0s is /dev/null or something like that 
|
|
|
|
04-10-2003, 07:22 PM
|
#3
|
|
LQ Newbie
Registered: Apr 2003
Distribution: Redhat 8.0
Posts: 3
Original Poster
Rep:
|
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.
|
|
|
|
04-10-2003, 08:02 PM
|
#4
|
|
LQ Newbie
Registered: Nov 2002
Posts: 29
Rep:
|
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.
|
|
|
|
04-10-2003, 08:04 PM
|
#5
|
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep: 
|
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 
|
|
|
|
04-10-2003, 08:46 PM
|
#6
|
|
LQ Newbie
Registered: Apr 2003
Distribution: Redhat 8.0
Posts: 3
Original Poster
Rep:
|
You were right, glock27linux, I got it to work using:
dd if=/dev/zero of=/dev/hda bs=512 count=1
Thanks.
|
|
|
|
04-10-2003, 09:05 PM
|
#7
|
|
LQ Newbie
Registered: Nov 2002
Posts: 29
Rep:
|
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!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:35 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|