*BSD This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
01-11-2004, 03:27 PM
|
#1
|
|
Member
Registered: Apr 2003
Posts: 625
Rep:
|
fsck many bad blocks
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.
|
|
|
|
01-11-2004, 05:25 PM
|
#2
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
"I have worn out two fingers
hitting y and enter with no end in sight! Any help appreciated."
Boot a rescue CD or rescue floppy to run fsck.
Use the -a option and fsck will stop asking you to reply for every error it finds.
------------------------
Steve Stites
|
|
|
|
01-11-2004, 05:33 PM
|
#3
|
|
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126
Rep:
|
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...)
|
|
|
|
01-11-2004, 06:46 PM
|
#4
|
|
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
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).
Here's an example from my /etc/fstab
Code:
/dev/wd1a / ffs rw,softdep 1 1
/dev/wd1g /home ffs rw,nodev,nosuid,softdep 1 2
/dev/wd1h /tmp ffs rw,nodev,nosuid,softdep 1 2
/dev/wd1f /usr ffs rw,nodev,softdep 1 2
/dev/wd1d /var ffs rw,nodev,nosuid,softdep 1 2
/dev/wd1e /var/log ffs rw,nodev,nosuid,softdep 1 2
/dev/cd0c /mnt/cdrom cd9660 ro,noauto
/dev/fd0c /mnt/floppy msdos rw,noauto
|
|
|
|
01-11-2004, 09:31 PM
|
#5
|
|
Member
Registered: Apr 2003
Posts: 625
Original Poster
Rep:
|
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.
|
|
|
|
01-13-2004, 06:35 AM
|
#6
|
|
Member
Registered: Apr 2003
Posts: 625
Original Poster
Rep:
|
Update
I did a reinstall and things are fine now. I also added "softdep" to my fstab.
A lot to learn about this OS but I think it will be worth it.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:23 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|