LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to fix sd card's MBR on terminal window? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-fix-sd-cards-mbr-on-terminal-window-4175470138/)

yujwancab 07-18-2013 07:45 PM

How to fix sd card's MBR on terminal window?
 
Pls help me to have a command on how to fix mbr/format as new of my old sd cards.

Thank you.

GlennsPref 07-18-2013 08:07 PM

Quote:

Hi, Welcome to LQ!

LQ has a fantastic search function that may save you time waiting for an answer to a popular question.

With over 4 million posts to search it's possible the answer has been given.
:)
to clean/wipe mbr...including partition table....
Code:

dd if=/dev/zero of=/dev/sd(x) bs=512 count=1
as root...My flashdrive usually uses /dev/sdd, check yours first!
Code:

sudo dd if=/dev/zero of=/dev/sdd bs=512 count=1
"NOT sda1, for flashdrives type mount and note the usb device info.
unmount the device and check you have the correct info, it should be gone.
Remount the device and continue."

Hope this helps, regards Glenn

yujwancab 07-18-2013 08:16 PM

Hi Mr. Glenn,

I appreciate for your help & quick response, I will post results.

Thank You.

BTW: I'm new here in LQ.

Regards,
Yujwancab

yujwancab 07-18-2013 08:22 PM

Hi Mr. Glenn,

My SD cards size commonly 8GBytes. Is there any size to be given in "bs=512"?

Thanks.

rokytnji 07-18-2013 09:45 PM

Quote:

Originally Posted by yujwancab (Post 4992891)
Hi Mr. Glenn,

My SD cards size commonly 8GBytes. Is there any size to be given in "bs=512"?

Thanks.

http://www.linuxquestions.org/questi...-query-606489/

GlennsPref 07-20-2013 08:37 AM

It won matter what size the memory is, that is the bs (byte size)

Google is your friend.

lookup man dd


All times are GMT -5. The time now is 04:02 AM.