|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Pavel Vasilyev 2:5020/1042.65 28 Jun 2005 19:47:46 To : Andy Shevchenko Subject : Восстановление MBR для DOS/Windows. -------------------------------------------------------------------------------- 28 Июн 05 16:36, Andy Shevchenko -> Pavel Vasilyev: AS> On Tue, 28 Jun 05 14:05:18 +0300; Pavel Vasilyev AS> <Pavel_Vasilyev@p65.f1042.n5020.z2.fidonet.org> wrote about AS> 'Восстановление MBR для DOS/Windows.': AS>>> fdisk linux'а изменяет только ту часть mbr, которая не касается PV>> у fdisk (linux) другая задача, а именно работа с таблицой PV>> разделов. и деланье/неделанье диска загрузочным не его проблемы. AS> А я что-то иное говорил? AS>>> команды fdisk /mbr в *DOS. Учите матчасть, которая в readme к AS>>> lilo аж Вот сегодня по COMP.OS.LINUX.ANNOUNCE пролетело ============================================================================= You can use the shell script 'backup-mbr' to backup and restore the MBR. The (M)aster (B)oot (R)ecord is the first 512 bytes of your hard drive, and you should always have a current backup of your MBR! To hold the MBR, you can use any media with a filesystem on it, but the filesystem on the media must be supported by the kernel! In addition to backing up the MBR of the hard drive you specify, it also makes a backup of the boot sector from each partition on the hard drive. Backup MBR from /dev/hda to directory /mbr/hda on /dev/fd0. # backup-mbr -b -d /mbr/hda hda fd0 "If directory doesn't exist, will create." Restore MBR to /dev/hda from backup in directory /mbr/hda on /dev/fd0. # backup-mbr -r -d /mbr/hda hda fd0 Restore boot sector to /dev/hda1 from backup in directory /mbr/hda on /dev/fd0. # backup-mbr -r -d /mbr/hda hda1 fd0 If you want to backup the MBR to a multi-session CD-RW, do this. # backup-mbr -cd-multi -b -d /mbr/hda hda hdc You'll need 'cdrecord' and 'mkisofs' installed, and have a CD in the drive '/dev/hdc'. If it's not a multi-session CD-RW, do it this way. # backup-mbr -cd -b -d /mbr/hda hda hdc "CD will be written multi-session." The non multi-session CD-RW must be blank, blank it first if it's not. cdrecord blank=fast dev=/dev/hdc "You'll loose anything on the CD." Restore MBR to /dev/hda from backup in directory /mbr/hda on /dev/hdc. # backup-mbr -r -d /mbr/hda hda hdc ============================================================================= You can get backup-mbr here: http://www.tux.org/pub/people/kent-robotti/looplinux Memento morri Andy! --- GoldED+ 1.1.5 (Linux 2.6.12 i686) * Origin: Windows в каждый дом. Билл Гейтса в Президенты. (2:5020/1042.65) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/456842c1a9dc.html, оценка из 5, голосов 10
|