Debian Codegraph @

README

raw
1
2 Usage Boot Info Script:
3 -----------------------
4
5 Run the script as sudoer:
6
7 sudo ./bootinfoscript <outputfile>
8
9 or if your operating system does not use sudo:
10
11 su -
12 ./bootinfoscript <outputfile>
13
14
15 When running the script, without specifying an output file, all the output
16 is written to the file "RESULTS.txt" in the same folder as the script.
17
18 But when run from /bin, /sbin, /usr/bin, or another system folder, the file
19 "RESULTS.txt" is written to the home directory of the user.
20
21 When the file "RESULTS.txt" already exists, the results will be written to
22 "RESULTS1.txt". If "RESULTS1.txt" exists, the results will be written to
23 "RESULTS2.txt", ...
24
25
26 To get version number, release date, last git commit and git retrieval date
27 of this script, use (no root rights needed):
28
29 ./bootinfoscript -v
30 ./bootinfoscript -V
31 ./bootinfoscript --version
32
33
34 To get this help text, use (no root rights needed):
35
36 ./bootinfoscript -h
37 ./bootinfoscript -help
38 ./bootinfoscript --help
39
40
41 To automatically gzip a copy of the output file, use (root rights needed):
42
43 ./bootinfoscript -g <outputfile>
44 ./bootinfoscript --gzip <outputfile>
45
46
47 To write the output to stdout instead of a file, use (root rights needed):
48
49 ./bootinfoscript --stdout
50
51
52 The last development version of Boot Info Script can be downloaded, with:
53 (no root rights needed)
54
55 ./bootinfoscript --update <filename>
56
57 If no filename is specified, the file will be saved in the home dir as
58 "bootinfoscript_YYYY-MM-DD_hh:mm:ss".
59
60
61
62 Features:
63 ---------
64
65 * Look at each MBR and identify its boot loader:
66 - For GRUB and SuperGRUB: display the controlling partition.
67 - For GRUB2: display the disk offset of the core.img as recorded in
68 the boot sector. Parse core.img and display embedded
69 modules, prefix and config script.
70 - For Syslinux altmbr: display embedded boot partition number.
71 - If the MBR is unknown, display the whole MBR.
72
73 * Look at all partitions:
74 - Determine their type.
75 - Identify their boot sectors.
76 ° For GRUB: display the controlling partition and the offset of the
77 stage2 file as recorded in the boot sector.
78 ° For GRUB2: display the disk offset of the core.img as recorded in
79 the boot sector. Parse core.img and display embedded
80 modules, prefix and config script.
81 ° For Syslinux: display the full version name, check if internal
82 checksum matches, display installation directory,
83 display offset of the ldlinux.sys file.
84 ° For NTFS and FAT: examine the Boot Parameter Block for errors.
85 - Identify the operating system installed on that partition.
86 - List boot programs.
87 - Display the partition table.
88 - Display the output of "blkid".
89 - Look in "/" and "NST" for bootpart codes and display the offset and boot
90 drive, it is trying to chainload.
91 - Look on "/" and "/NST" for stage1 files and display the offset and boot
92 drive of the stage 2 files it is trying to chainload.
93 - Display boot configuration files.
94 - Is able to search LVM partitions if the LVM2 package is installed
95 ("apt-get install lvm2" in debian based distros).
96 - Is able to search Linux Software RAID partitions (MD RAIDs) if the "mdadm"
97 package is installed.
98 - If dmraid is installed, search all RAID drives, detected by dmraid.
99