Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: mbr

23 Mar

Installing GRUB Into MBR

Use this when your MBR gets corrupted – usually happens after you reinstall windows. Pop in a bootable ubuntu DVD and boot into it. Then open a terminal and type in the following commands…


$ sudo grub
> find /boot/grub/stage1
(hd0,1)
> root (hd0,1) #Must be same as the output of the last command
> setup (hd0)
admin Posted in Command Line, Linux grub, hd, hdd, install, Linux, mbr, root, windows 1 Comment
17 Mar

Backup MBR to Image File

Make a copy of MBR (Master Boot Record) to a file.


dd if=/dev/hda of=mbr.img bs=512 count=1

dd if=mbr.img of=/dev/hda bs=512 count=1 #restore the MBR
admin Posted in Command Line, Linux backup, command, dd, harddisk, image, Linux, mbr, restore Leave a comment

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑