The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
Author: aaron 
Date:   16-12-01 06:55


Is there a command to run a low level fsck ?

I have a block error thats been happening for a while on one of my drives. I was thinking maybee a low level fsck could possibly fix the block error.

And Should I drop into shingle user mode for this command, or would it be ok in multi user mode ?

I did a man fsck, but not sure what to use.

Best regards


Reply To This Message
 Re: fsck
Author: Philip 
Date:   22-12-01 07:34

if you reboot fsck should get run automatically and will probably fix the error...

fsck is something you do want to run in single user mode... or at the least on an unmounted partition.

Reply To This Message
 Re: fsck
Author: daniel.schrock 
Date:   24-12-01 02:24

To force fsck to fix errors everytime, or if the box is remote or headless without a console, add the following to /etc/rc.conf:


Reply To This Message
 Re: fsck
Author: aaron 
Date:   25-12-01 08:53


Thanks for the reply's.

Rebooting the system did not work, because when the system goes through the start up proccess, fsck does not check files systems that have been marked as clean.

What I did:

Booted into single user mode:

fsck -f /filesystem

This will:
Force fsck to check `clean' filesystems when preening.

fsck -y to me is a little risky, because it
Assumes a yes response to all questions regarding the action.

But Again thanks for your posting..

Best Regards


Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum