"Fossies" - the Fresh Open Source Software Archive

Member "ms-sys-2.7.0/README" (20 Jun 2020, 4795 Bytes) of package /linux/privat/ms-sys-2.7.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 1. General
    2 ----------
    3 
    4 This program is used to create Microsoft compatible boot records. It is able
    5 to do the same as Microsoft "fdisk /mbr" to a hard disk. It is also able to
    6 do the same as Microsoft "sys d:" to a floppy or FAT partition except that
    7 it does not copy any system files, only the boot record is written.
    8 Specifications of boot records is taken from
    9 http://www.geocities.com/thestarman3/asm/mbr/MBR_in_detail.htm
   10 
   11 The program is useful when using Linux to restore a backup of a reference
   12 Microsoft Windows installation.
   13 
   14 Author of this program is Henrik Carlqvist (henca@users.SourceForge.net), it
   15 is available for download from http://ms-sys.sourceforge.net/
   16 
   17 2. Building from source
   18 -----------------------
   19 
   20 The program can be compiled from source on Linux, FreeBSD, OpenBSD and macOS/OS X
   21 by following the instructions below:
   22 
   23 Install the gettext package for native language support (PO/MO) files and the system
   24 specific command line development tools including make/gcc/clang etc.
   25 
   26 Linux:
   27 
   28 See the developer documentation for your distribution.
   29 
   30 macOS/OS X:
   31 
   32 gettext: use Homebrew or Macports package managers.
   33 Xcode CLI Development Tools: xcode-select --install
   34 
   35 FreeBSD:
   36 
   37 Install package manager and update repository: pkg update
   38 Search for and install GNU Make: pkg install gmake-[version]
   39 Search for and install gettext: pkg install gettext-tools-[version]
   40 
   41 OpenBSD:
   42 
   43 Search for and install GNU Make: pkg_add gmake
   44 Search for and install gettext: pkg_add gettext-tools-[version]
   45 
   46 3. Installation
   47 ---------------
   48 
   49 Step 1, unpack the archive:
   50 
   51 tar -xzvf ms-sys*.tgz
   52 
   53 Step 2, compile:
   54 
   55 cd ms-sys
   56 make
   57 
   58 Step 3, become root and install
   59 
   60 su (and give password)
   61 make install
   62 
   63 4. Examples
   64 -----------
   65 
   66 Please note that Windows ME is not useful for making standalone bootable
   67 floppies. However, Win9x and DOS works fine with example 1 and example 3.
   68 
   69 Example 1, creating a 1.68 MB bootable floppy:
   70 This example assumes that you have your windows installation mounted at /dosc
   71 and also have mtools and fdformat installed.
   72 
   73 fdformat /dev/fd0u1680
   74 mformat a:
   75 ms-sys -w /dev/fd0
   76 mcopy /dosc/io.sys a:
   77 mcopy /dosc/msdos.sys a:
   78 mcopy /dosc/command.com a:
   79 
   80 
   81 Example 2, restoring a backup to a fresh hard disk:
   82 
   83 Step 1, use GNU parted to create your FAT32 partition and file system:
   84 
   85 parted (then create partition and file system)
   86 
   87 Step 2, write the MBR:
   88 
   89 ms-sys -w /dev/hda
   90 
   91 Step 3, write the FAT32 partition boot record:
   92 
   93 ms-sys -w /dev/hda1
   94 
   95 Step 3b, write partition info and drive id to partition:
   96 
   97 ms-sys -p /dev/hda1
   98 
   99 This step might be needed depending on which program was used to format the
  100 partition. If the program was formatted with gnu parted this step could be
  101 skipped. It is also possible to combine this flag with the previous step
  102 like this: ms-sys -wp /dev/hda1
  103 
  104 Step 4, mount your new filesystem:
  105 
  106 mount /dev/hda1 /mnt
  107 
  108 Step 5, read your backup
  109 
  110 cd /mnt; tar -xzvf /path/to/my_windows_backup_file.tgz
  111 
  112 
  113 Example 3, creating a bootable 2.8 MB floppy image for use with an el-torito
  114 bootable CD:
  115 
  116 dd if=/dev/zero of=floppy288.img bs=1024 count=2880
  117 /sbin/mkdosfs floppy288.img
  118 ms-sys -1 -f floppy288.img
  119 su
  120 mount -o loop floppy288.img /mnt
  121 cp msdos.sys /mnt/
  122 cp io.sys /mnt/
  123 cp command.com /mnt/
  124 (it might also be a good idea to add a config.sys and autoexec.bat with
  125  CDROM support)
  126 umount /mnt
  127 exit
  128 cp floppy288.img cd-files/eltorito.img
  129 mkisofs -b eltorito.img -c eltorito.cat -o cdimage.iso cd-files
  130 (burn the file cdimage.iso to a CD with cdrecord or another program)
  131 
  132 5. Documentation
  133 ----------------
  134 
  135 There is a man-page for ms-sys, and you will get some help by typing:
  136 
  137 ms-sys --help
  138 
  139 6. Known problems
  140 -----------------
  141 
  142 There have been reports about unbootable FAT32 partitions created with
  143 "mformat -F c:". One workaround is to use gnu parted to create the
  144 partition instead. Since version 1.1.3 ms-sys has the switch -p which
  145 is supposed to fix this problem. The problem has also been reported on
  146 partitions formatted with mkdosfs and mkfs.vfat.
  147 
  148 There have been yet another problem reported about the -p switch and gnu
  149 parted together with Linux kernel 2.6. The problem is that kernel 2.6 might
  150 report a geometry incompatible with other operating systems. There is a
  151 detailed description of the problem at
  152 http://groups-beta.google.com/group/linux.kernel/msg/404d8683ce302cf2
  153 As a workaround for this ms-sys now has the switch -H to manually set the
  154 number of heads. The next problem is to find out what value for number of
  155 heads to give. If the system was booted by LILO this can be shown by
  156 "lilo -T geom".
  157 
  158 There have been reports about problems when compiling against uClibc. More
  159 problem reports or suggestions of fixes are welcome!
  160 
  161 Writing Windows 7 NTFS boot records with ms-sys is probably not useful if
  162 the intention is to get a bootable partition.