View previous topic :: View next topic |
Author |
Message |
mrZ n00b
Joined: 23 Dec 2008 Posts: 33
|
Posted: Sun Mar 22, 2009 10:14 am Post subject: [SOLVED] Fsck on rootfs |
|
|
Hi
How to fsck a root partition?
I tried mount -o ro,remount /dev/sda6 but it doesn't work -> " mount: / busy".
Any hint?
Regards
mrZ
Last edited by mrZ on Wed Apr 01, 2009 4:40 pm; edited 1 time in total |
|
Back to top |
|
|
Dr.Willy Guru
Joined: 15 Jul 2007 Posts: 547 Location: NRW, Germany
|
Posted: Sun Mar 22, 2009 10:46 am Post subject: |
|
|
boot from livecd |
|
Back to top |
|
|
zyko l33t
Joined: 01 Jun 2008 Posts: 620 Location: Munich, Germany
|
Posted: Sun Mar 22, 2009 3:01 pm Post subject: |
|
|
If there is a file called "forcefsck" in your root directory, Gentoo's startup scripts will run a fsck on the root fs.
Code: | touch /forcefsck && reboot |
|
|
Back to top |
|
|
mrZ n00b
Joined: 23 Dec 2008 Posts: 33
|
Posted: Wed Mar 25, 2009 12:35 am Post subject: |
|
|
It doesn't work
The fsck started, but when it took 6% it stopped and said that I have to do it manually.
The problem is that I would prefer to do it without using LiveCD.. Do you have any ideas how to do it?
I tried to change the fstab and mtab but that didn't work either..
Regards
mrZ |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Mar 25, 2009 4:44 am Post subject: |
|
|
mrZ wrote: | ...The problem is that I would prefer to do it without using LiveCD. | The minimal install CD would work, too. The best (i.e., most correct) way to check a filesystem is with it unmounted. The best way to do that is to use an installation boot media of some sort. What's the reluctance?
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Wed Mar 25, 2009 11:19 am Post subject: |
|
|
If the system will boot at all, then "shutdown -r -F" should force a reboot and
full fsck, but if the filesystem is already garbley then it would be much better
to boot from another partition or a live CD.
Will |
|
Back to top |
|
|
mrZ n00b
Joined: 23 Dec 2008 Posts: 33
|
Posted: Sun Mar 29, 2009 10:01 am Post subject: |
|
|
I have solvet it without minimal CD check. I typed "I" on startup before the mounting started I run the fsck and it seems it worked.
I think I'm going to change a distro, I can't stand all of those problems on gentoo. For example I've updated my system recently and all of the configuration files were made default... and kdm stopped to work..
Regards
mrZ |
|
Back to top |
|
|
Gef Apprentice
Joined: 17 May 2008 Posts: 180 Location: France
|
Posted: Sun Mar 29, 2009 5:30 pm Post subject: |
|
|
Too bad to run away because of that. "etc-update" or "dispatch-conf" would have been your new friend in case of upgrades.
We all learn through errors. _________________ Laptop : Gentoo ~amd64
(remote) Server : Gentoo amd64 |
|
Back to top |
|
|
mrZ n00b
Joined: 23 Dec 2008 Posts: 33
|
Posted: Wed Apr 01, 2009 4:40 pm Post subject: |
|
|
That's true, we do.
Thanks for help.
Regards
mrZ |
|
Back to top |
|
|
|