wok-next diff ms-sys/description.txt @ rev 21705
updated graphviz (2.40.1 -> 2.44.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 06 14:36:48 2020 +0100 (2020-07-06) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ms-sys/description.txt Mon Jul 06 14:36:48 2020 +0100 1.3 @@ -0,0 +1,107 @@ 1.4 +This program is used to create Microsoft compatible boot records. It is able to 1.5 +do the same as Microsoft "`fdisk /mbr`" to a hard disk. It is also able to do 1.6 +the same as Microsoft "`sys d:`" to a floppy or FAT partition except that it 1.7 +does not copy any system files, only the boot record is written. 1.8 + 1.9 +Specifications of boot records is taken from 1.10 +http://www.geocities.com/thestarman3/asm/mbr/MBR_in_detail.htm 1.11 + 1.12 +The program is useful when using Linux to restore a backup of a reference 1.13 +Microsoft Windows installation. 1.14 + 1.15 +Author of this program is Henrik Carlqvist <henca@users.SourceForge.net>, it 1.16 +is available for download from http://ms-sys.sourceforge.net/ 1.17 + 1.18 +## Examples 1.19 + 1.20 +Please note that Windows ME is not useful for making standalone bootable 1.21 +floppies. However, Win9x and DOS works fine with example 1 and example 3. 1.22 + 1.23 +### Example 1, creating a 1.68 MB bootable floppy: 1.24 + 1.25 +This example assumes that you have your windows installation mounted at /dosc 1.26 +and also have mtools and fdformat installed. 1.27 + 1.28 +``` 1.29 +fdformat /dev/fd0u1680 1.30 +mformat a: 1.31 +ms-sys -w /dev/fd0 1.32 +mcopy /dosc/io.sys a: 1.33 +mcopy /dosc/msdos.sys a: 1.34 +mcopy /dosc/command.com a: 1.35 +``` 1.36 + 1.37 +### Example 2, restoring a backup to a fresh hard disk: 1.38 + 1.39 + * Step 1, use GNU parted to create your FAT32 partition and file system: 1.40 + 1.41 + ``` 1.42 + parted 1.43 + ``` 1.44 + 1.45 + (then create partition and file system) 1.46 + 1.47 + * Step 2, write the MBR: 1.48 + 1.49 + ``` 1.50 + ms-sys -w /dev/hda 1.51 + ``` 1.52 + 1.53 + * Step 3, write the FAT32 partition boot record: 1.54 + 1.55 + ``` 1.56 + ms-sys -w /dev/hda1 1.57 + ``` 1.58 + 1.59 + * Step 3b, write partition info and drive id to partition: 1.60 + 1.61 + ``` 1.62 + ms-sys -p /dev/hda1 1.63 + ``` 1.64 + 1.65 + This step might be needed depending on which program was used to format the 1.66 + partition. If the program was formatted with gnu parted this step could be 1.67 + skipped. It is also possible to combine this flag with the previous step 1.68 + like this: 1.69 + 1.70 + ``` 1.71 + ms-sys -wp /dev/hda1 1.72 + ``` 1.73 + 1.74 + * Step 4, mount your new filesystem: 1.75 + 1.76 + ``` 1.77 + mount /dev/hda1 /mnt 1.78 + ``` 1.79 + 1.80 + * Step 5, read your backup 1.81 + 1.82 + ``` 1.83 + cd /mnt; tar -xzvf /path/to/my_windows_backup_file.tgz 1.84 + ``` 1.85 + 1.86 + 1.87 +### Example 3, creating a bootable 2.8 MB floppy image for use with an el-torito bootable CD: 1.88 + 1.89 +``` 1.90 +dd if=/dev/zero of=floppy288.img bs=1024 count=2880 1.91 +/sbin/mkdosfs floppy288.img 1.92 +ms-sys -1 -f floppy288.img 1.93 +su 1.94 +mount -o loop floppy288.img /mnt 1.95 +cp msdos.sys /mnt/ 1.96 +cp io.sys /mnt/ 1.97 +cp command.com /mnt/ 1.98 +``` 1.99 + 1.100 +(it might also be a good idea to add a config.sys and autoexec.bat with CDROM 1.101 +support) 1.102 + 1.103 +``` 1.104 +umount /mnt 1.105 +exit 1.106 +cp floppy288.img cd-files/eltorito.img 1.107 +mkisofs -b eltorito.img -c eltorito.cat -o cdimage.iso cd-files 1.108 +``` 1.109 + 1.110 +(burn the file cdimage.iso to a CD with cdrecord or another program)