The FreeBSD Diary |
(TM) | Providing practical examples since 1998If you buy from Amazon USA, please support us by using this link. |
Filesystem is not clean - run fsck
20 June 1999
|
This article talks about the above message and how to fix it. |
I couldn't mount the floppy
|
I was trying to mount my floppy but it wasn't working:# mount /dev/fd0 /mnt mount: Operation not permitted Say what? I tried again: # mount /dev/fd0 /mnt mount: Operation not permitted OK. Does my mount point exist? # mkdir /mnt mkdir: /mnt: File exists Yes. That's there. So what's wrong? # tail /var/log/messages Jun 20 19:30:56 testbox /kernel: No MFS image available as root f/s. Jun 20 19:30:56 testbox /kernel: Considering FFS root f/s. Jun 20 19:30:56 testbox /kernel: changing root device to da0s1a Jun 20 19:30:56 testbox /kernel: da0s1: type 0xa5, start 61, end = 1045295, size 1045235 : OK Jun 20 19:30:56 testbox /kernel: da1s1: type 0xa5, start 62, end = 1065593, size 1065532 : OK Jun 20 19:30:56 testbox /kernel: da1s1: type 0xa5, start 62, end = 1065593, size 1065532 : OK Jun 20 20:20:55 testbox su: john to root on /dev/ttyp0 Jun 20 20:21:02 testbox /kernel: WARNING: R/W mount of /mnt denied. Filesystem is not clean - run fsck Jun 20 20:22:27 testbox /kernel: WARNING: R/W mount of /mnt denied. Filesystem is not clean - run fsck Ahhhh! There's the problem! A dirty file system. |
Running fsck
|
Here's how I ran fsck:# fsck -y /dev/fd0 ** /dev/rfd0 ** Last Mounted on /mnt ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 10 files, 2428 used, 387 free (11 frags, 47 blocks, 0.4% fragmentation) ***** FILE SYSTEM MARKED CLEAN ***** # mount /dev/fd0 /mnt # cd /mnt # ls boot boot.config kernel.config kernel.gz OK. There's my files! Now back to the 3.2 install. |