wok-next view ms-sys/stuff/man/ru/ms-sys.1 @ rev 20715

Up nsd (4.1.21)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun May 27 13:10:46 2018 +0300 (2018-05-27)
parents
children
line source
1 .\" Hey, EMACS: -*- nroff -*-
2 .\" First parameter, NAME, should be all caps
3 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
4 .\" other parameters are allowed: see man(7), man(1)
5 .TH MS-SYS 1 "26 декабря 2015"
6 .\" Please adjust this date whenever revising the manpage.
7 .\"
8 .\" Some roff macros, for reference:
9 .\" .nh disable hyphenation
10 .\" .hy enable hyphenation
11 .\" .ad l left justify
12 .\" .ad b justify to both left and right margins
13 .\" .nf disable filling
14 .\" .fi enable filling
15 .\" .br insert line break
16 .\" .sp <n> insert n+1 empty lines
17 .\" for manpage-specific macros, see man(7)
18 .SH НАЗВАНИЕ
19 ms-sys \- write Microsoft boot block
20 .SH СИНТАКСИС
21 .B ms-sys
22 .RI "[options] [device]"
23 .SH ОПИСАНИЕ
24 \fBms-sys\fP is for writing Microsoft compatible boot records.
25 .SH ПАРАМЕТРЫ
26 A summary of options is included below.
27 .TP
28 .B \-1, \-\-fat12
29 Write a FAT12 floppy boot record to device.
30 .TP
31 .B \-2, \-\-fat32nt
32 Write a FAT32 partition NT boot record to device.
33 .TP
34 .B \-e, \-\-fat32pe
35 Write a FAT32 partition PE boot record to device, for USB install and recovery.
36 .TP
37 .B \-3, \-\-fat32
38 Write a FAT32 partition DOS (Win9x) boot record to device.
39 .TP
40 .B \-4, \-\-fat32free
41 Write a FAT32 partition FreeDOS boot record to device.
42 .TP
43 .B \-5, \-\-fat16free
44 Write a FAT16 partition FreeDOS boot record to device.
45 .TP
46 .B \-6, \-\-fat16
47 Write a FAT16 partition DOS (Win9x) boot record to device.
48 .TP
49 .B \-n, \-\-ntfs
50 Write a NTFS partition Windows 7 boot record to device. This
51 functionality should be considered experimental and probably
52 is of no practical use.
53 .TP
54 .B \-o, \-\-fat16ros
55 Write a FAT16 partition ReactOS boot record to device.
56 .TP
57 .B \-c, \-\-fat32ros
58 Write a FAT32 partition ReactOS boot record to device.
59 .TP
60 .B \-q, \-\-fat32kos
61 Write a FAT32 partition KolibriOS boot record to device.
62 .TP
63 .B \-l, \-\-wipelabel
64 Reset partition disk label in boot record.
65 .TP
66 .B \-p, \-\-partition
67 Write partition info (hidden sectors, heads and drive id) to boot
68 record. This might be needed on some partitions depending on
69 which program was used to create the file system.
70 .TP
71 .B \-H <n>, \-\-heads <n>
72 Set number of heads written with -p switch.
73 .TP
74 .B \-O <s>, \-\-writeoem <s>
75 Write OEM ID string <s> to file system.
76 .TP
77 .B \-S <x>, \-\-writewds <x>
78 Write Windows Disk Signature hexadecimal <x> to MBR.
79 .TP
80 .B \-7, \-\-mbr7
81 Write a Windows 7 master boot record to device.
82 Does not change Windows Disk Signature (bytes 01b8-01bd).
83 This MBR will boot certain partition types beyond cylinder
84 1024 using LBA addressing.
85 .TP
86 .B \-i, \-\-mbrvista
87 Write a Windows Vista master boot record to device.
88 Does not change Windows Disk Signature (bytes 01b8-01bd).
89 This MBR will boot certain partition types beyond cylinder
90 1024 using LBA addressing.
91 .TP
92 .B \-m, \-\-mbr
93 Write a Windows 2000/XP/2003 master boot record to device.
94 Does not change Windows Disk Signature (bytes 01b8-01bd).
95 This MBR will boot certain partition types beyond cylinder
96 1024 using LBA addressing.
97 .TP
98 .B \-9, \-\-mbr95b
99 Write a Windows 95B/98/98SE/ME master boot record to device.
100 Does not change Windows Disk Signature (bytes 01b8-01bd) or
101 boot drive and time (bytes 00da-00df).
102 This MBR will boot FAT-LBA partition types 0c and 0e beyond cylinder
103 1024 using LBA addressing.
104 .TP
105 .B \-d, \-\-mbrdos
106 Write a DOS/Windows NT master boot record to device.
107 Does not change Windows Disk Signature (bytes 01b8-01bd).
108 This MBR will not boot beyond cylinder 1024 as it does not support
109 LBA addressing.
110 .TP
111 .B \-s, \-\-mbrsyslinux
112 Write a syslinux master boot record to device.
113 Does not change Windows Disk Signature (bytes 01b8-01bd).
114 This MBR will boot any partition types beyond cylinder
115 1024 using LBA addressing.
116 .TP
117 .B \-t, \-\-mbrgptsyslinux
118 Write a GPL syslinux GPT MBR to device.
119 This MBR will boot from a GPT partition table.
120 .TP
121 .B \-a, \-\-mbrreactos
122 Write a ReactOS MBR to device.
123 .TP
124 .B \-k, \-\-mbrkolibrios
125 Write a KolibriOS MBR to device.
126 .TP
127 .B \-r, \-\-mbrrufus
128 Write a Rufus MBR to device.
129 .TP
130 .B \-g, \-\-mbrgrub4dos
131 Write a Grub4Dos MBR to device.
132 .TP
133 .B \-b, \-\-mbrgrub2
134 Write a Grub 2 MBR to device.
135 .TP
136 .B \-z, \-\-mbrzero
137 Write an empty (zeroed, non-bootable) master boot record to device.
138 Zeroes all bytes except the partition map and signature id (bytes 01be-01ff).
139 Similar to the empty DOS partition table that fdisk creates.
140 .TP
141 .B \-f, \-\-force
142 Force writing of boot record.
143 .TP
144 .B \-h, \-\-help
145 Show summary of options.
146 .TP
147 .B \-v, \-\-version
148 Show program version.
149 .TP
150 .B \-w, \-\-write
151 Write automatically selected boot record to device.
152 .P
153 If ms-sys is started without any options a simple diagnosis will be done on
154 the given device.
155 .br
156 .SH ПРИМЕРЫ
157 .P
158 Please note that Windows ME is not useful for making standalone bootable
159 floppies. However, Win9x and DOS works fine with the first two examples.
160 .P
161 .B Creating a 1.68 MB bootable floppy
162 .TP
163 This example assumes that you have your windows installation mounted at /dosc and also have mtools and fdformat installed.
164 .P
165 fdformat /dev/fd0u1680
166 .br
167 mformat a:
168 .br
169 ms-sys -w /dev/fd0
170 .br
171 mcopy /dosc/io.sys a:
172 .br
173 mcopy /dosc/msdos.sys a:
174 .br
175 mcopy /dosc/command.com a:
176 .P
177 .B Creating a bootable 2.8 MB floppy image to use with an el-torito bootable CD
178 .P
179 dd if=/dev/zero of=floppy288.img bs=1024 count=2880
180 .br
181 /sbin/mkdosfs floppy288.img
182 .br
183 ms-sys -1 -f floppy288.img
184 .br
185 su
186 .br
187 mount -o loop floppy288.img /mnt
188 .br
189 cp msdos.sys /mnt/
190 .br
191 cp io.sys /mnt/
192 .br
193 cp command.com /mnt/
194 .br
195 (it might also be a good idea to add a config.sys and autoexec.bat with CDROM support)
196 .br
197 umount /mnt
198 .br
199 exit
200 .br
201 cp floppy288.img cd-files/boot.img
202 .br
203 mkisofs -b boot.img -c boot.cat -o cdimage.iso cd\-files
204 .br
205 (burn the file cdimage.iso to a CD with cdrecord or another program)
206 .P
207 .B restoring a backup of Win9x or Win ME to a fresh hard disk
208 .P
209 Step 1, use GNU parted to create your FAT32 partition and file system:
210 .P
211 parted (then create partition and file system)
212 .P
213 Step 2, write the MBR:
214 .P
215 ms-sys -w /dev/hda
216 .P
217 Step 3, write the FAT32 partition boot record:
218 .P
219 ms-sys -w /dev/hda1
220 .P
221 Step 4, mount your new filesystem:
222 .P
223 mount /dev/hda1 /mnt
224 .P
225 Step 5, read your backup
226 .P
227 cd /mnt; tar -xzvf /path/to/my_windows_backup_file.tgz
228 .br
229 .SH ОКРУЖЕНИЕ
230 The variables LANG and LC_ALL have the usual meaning, however there are not
231 many translations available.
232 .br
233 .SH БАГИ
234 There have been reports about unbootable FAT32 partitions created with
235 "mformat -F c:". The problem has also been reported on partitions
236 formatted with mkdosfs and mkfs.vfat. One workaround is to use gnu parted
237 to create the partition instead. Since version 1.1.3 ms-sys has the switch
238 \-p which is supposed to fix this problem. Unfortunately, when using ms-sys
239 with Linux kernel 2.6 nor the \-p switch or gnu parted might work. A simple
240 workaround is to use ms-sys with Linux kernel 2.4. Another possible workaround
241 is to manually set the number of heads with the switch -H. If the system has
242 been booted by LILO, the correct number of heads can be given by "lilo -T geom".
243 .P
244 The writing of NTFS partition boot records in ms-sys probably has no practical use.
245 For Windows 7 it has been reported that doing "sysprep" before making an image of
246 an NTFS partition will make the partition restored from the image bootable.
247 .SH АВТОР
248 This manual page was originally written by G\[:u]rkan Seng\[:u]n and since
249 edited by Henrik Carlqvist. The program ms-sys is mostly written by
250 Henrik Carlqvist, the file CONTRIBUTORS in the source archive contains a
251 complete list of contributors.
252 .SH СМ. ТАКЖЕ
253 mformat(1) fdformat(8) mkdosfs(8) mkisofs(8) parted(8)