Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

VanLUG Email Archive

Re: Odd error


Thu, 13 Aug 1998 17:40:56 -0700 (PDT)

> I'm a newbie to linux sysadmin, how do I do an HD check under linux? I
> think it's ext2, whatever Slackware defaultly installs.

$ e2fsck -c -f -p /dev/hda1

should do it. Note that you should have /dev/hda1 unmounted and run this from
another partition. It can get tricky if this is your only partition, then you
can do it by booting up in single user mode while the partition is read-only
and doing it from there (note: the -p will automatically repair whatever
problems it finds - this can be dangerous but unless you learn *a lot* about
fsck it is still less dangerous than trying to manually do it).

> I rebooted and it seems to have cleared itself up. So how did you know
> 03:01 was /dev/hda1? Is there someplace to check for that, or is it just
> something you've picked up?

Usually kernel messages with NN:nn type indication refer to the major (NN) and
minor (nn) numbers of a device. To find out what major/minor numbers mean you
can do various things:
(a) "ls -l /dev" will usually give you a pretty complete listing. This will
give you output in the format:
brw-rw---- 1 root disk 3, 1 Sep 7 1994 /dev/hda1
which indicates this is a block-device (the initial b) major 3, minor 1
(b) If you look in the linux kernel source tree, you'll find a pretty
descriptive list under Documentation/devices.txt

Christian.