Re: frequent disk error, need guidance
- In reply to: Gary Aitken : "Re: frequent disk error, need guidance"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Apr 2023 11:41:39 UTC
On Sat, 15 Apr 2023 12:25:07 -0700, Gary Aitken wrote: > mount /dev/ada1p2 /mnt/newsys > cd /mnt/newsys > dump -0 -f - /dev/ada0p2 | restore -r -Dv -f - > > However... this is a running system, which seems unlikely to produce > a consistent result. Just a little trick: # cd /mnt/newsys # dump -Lauf0 - /dev/ada0p2 | restore -rf - On a running system, using -L is never wrong. But if you can, unmount /dev/ada0p2 (source partition), or at least have it mounted read-only. > There are only 2 sata slots on the mobo, so I can't mount a third > system, although I might be able to build a memstick and use that. Or a "USB converter" for SATA disks. > Can I reboot in a read-only manner and do the above? You _should_ do that. But dump's -L flag works, too. > Never done that, not sure what's involved. > Is single-user mode sufficient? Not just sufficient, it's actually _recommended_. Have as few interfering parts as possible. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...