Oct 30, '03 09:53:00AM • Contributed by: magicxz
[robg adds: Journaling is on by default in Panther, but I thought one of the key benefits was that there was no longer a need to run fsck? Can someone in the know clarify for us?]
|
|
|
10.3: Force a file system check in single user mode
Oct 30, '03 09:53:00AM • Contributed by: magicxz
While trying to trouble shoot a strange problem I am having with the Finder, I started up in single user mode (Apple-S during boot) to run fsck (the unix File System Check utility). When I ran it, I was told that I could not run fsck because File System Journaling was enabled. However, I did not enable it. It looks like it is enabled by default in Panther. The shiny new Disk Utility application would not let me disable it. But if you want to force fsck on a Journaled disk, you can use fsck -f.
[robg adds: Journaling is on by default in Panther, but I thought one of the key benefits was that there was no longer a need to run fsck? Can someone in the know clarify for us?]
•
[19,830 views]
Hint Options
10.3: Force a file system check in single user mode
The reason you can't run fsck is because journaled file systems don't need file system checks. Since every file system operation is "journaled", the system will always know what operation was taking place with a system failure occured. It can then go back and finish the operation or reverse the operation.
10.3: Force a file system check in single user mode
Journaling certainly makes it harder for directory corruption to occur, but it can still happen in certain instances (I had a corrupted superblock a while back, but nothing could fix that). For instance, a bug in the filesystem code could allow bad information to be written to the directory, and the journal wouldn't protect against that.
10.3: Force a file system check in single user mode
Yes this may be true that you are not supposed to need fsck, but try running /sbin/fsck -f after a major crash, and you can still hit some errors. I found this on Jaguar journaling, and I have gotten it on Panther so far. Maybe my system had some problems previously, but I did still find some issues so...
turning off journalling
Disk Util will turn of journalling. its just not a button. look in the menus for this option.
10.3: Force a file system check in single user mode
You can make the "disable journaling" button show up in the toolbar by doing "customize toolbar" or one of the shortcuts.
10.3: Force a file system check in single user mode
According to Apple, running fsck on a journaled disk will generate false errors. See http://docs.info.apple.com/article.html?artnum=107250 for details
Use fsck to find troublesome files
I was having trouble with my iBook (in 10.2.6 and 10.2.8 with journalling enabled) whenever I tried to boot into OS 9. Often, but not always, it would get stuck during the boot with a flashing question-mark disk icon. Booting from a backup HD, I ran fsck on my internal drive and I got a couple of "overlapping extent files" errors. fsck did not fix these after numerous attempts. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.12 seconds |
|