10eed
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
If i run fsck on one filesystem and fsck need to repair some things then this partition must be unmounted
correct ? So running fsck on root file system isn't possible within same OS ? correct ? What is the best way to do that, live cd ? BR, Jurif
__________________
If anything can go wrong, it will. If it can't, it will anyway |
|
#2
|
||||
|
||||
|
boot into single user mode, root will be mounted read only, then run fsck , and you will be able to fix everything
|
|
#3
|
||||
|
||||
|
Is it possible to fix filesystem which is mounted read only ?
__________________
If anything can go wrong, it will. If it can't, it will anyway |
|
#4
|
|||
|
|||
|
If you don't want reboot your system (for any reasons) you can also remount file system as read-only. For example:
Code:
mount -fr / Code:
mount -fw / If you have physical access to your machine, the safe method will be boot to single mode, then run fsck. |
|
#5
|
||||
|
||||
|
that's the way root should be fsck'ed
|
|
#6
|
||||
|
||||
|
You cannot "fix" a read-only mounted filesystem:
Quote:
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
graudeejs (March 16th, 2010) | ||
|
#7
|
||||
|
||||
|
ah sorry, haven't been using UFS for long time....
# mount -uo rw /solves this Thanks SirDice for fixing me |
|
#8
|
||||
|
||||
|
Is it possible to fix filesystem which is mounted anyway ?
__________________
If anything can go wrong, it will. If it can't, it will anyway |
|
#9
|
||||
|
||||
|
If I'm not mistaken only the errors that are fixable in "preen" mode.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HOWTO: GELI+ZFS for whole system inc. root with boot from USB stick | donnex | Howtos & FAQs (Moderated) | 21 | October 14th, 2011 21:58 |
| [Solved] How to run system without video adapter? | Bat | System Hardware | 9 | March 1st, 2010 11:03 |
| cannot change any /system/administrator options, even logged in as root | triplesquarednine | GNOME | 7 | August 17th, 2009 11:03 |
| What is the defalt file system for the root disk on FreeBSD? | corone | General | 2 | July 19th, 2009 20:31 |
| root delete file when other user open it | guixingyi | General | 16 | December 11th, 2008 10:38 |