65 lines
3.1 KiB
Markdown
65 lines
3.1 KiB
Markdown
---
|
|
date: '2014-08-06T20:12:00+03:00'
|
|
lastmod: '2014-08-06T20:12:00+03:00'
|
|
draft: true
|
|
title: 'Как восстановить MBR Windows раздела из-под WIndows'
|
|
slug: 'kak-vosstanovit-mbr-windows-razdela-iz-pod-windows'
|
|
|
|
categories:
|
|
- 'linux'
|
|
|
|
tags:
|
|
- 'добрые советы'
|
|
|
|
cover:
|
|
image: "hero.svg"
|
|
alt: "Как восстановить MBR Windows раздела из-под WIndows"
|
|
---
|
|
|
|
Есть у меня загрузочная флешка с WIndows. Но после очередного залитого образа с неё перестал грузиться инсталятор. Всё дело было в повреждённой записи MBR (Master boot record). Под Windows я то легко смог восстановить загрузочную запись командой из консоли "fdisk /mbr", но как быть если у меня нет под рукой установленной Windows?
|
|
|
|
Для этой цели проще всего использовать программу [ms-sys](http://ms-sys.sourceforge.net/).
|
|
|
|
К сожалению, пакетов разработчики не собирают. Но собрать эту программу проще простого.
|
|
|
|
```
|
|
Usage:
|
|
ms-sys [options] [device]
|
|
Options:
|
|
-1, --fat12 Write a FAT12 floppy boot record to device
|
|
-2, --fat32nt Write a FAT32 partition NT boot record to device
|
|
-3, --fat32 Write a FAT32 partition DOS boot record to device
|
|
-4, --fat32free Write a FAT32 partition FreeDOS boot record to device
|
|
-5, --fat16free Write a FAT16 partition FreeDOS boot record to device
|
|
-6, --fat16 Write a FAT16 partition DOS boot record to device
|
|
-n, --ntfs Write a NTFS partition Windows 7 boot record to device
|
|
-l, --wipelabel Reset partition disk label in boot record
|
|
-p, --partition Write partition info (hidden sectors, heads and drive id)
|
|
to boot record
|
|
-H, --heads Manually set number of heads if partition info is written
|
|
-7, --mbr7 Write a Windows 7 MBR to device
|
|
-i, --mbrvista Write a Windows Vista MBR to device
|
|
-m, --mbr Write a Windows 2000/XP/2003 MBR to device
|
|
-9, --mbr95b Write a Windows 95B/98/98SE/ME MBR to device
|
|
-d, --mbrdos Write a DOS/Windows NT MBR to device
|
|
-s, --mbrsyslinux Write a syslinux MBR to device
|
|
-t, --mbrgptsyslinux Write a syslinux GPT MBR to device
|
|
-z, --mbrzero Write an empty (zeroed) MBR to device
|
|
-f, --force Force writing of boot record
|
|
-h, --help Display this help and exit
|
|
-v, --version Show program version
|
|
-w, --write Write automatically selected boot record to device
|
|
|
|
Default Inspect current boot record
|
|
|
|
Warning: Writing the wrong kind of boot record to a device might
|
|
destroy partition information or file system!
|
|
|
|
```
|
|
|
|
Пользоваться тоже. Например, для запись MBR Windows 7 достаточно выполнить следующую команду:
|
|
|
|
>
|
|
ms-sys -7 /dev/sde
|
|
Где /dev/sde это моя флэшка.
|