Index of /dns323/fsck/
FSCK
Using the files in this directory, you can boot into a small custom
Linux to perform manual filesystem checks. The fsck image includes
e2fsprogs - ext2 filesystem utilities
GNU Parted - an industrial-strength package for creating,
destroying, resizing, checking and copying partitions,
and the file systems on them.
(For the 2007 version of fsck, see http://inreto.de/dns323/fsck.2007/)
To use these files, you need telnet access.
For reload.sh, you also need the bash shell. If you cannot install
bash, you can try no-bash-reload.sh instead of reload.sh.
WARNING: The fsck image does not include a fan controller!
You can set fan speed manually, e.g.:
echo 150 >/sys/class/i2c-adapter/i2c-0/0-003e/pwm1
and read current speed with:
cat /sys/class/i2c-adapter/i2c-0/0-003e/fan1_input
(100 in pwm1 = 3150 rpm, 150 in pwm1 = 4650 rpm)
You can read the current temperature with:
cat /sys/class/i2c-adapter/i2c-0/0-0048/temp1_input
== Installation ==
telnet bob
cd /ffp (or /mnt/HD_a2)
rsync -av inreto.de::dns323/fsck .
This will create the 'fsck' directory and download all required files.
If you want to upgrade, use:
telnet bob
cd /ffp
rsync -av --delete inreto.de::dns323/fsck .
This will download new or updated, and delete obsolete files.
== Booting ==
telnet bob
cd /ffp/fsck (or /mnt/HD_a2/fsck)
./reload.sh
This will stop all processes and initiate a reboot. Your telnet
session is aborted, too. You should be able establish a new telnet
session after 10-20 seconds.
telnet bob
Login as 'root', there's no password.
By default, Linux 2.6.12.6 will be booted (check with 'uname -r').
More recent kernels are also available. To boot them, pass a
zImage file to reload.sh, e.g.
./reload.sh zImage-2.6.25.1
Note that 2.6.25.1 and 2.6_orion will not work on CH3SNAS.
After boot, run 'free' to verify that swap has been correctly
enabled. Look at the 'swap' line. The 'total' column must be
non-zero. This is essential, e2fsck will fail without sufficient swap
space.
== Checking filesystems ==
If you have configured 'two separate disks', you can now check
filesystems with:
e2fsck /dev/sda2
e2fsck /dev/sdb2
If you are using RAID, set it up before checking the filesystem:
mdadm -A /dev/md0 /dev/sd[ab]2
e2fsck /dev/md0
e2fsck may take some time, and ask for lost+found:
/lost+found not found. Create<y>?
Just press Enter. Answering 'n' is ok as well, but e2fsck will tell
you that your 'Filesystem still has errors' at the end.
Manual pages for e2fsck can be found at:
http://linux.die.net/man/8/e2fsck
For Parted documentation, see
http://www.gnu.org/software/parted/
== Rebooting ==
When done, run:
reboot