You never, never, never, never, never (Fedora web server) want to
Friday, November 9th, 2007You never, never, never, never, never want to run the command I mabout to use on a partition you re using or you will mess it up badly! 7.Type df -hagain to make sure that this partition is no longer listed. In the example, you should now see: Filesystem Size Used Avail Use% Mounted on/dev/hde2 54G 27G 24G 54% / none 506M 0 506M 0% /dev/shm/dev/hdf3 54G 39G 13G 76% /mnt/FC1See, no /boot partition! 8.What you type now depends on what type setting /boot had: ext2 or ext3:Type e2fsck -fy partition, such as e2fsck -fy/dev/hde1 reiserfs:Type reiserfsck –fix-fixable partition, such as reiserfsck –fix-fixable /dev/hde1, and if this gives you more errors, follow with reiserfsck –rebuild-tree partition, such as reiserfsck rebuild-tree /dev/hde19.Type exitand let the machine try to reboot. If the machine can reboot, you re done, yay! If not, return to Step 6 andrun through the process again. Sometimes, you actually need to try the fix more than once. If you reboot again at the end and it still fails, proceed. 10.Repeat Steps 1 and 4, but this time look for the lines that correspondto the / directory. In my example, /is mounted from /dev/hde2and is formatted usingext3. Unfortunately, you can t remove the / filesystem since it s got all ofyour commands! But, there is still a safe way to do this. 11.Type mount -o remount,ro /. This command releases the root (/) partition and then adds it again, butthis time as read-only so things won t be changing as you re working onit. That makes what you re about to do safe. 12.Repeat Step 8 for the / partition. So, for my example, the / partition is /dev/hde2, so you d be startingwith ext2fsck -fy /dev/hde2or reiserfsck –fix-fixable/dev/hde213.Repeat Step 9. Again, if it fails to reboot, repeat Steps 10 through 12 to see whether thatfixes things. Unfortunately, at this point, if the problem still occurs, it could be many, many things. Now is a good time to go to your local Linux Users Group (seeChapter 4) or online help site. 231Chapter 11: Checking Out the Linux Filesystem17_