DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th June 2022
hd77 hd77 is offline
Shell Scout
 
Join Date: Jan 2022
Posts: 101
Default openbsd, fsck at boot, repair files without disk

Hi,

I have here an old laptop running well obsd with dwm.
unfortunately, hdd seems to be a bit tired, when fw_udpdate cant install the wifi driver because of an i/o error.
problem the hdd is a unique connector and seems to be out of availability. No other choice to use that one.
so I was wondering to do something, as for the first one I was doing with linux previously : run a fsck at each startup to fix iflesystem errors.

how to do that? mean, fsck_ffs sd0a but just at openbsd boot, to ensure everything is correct?


then, how to fix files errors/unavailability/missing without booting on the openbsd disc? is it possible from web to repair some files damaged by repair them one by one (md5 comparison from web?)

thank you vm
Reply With Quote
  #2   (View Single Post)  
Old 5th June 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Quote:
Originally Posted by harrollld View Post
...fw_udpdate cant install the wifi driver because of an i/o error.
Please post this system's dmesg(8) and a copy of the error message from fw_update(8). The I/O error may also be logged in the dmesg(8), and/or in the file /var/log/messages, and the level of detail in the messages may differ.
Quote:
...run a fsck at each startup to fix iflesystem errors....how to do that? mean, fsck_ffs sd0a but just at openbsd boot, to ensure everything is correct? .... then, how to fix files errors/unavailability/missing without booting on the openbsd disc? is it possible from web to repair some files damaged by repair them one by one (md5 comparison from web?)
fsck(8) / fsck_ffs(8) will automatically be run in preen mode at boot time if a filesystem was not previously unmounted cleanly. Preen mode will provide simple, minor fixes of metadata without data loss. If any filesystem fails to be recovered in preen mode, booting will halt. The system will be left in single-user mode so that the admin can decide what to do next. Repairing filesystem inconsistencies at this point will cause data loss. Recovery from backup may be necessary.
  • If the inconsistency was due to an unplanned reboot, such as after a power failure, files opened for write at the time of the failure will be impacted.
  • If the cause was due to I/O errors, data loss may be catastrophic.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
do not know how to repair partial-p5-DateTime-TimeZone sacerdos_daemonis OpenBSD Packages and Ports 14 7th December 2016 01:45 PM
4 py-*** packages wouldn't accept uninstall or repair daemonfowl OpenBSD Packages and Ports 8 4th June 2013 06:21 PM
mdmfs and fsck on boot elon FreeBSD General 0 8th December 2008 06:33 PM
Laptop Repair DrJ General Hardware 4 25th August 2008 02:30 PM
Dual-boot laptop won't boot OpenBSD after upgrade to 4.3 kbeaucha OpenBSD Installation and Upgrading 17 30th May 2008 02:40 PM


All times are GMT. The time now is 07:52 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick