I cannot do fsck. Why is that? Repairing Linux ext2 or ext3 file system
I found this great tutorial on repairing my ext3 file system.
http://www.cyberciti.biz/tips/repair...le-system.html The only problem is I don't know while file system I should unmount? [root@localhost ~]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hdc2 152696708 1433536 143506592 1% / /dev/hdc1 101086 11291 84576 12% /boot none 387788 0 387788 0% /dev/shm |
Type the command ' /bin/mount ' and see the filesystems each mount has. Then of course the partition to be fixed needs to be unmonted. From the looks if /dev/hdc2 requires fixing then you will need to boot with a bootable linux floppy, live cd, or live usb with fsck tools on it.
Brian |
Quote:
so I can never run a fix on the / without the live cd? While I can always run a fix on /boot without the cd? |
If you reboot with "shutdown -F -r now" the -F forces a fsck on the bootup.
EDIT: btw, if your / line in /etc/fstab ends with a "1" as in: "/dev/hdb1 / ext3 defaults,errors=remount-ro 0 1" fsck runs automagically on that partition every n mounts, usually 30. You can adjust the amount with tune2fs, see "man tune2fs" for information. |
I need to read my man pages more often. Never knew that option for shutdown. Thanks for the info.
Brian |
No problem, and from the shutdown man page:
Quote:
Code:
touch /forcefsck |
All times are GMT -5. The time now is 02:53 AM. |