*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am dual booting obsd 3.4 and mdk9.1 on a toshiba sat.
While trying to configure X on bsd I managed to lock it up
and had an unclean shutdown. I finally got it to boot again
but /dev/rwd0h is full of bad blocks. It won't do an automatic
fsck and tells me to do it manually. I have worn out two fingers
hitting y and enter with no end in sight! Any help appreciated.
If you do not have a rescue CD or floppy, I think you can boot up in single user mode (do 'INIT 1'), then you can run fsck manually. (I hope I remember well; it was so long ago I had to do this...)
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
/usr/bin/yes | fsck
IIRC that's how it's done.
By the way, you should mount all your partitions with "softdep". That is similar (and some say, better!) than file system journaling in Linux (RiserFS, EXT3, etc).
Thanks for the replies guys. I have run fsck several times but I keep getting a warning when I
reboot about a dirty file system at /home. Something like: DIRECTORY ?: EMPTY BLOCKS
Adjust length(yn). No matter how I answer it I always end up with a message to rerun fsck.
I think I will probably just do a reinstall since I need the practice anyway. I googled softdep
and it looks promising chort thanks for the tip.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.