Skip navigation.
Home
Now Shipping Version 7.0

How do you boot to fsck root


Posts: 40

I notice on boot fsck tries to check the / partition and says it cant because it's mounted. Can someone give me a line fore grub to boot into ram to run fsck once in a while for maintaince?
Alvin

Jon Du Quesne's picture

Use The Live CD

Alvin, one of the nice things about having Live CD versions of Linux is that you can use them for diagnostic purposes. So if your root partition is formatted with ext2 or 3, it will do the check automatically occasionally. However, if you want to do it manually, simply reboot your system with the Live CD. The /etc/fstab file created (in RAM) will contain all the info on each of your partitions. Then you can simply open a konsole, "su" to root, and do "fsck /dev/hdax" where "x" is the partition number.

Jon

use init=/bin/sh at boot

When you get the boot screen showing the boot options
change or add init parameter to init=/bin/sh

You will get a sh prompt after Linux boots. Run fsck /dev/hda1 and then reboot.

Hope this helps .. arbus

This problem was fixed with

This problem was fixed with Mepis 6 Beta 4, I believe. I know it's not there with Beta 5.

huh?

I tried that it hda 1 was clean it said the same thing for hda 3 but when i run repair tool on the main program it tells me both hda's have errors but konsole and the repair tool on the cd says they are clean any ideas?

drlizau's picture

repair tool?

could you just give a little more info?
with the liveCD
open a console and change to root
fsck /dev/hda1
and after that finishes
fsck /dev/hda3

if there are any errors from that, let us know

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.