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.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 FSCK
Author: Mianni 
Date:   11-03-01 09:01


Hi,

When I run FSCK, I get

# fsck
/dev/da0s1a (NO WRITE)

or
# fsck -p
/dev/ad0s1a NO WRITE ACCESS
/dev/ad0s1a UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.


WHy?

Thanks

Reply To This Message
 
 Re: FSCK
Author: shrub34 
Date:   12-03-01 16:15

For the sounds of it, you are trying to run fsck while having the partion/slice mounted. To run fsck the device needs to be unmounted. The exception is the / partion which can be mounted read only to be run.

Hope this helps, if not tell me when you are running the command, ie booting to single user mode, or after a full boot.

Reply To This Message
 
 Re: FSCK
Author: Mianni 
Date:   12-03-01 20:07


I am in single user mode when attempting this.

Are you saying that I need to force / to be read-only?

I'm kinda unclear on what you are saying here.

Thanks

- Mianni

Reply To This Message
 
 Re: FSCK
Author: shrub34 
Date:   13-03-01 17:54

Normally, when you enter single user mode / is mounted Read-Write, so that you can edit config files.

fsck needs partitions to be unmounted or in Read-Only mode(for / only) to work. To verify that / is mounted rw check /etc/mtab.

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


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 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

phorum.org