ozar now the problem i encounter is filesystem check failed. I'll get u all the possible information regarding it.
Code:
$df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda8 27G 565M 25G 3% /
none 252M 0 252M 0% /dev/shm
Code:
$fdisk -l /dev/hda
Disk /dev/hda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x340b340a
Device Boot Start End Blocks Id System
/dev/hda1 1 1275 10241406 7 HPFS/NTFS
/dev/hda2 * 1276 1300 200812+ 83 Linux
/dev/hda3 1301 9733 67738072+ f W95 Ext'd (LBA)
/dev/hda5 1301 2575 10241406 7 HPFS/NTFS
/dev/hda6 2576 3791 9767488+ 83 Linux
/dev/hda7 3792 6223 19535008+ 83 Linux
/dev/hda8 6224 9733 28194043+ 83 Linux
Code:
$cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 ro,user,noauto,unhide 0 0
/dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
/dev/fd0 /mnt/fd0 vfat user,noauto 0 0
/dev/sda8 / ext3 defaults 0 1
Now the error which i'm during boot is,
Code:
Checking Filesystems
/dev/sda8:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is calid 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>
****************FileSystem Check Failed*****************
Please repair manually and reboot. Note that the root
filesystem is currently mounted read-only. to remount
it read-write type: mount -n -o remount,rw /
when you exit the maintenance shell the system will
reboot automatically.
*************************************************************
then i altered the /etc/fstab,
Code:
$cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 ro,user,noauto,unhide 0 0
/dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
/dev/fd0 /mnt/fd0 vfat user,noauto 0 0
/dev/sda8 / ext3 defaults 0 0
I rebooted and then it gave me the login prompt without any error.
Now i want to know whether i have handled this problem in a good way or is my solution is not the better one.