LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need help using e2fsck (corrupt root inode) (https://www.linuxquestions.org/questions/linux-software-2/need-help-using-e2fsck-corrupt-root-inode-460074/)

bamsesbilledbog 07-01-2006 01:43 PM

Need help using e2fsck (corrupt root inode)
 
I have a problem mounting an external USB HDD. Running gnome-volume-manager gives

Code:

manager.c/1250: mount_all: mounting /dev/sda1
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
      missing codepage or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

manager.c/1250: mount_all: mounting /dev/hda1
manager.c/659: /org/freedesktop/Hal/devices/block_3_1 already mounted, not mounting again
manager.c/1250: mount_all: mounting /dev/hda2
Error: device /dev/hda2 is not removable
manager.c/1250: mount_all: mounting /dev/hda5
Warning: device /dev/hda5 is already handled by /etc/fstab, supplied label is ignored
mount: according to mtab, none is already mounted on none
mount failed

So checking dmesg | tail gives

Code:

  Vendor: Maxtor 6  Model: L608MD9G          Rev: BANC
  Type:  Direct-Access                      ANSI SCSI revision: 02
usb-storage: device scan complete
SCSI device sda: 586114704 512-byte hdwr sectors (300091 MB)
sda: assuming drive cache: write through
SCSI device sda: 586114704 512-byte hdwr sectors (300091 MB)
sda: assuming drive cache: write through
 /dev/scsi/host0/bus0/target0/lun0: p1
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
EXT2-fs: corrupt root inode, run e2fsck

So apparantly it is a corrupt root inode and e2fsck can correct this. Since it is a full 250 GB HDD I want to ruin anything unintentionally. So, please if anyone know how to do this correct, please help me out.

WhatsHisName 07-03-2006 01:26 AM

Is sda1 supposed to contain an ext3 filesystem?

If yes and assuming that sda1 isn’t mounted, then run e2fsck on the indicated partition.
Code:

# e2fsck -v /dev/sda1


All times are GMT -5. The time now is 02:59 PM.