Re: fsck and Bdi



Hello George,

The command should be

fsck /dev/hda2

Notice space between the command and the parameter. "fsck" is short
for File System ChecK, it's quite same as scandisk in M$ world. It's generally
good idea to check all filesystems after crash. You can do that by
checking what filesystem you have and them checking them all. First check
what you have by "cat /etc/fstab":

[henkka-at-kilpikonna henkka]$ cat /etc/fstab
/dev/hda1               /                       ext2    defaults 1 1
/dev/hdg5               /varmistus              ext2    defaults 1 2
/dev/hdg6               /home                   ext2    defaults 1 2
/dev/hda5               /usr                    ext2    defaults 1 2
...
...

We are looking for entrys where 3rd item is "ext2" (filesystem type)
and we should check them all by issuing fsck to them one by one. In my
example, commands would be like this:

fsck /dev/hda1 [enter]
fsck /dev/hdg5 [enter]
fsck /dev/hdg6 [enter]
...
...

Replace those with your own partitions.

You will be asked if you want to repair/fix the filesystem. You can
almost allways answer "Y". The "fsck -a /dev/hda2" command would
answer "Y" automatically, but it's not recommended in this situation
as there could be some filesystem damage that is better to leave unrepaired.

After you have run all the "fsck" commands, issue "reboot [enter]"
command for rebooting your machine

Best CNC regards,

Henkka

* George & Linda (lbrandau-at-intrnet.net) [12.08.2001 09:39]:
> ...
> without -a or-p options. I then put the password in for the maintenance
> mode. If I type fsck I get parallelizing fsck version
> 1.14[root-at-localhost/root]#. If I type fsck/dev/hda2 I get bash!
> fsck/dev/hda2 no such file or directory. Being a Linux dummy I am lost. What
> do I do to fix this? When Linux locks up is there anyway to unlock it
> ...



Date Index | Thread Index | Back to archive index | Back to Mailing List Page

Problems or questions? Contact