Index of /dns323/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

To use these files, you need telnet access. 

For, you also need the bash shell. If you cannot install
bash, you can try instead of

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 .

This will create the 'fsck' directory and download all required files.

If you want to upgrade, use:

  telnet bob
  cd /ffp
  rsync -av --delete .

This will download new or updated, and delete obsolete files.

== Booting ==

  telnet bob
  cd /ffp/fsck                          (or /mnt/HD_a2/fsck)

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 will be booted (check with 'uname -r'). 
More recent kernels are also available. To boot them, pass a
zImage file to, e.g.
  ./ zImage-
Note that 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

== 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:

For Parted documentation, see

== Rebooting ==

When done, run: