/usr/share/doc/HOWTO/ja-html/Multi-Disk-HOWTO-33.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
<TITLE>HOWTO: Multi Disk System Tuning: $BIUO?(B M: $B%G%#%9%/%7%9%F%`5-=R%9%/%j%W%H(B</TITLE>
<LINK HREF="Multi-Disk-HOWTO-32.html" REL=previous>
<LINK HREF="Multi-Disk-HOWTO.html#toc33" REL=contents>
</HEAD>
<BODY>
$B<!$N%Z!<%8(B
<A HREF="Multi-Disk-HOWTO-32.html">$BA0$N%Z!<%8(B</A>
<A HREF="Multi-Disk-HOWTO.html#toc33">$BL\<!$X(B</A>
<HR>
<H2><A NAME="disk-documenter"></A> <A NAME="s33">33.</A> <A HREF="Multi-Disk-HOWTO.html#toc33">$BIUO?(B M: $B%G%#%9%/%7%9%F%`5-=R%9%/%j%W%H(B</A></H2>
<P>
<!--
disk!disk documenter
-->
</P>
<P>$B$3$N%7%'%k%9%/%j%W%H$O(B Steffen Hulegaard $B$,Ds6!$7$F$/$@$5$C$?$b$N$G$9!#(B
root ($B%9!<%Q!<%f!<%6!<(B) $B$G<B9T$9$k$H%G%#%9%/$N%;%C%H%"%C%W$N%5%^%j$r(B
$B@8@.$7$^$9!#@_7W$7$?FbMF$r<BAu$7$*$o$C$?$i$3$N%9%/%j%W%H$r<B9T$7!"(B
$B@_7W$HHf3S$7$F4V0c$$$,$J$$$+$r%A%'%C%/$9$k$H$$$$$G$7$g$&!#(B
$B$*;H$$$N%7%9%F%`$K>c32$,H/@8$7$?:]$K$b!"(B
$B$3$N%9%/%j%W%H$N7k2L$OI|5l$N=PH/E@$H$7$FLr$KN)$D$G$7$g$&!#(B</P>
<P>
<HR>
<PRE>
#!/bin/bash
#$Header:$
#
# makediskdoc Collects storage/disk info via df, mount,
# /etc/fstab and fdisk. Creates a single
# reference file -- /root/sysop/doc/README.diskdoc
# Especially good for documenting storage
# config/partioning
#
# 11/11/1999 SC Hulegaard Created just before RedHat 5.2 to
# RedHat 6.1 upgrade
# 12/31/1999 SC Hulegaard Added sfdisk -glx usage just prior to
# collapse of my Quantum Grand Prix (4.3 Gb)
#
# SEE ALSO Other /root/bin/make*doc commands to produce other /root/sysop/doc/README.*
# files. For example, /root/bin/makenetdoc.
#
FILE=/root/sysop/doc/README.diskdoc
echo Creating $FILE ...
echo ' ' > $FILE
echo $FILE >> $FILE
echo Produced By $0 >> $FILE
echo `date` >> $FILE
echo ' ' >> $FILE
echo $Header$ >> $FILE
echo ' ' >> $FILE
echo DESCRIPTION: df -a >> $FILE
df -a >> $FILE 2>&1
echo ' ' >> $FILE
echo DESCRIPTION: df -ia >> $FILE
df -ia >> $FILE 2>&1
echo ' ' >> $FILE
echo DESCRIPTION: mount >> $FILE
mount >> $FILE 2>&1
echo ' ' >> $FILE
echo DESCRIPTION: /etc/fstab >> $FILE
cat /etc/fstab >> $FILE
echo ' ' >> $FILE
echo DESCRIPTION: sfdisk -s disk device size summary >> $FILE
sfdisk -s >> $FILE
echo ' ' >> $FILE
echo DESCRIPTION: sfdisk -glx info for all disks listed in /etc/fstab >> $FILE
for x in `cat /etc/fstab | egrep /dev/[sh] | cut -c 0-8 | uniq`; do
echo ' ' >> $FILE
echo $x ============================= >> $FILE
sfdisk -glx $x >> $FILE
done
echo ' ' >> $FILE
echo DESCRIPTION: fdisk -l info for all disks listed in /etc/fstab >> $FILE
for x in `cat /etc/fstab | egrep /dev/[sh] | cut -c 0-8 | uniq`; do
echo ' ' >> $FILE
echo $x ============================= >> $FILE
fdisk -l $x >> $FILE
done
echo ' ' >> $FILE
echo DESCRIPTION: dmesg info on both sd and hd drives >> $FILE
dmesg | egrep [hs]d[a-z] >> $FILE
echo '' >> $FILE
echo Done >> $FILE
echo Done
exit
</PRE>
<HR>
</P>
<HR>
$B<!$N%Z!<%8(B
<A HREF="Multi-Disk-HOWTO-32.html">$BA0$N%Z!<%8(B</A>
<A HREF="Multi-Disk-HOWTO.html#toc33">$BL\<!$X(B</A>
</BODY>
</HTML>
|