Wednesday, March 26, 2014

Dual boot of Windows and Linux. How to repair Windows loader after GRUB ?

If you've accidently destroyed/overwritten Master Boot Record of your hard disk installing Linux along with existing Windows, don't worry. Just log in as root to Linux and go to the boot partition. Here you can find file backup.mbr. That's backup of your MBR before GRUB overwrites it. Do the following:

1. Create new mbr copy (just in any case)

# dd if=/dev/ of=/boot/new_mbr_copy bs=1 count=512

2. Restore original MBR

# dd if=/boot/backup.mbr of=/dev/

Now you're able to boot Windows only, not Linux. In order to boot Linux, just install as an option EasyBCD boot loader, configure it and remember: in the future one should confugure Linux boot loader to be installed to it's boot partition only.

That's all

Monday, March 17, 2014

BLKRRPART: Device or resource busy - Linux error or similar message

Kernel can't permit you to explore newly added partitions without complete reboot of server. There are several ways to resolve it:

1.

partprobe [device]

2.

echo 1 > /sys/block//device/rescan

3.

hdparm -z \

4. etc.

After that you're able to create filesystem or use newly added partitons as you wish.