All times are UTC-06:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: MBR clear
PostPosted: Tue Jan 02, 2007 11:59 pm 
Offline

Joined: Tue Nov 14, 2006 3:22 am
Posts: 37
i have an efika with a 2.5" hdd what was used in a notebook with windows... so:

is there a way to clear the MBR with the debian without needing of new reinstall? something like MorphOS' mbrclear (or so) command...

thanks in advance.

bye, MarK.


Top
   
 Post subject:
PostPosted: Wed Jan 03, 2007 4:40 am 
Offline

Joined: Mon Dec 18, 2006 10:08 am
Posts: 6
This overrides the whole MBR with zeros (including the partition table!!):
Code:
dd if=/dev/null of=/dev/XXX bs=512 count=1
Your system will not boot after that, because of the missing partion table. Perhaps you only want to clear the boot code of the MBR.
Look here for details abobut the MBR: http://en.wikipedia.org/wiki/Master_boot_record

But I am not sure why you wont to clear your MBR? OF loads your kernel directly and doesn't needs the boot code in the MBR.


Top
   
 Post subject:
PostPosted: Wed Jan 03, 2007 4:49 am 
Offline

Joined: Tue Nov 14, 2006 3:22 am
Posts: 37
well, OF can't load kernel from the hdd, as the hdd isn't visible... when i load the kernel from a usb flash, then it boots correctly... i'll try to connect it to my pegasos and clear it with morphos...

thanks and bye, MarK.


Top
   
 Post subject:
PostPosted: Wed Jan 03, 2007 6:29 am 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
well, OF can't load kernel from the hdd, as the hdd isn't visible... when i load the kernel from a usb flash, then it boots correctly... i'll try to connect it to my pegasos and clear it with morphos...

thanks and bye, MarK.
I think there's need for a cute tool here!

How about a small script that reads out the RDB partition block, wipes the MBR off a disk and replaces it? It seems a lot of people want this 'feature'.

_________________
Matt Sealey


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group