LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to run FSCK in boot up (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-run-fsck-in-boot-up-572233/)

mokku 07-25-2007 03:07 PM

how to run FSCK in boot up
 
Hi,

I am running and there is a problem with filesystem and i need to bootup with FSCK test. How can I do it?

thanks

jailbait 07-25-2007 03:12 PM

"I am running and there is a problem with filesystem and i need to bootup with FSCK test. How can I do it?"

I recommend that you boot a live CD and run fsck from the live CD system.

-------------------
Steve Stites

mokku 07-25-2007 03:18 PM

It is centos box and doesn't have live CD. Do I just need to boot up with CD and run fdisk from there?

reddazz 07-25-2007 03:28 PM

You can boot into runlevel 1. You do this by pressing "e" when you see the GRUB screen. Navigate to the kernel section using the arrow keys and press "e" again. At the end of that line, add a space and the number 1. After that press "b" to boot the system into runlevel 1. Once you are in runlevel 1, you can fsck.

An alternative would be to boot from the first installation disc (or the dvd) and get into rescue mode. More information is available here.

mokku 07-25-2007 04:03 PM

Thank you for your reply. I have booted it up with bootup CD#1, and then when I click on "continue", it just stats there and showing the following message.

searching for centos-4 i386 installations ...................

Do you think CD is corrupted?

mokku 07-25-2007 05:16 PM

Hi,

Thanks for the explanation, how does last line needs to look like?

some thing like this:

initrd /boot/initrd-xxxxx.img 1

Is this correct ?

reddazz 07-25-2007 09:09 PM

Not the initrd section, the kernel section. Its the line that looks like
Code:

kernel /boot/vmlinuz ro root=LABEL=/ rhgb quiet


All times are GMT -5. The time now is 01:53 PM.