LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   grub: kernel parameter RO but filesystem still gets mounted rw (https://www.linuxquestions.org/questions/linux-general-1/grub-kernel-parameter-ro-but-filesystem-still-gets-mounted-rw-781911/)

browny_amiga 01-13-2010 05:08 AM

grub: kernel parameter RO but filesystem still gets mounted rw
 
Hi

I am trying to do a fsck on my ext3 partition, but so far failed to let the system come up in single user mode and having the partition mounted read only. It says in the kernel parameter that it is read only (RO) but still mounts it RW.

A remount with mount -o remount,ro
does not work, since / is always busy.

what to do to get a fsck done? I don't want to boot into a rescue system, this should be possible on a running system (like Windows does it, when rebooting)

This is on Debian Lenny.

Markus

neonsignal 01-13-2010 06:03 AM

You can force an fsck on the next boot by using tune2fs:
Code:

tune2fs -c 1 /dev/hda1
Alternatively, when you remount your partition as read/only, you need to do this from a recovery (maintenance) boot session, not from a normal boot (otherwise, it is always busy as you point out). Then you will be able to do an fsck from the maintenance session.


All times are GMT -5. The time now is 07:08 AM.