wok-next annotate ms-sys/description.txt @ rev 21469

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents
children
rev   line source
al@19805 1 This program is used to create Microsoft compatible boot records. It is able to
al@19805 2 do the same as Microsoft "`fdisk /mbr`" to a hard disk. It is also able to do
al@19805 3 the same as Microsoft "`sys d:`" to a floppy or FAT partition except that it
al@19805 4 does not copy any system files, only the boot record is written.
al@19805 5
al@19805 6 Specifications of boot records is taken from
al@19805 7 http://www.geocities.com/thestarman3/asm/mbr/MBR_in_detail.htm
al@19805 8
al@19805 9 The program is useful when using Linux to restore a backup of a reference
al@19805 10 Microsoft Windows installation.
al@19805 11
al@19805 12 Author of this program is Henrik Carlqvist <henca@users.SourceForge.net>, it
al@19805 13 is available for download from http://ms-sys.sourceforge.net/
al@19805 14
al@19805 15 ## Examples
al@19805 16
al@19805 17 Please note that Windows ME is not useful for making standalone bootable
al@19805 18 floppies. However, Win9x and DOS works fine with example 1 and example 3.
al@19805 19
al@19805 20 ### Example 1, creating a 1.68 MB bootable floppy:
al@19805 21
al@19805 22 This example assumes that you have your windows installation mounted at /dosc
al@19805 23 and also have mtools and fdformat installed.
al@19805 24
al@19805 25 ```
al@19805 26 fdformat /dev/fd0u1680
al@19805 27 mformat a:
al@19805 28 ms-sys -w /dev/fd0
al@19805 29 mcopy /dosc/io.sys a:
al@19805 30 mcopy /dosc/msdos.sys a:
al@19805 31 mcopy /dosc/command.com a:
al@19805 32 ```
al@19805 33
al@19805 34 ### Example 2, restoring a backup to a fresh hard disk:
al@19805 35
al@19805 36 * Step 1, use GNU parted to create your FAT32 partition and file system:
al@19805 37
al@19805 38 ```
al@19805 39 parted
al@19805 40 ```
al@19805 41
al@19805 42 (then create partition and file system)
al@19805 43
al@19805 44 * Step 2, write the MBR:
al@19805 45
al@19805 46 ```
al@19805 47 ms-sys -w /dev/hda
al@19805 48 ```
al@19805 49
al@19805 50 * Step 3, write the FAT32 partition boot record:
al@19805 51
al@19805 52 ```
al@19805 53 ms-sys -w /dev/hda1
al@19805 54 ```
al@19805 55
al@19805 56 * Step 3b, write partition info and drive id to partition:
al@19805 57
al@19805 58 ```
al@19805 59 ms-sys -p /dev/hda1
al@19805 60 ```
al@19805 61
al@19805 62 This step might be needed depending on which program was used to format the
al@19805 63 partition. If the program was formatted with gnu parted this step could be
al@19805 64 skipped. It is also possible to combine this flag with the previous step
al@19805 65 like this:
al@19805 66
al@19805 67 ```
al@19805 68 ms-sys -wp /dev/hda1
al@19805 69 ```
al@19805 70
al@19805 71 * Step 4, mount your new filesystem:
al@19805 72
al@19805 73 ```
al@19805 74 mount /dev/hda1 /mnt
al@19805 75 ```
al@19805 76
al@19805 77 * Step 5, read your backup
al@19805 78
al@19805 79 ```
al@19805 80 cd /mnt; tar -xzvf /path/to/my_windows_backup_file.tgz
al@19805 81 ```
al@19805 82
al@19805 83
al@19805 84 ### Example 3, creating a bootable 2.8 MB floppy image for use with an el-torito bootable CD:
al@19805 85
al@19805 86 ```
al@19805 87 dd if=/dev/zero of=floppy288.img bs=1024 count=2880
al@19805 88 /sbin/mkdosfs floppy288.img
al@19805 89 ms-sys -1 -f floppy288.img
al@19805 90 su
al@19805 91 mount -o loop floppy288.img /mnt
al@19805 92 cp msdos.sys /mnt/
al@19805 93 cp io.sys /mnt/
al@19805 94 cp command.com /mnt/
al@19805 95 ```
al@19805 96
al@19805 97 (it might also be a good idea to add a config.sys and autoexec.bat with CDROM
al@19805 98 support)
al@19805 99
al@19805 100 ```
al@19805 101 umount /mnt
al@19805 102 exit
al@19805 103 cp floppy288.img cd-files/eltorito.img
al@19805 104 mkisofs -b eltorito.img -c eltorito.cat -o cdimage.iso cd-files
al@19805 105 ```
al@19805 106
al@19805 107 (burn the file cdimage.iso to a CD with cdrecord or another program)