e2fsck problem/interpretation



Hi group,

I have three problems relating to using e2fsck (which I haven't used
before).

The first is an easy one. How do I run e2fsck on the drive with the OS
on? Ive been told not to do it to a mounted file system (thank you
Jerry) so how do I scan the drive (which is sda, see later in this
post) whilst its running/mounted (which it obviously must be in order
to boot).

The second and third problems are related to the results of running
e2fsck (with the -n switch) on two other drives. I am getting
differing results from both so was wondering if I could get some
assistance interpreting what is going on.

Firstly I confirmed which drives where which by checking /proc/
partitions.

/proc/partitions :-

major minor #blocks name

8 0 39082680 sda
8 1 200781 sda1
8 2 38877300 sda2
8 16 244198584 sdb
8 17 244196001 sdb1
8 32 33027624 sdc
8 33 104391 sdc1
8 34 39013852 sdc2
253 0 38305792 dm-0
253 1 524288 dm-1

So if I read that correctly my boot drive (40gb) is on sda. There is a
250gb drive on sdb with all the space on partition sdb1 and sdc is a
40gb with the space allocated to sdc2.

Heres the results of running e2fsck on those two partitions with the
space.

sdb
****
# e2fsck -n /dev/sdb1
e2fsck 1.40.2 (12-Jul-2007)
/dev/sdb1 has been mounted 102 times without being checked, check
forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found. Create? no

Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/sdb1: ********** WARNING: Filesystem still has errors **********

/dev/sdb1: 39866/30539776 files (7.5% non-contiguous),
35343576/61049000 blocks

sdc
****
# e2fsck -n /dev/sdc2
e2fsck 1.40.2 (12-Jul-2007)
Couldn't find ext2 superblock, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sdc2

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the
superblock
is corrupt, and you might try running e2fsck with an alternate
superblock:
e2fsck -b 8193 <device>


What do these results mean and how do I fix the apparent problems?
Thanks for any assistance/help

Tam
.



Relevant Pages

  • Re: hard drive disappeared with 8.10 upgrade
    ... I have a box with 2 hard drives, a 400G PATA and a 250G SATA. ... unable to read superblock kjournald starting. ... checktime reached, running e2fsck is recommended ...
    (Ubuntu)
  • e2fsck vs sata_sil & 400GB drive
    ... pauses have been part of an e2fsck session since drives went above 40GB IIRC. ... I was forced to reboot to a rescue disk and edit /etc/fstab to remove that drive ... reach for the windows install disks, never again to touch linux with a 20 foot ...
    (Linux-Kernel)
  • Re: e2fsck problem/interpretation
    ... I have three problems relating to using e2fsck (which I haven't used ... How do I run e2fsck on the drive with the OS ... Ive been told not to do it to a mounted file system (thank you ... e2fsck on two other drives. ...
    (comp.os.linux.hardware)
  • Re: PLEASE HELP! LOST ALL DATA ON EXTERNAL DRIVE
    ... > You apply mkfs to a partition. ... Now we are at the present time, I have 2 identical Western Digital Drives in ... Couldn't find ext2 superblock, trying backup blocks... ...
    (comp.os.linux.misc)
  • Raid 5 Issues
    ... is showing one of my drives does not have a raid partition on it. ... no recogniseable superblock on /dev/sdb1 ... Device Boot Start End #cyls #blocks Id System ...
    (Ubuntu)