Re: Bad sectors on boot disk

2018-10-22 Thread Theo de Raadt
There is no point in taking such action.

Replace the drive.

Once this begins, more blocks will go bad soon.

> I'm getting console messages like:
> 
>  wd0a: uncorrectable data error reading fsbn 530469 of ...
> 
> I found this page:
> 
>   How to repair bad sectors on HDD in OpenBSD (Part I)
> 
> at:
> 
>   
> https://www.s-vp.com/blog/post/how-to-repair-bad-sectors-on-hdd-in-openbsd-part-i
> 
> Question 1:
>   Is it possible to repair "wd0a"?
>   Do I need another boot disk to do the repair?
>   I'm in the process of building another boot disk with the identical OpenBSD 
> version. I'm assuming it will take less time this way since I can copy the 
> settings from a backup.
> 
> Question 2:
>   Once I build the new boot disk mentioned in Question 1 I thought I'd clone 
> it and keep it up to date using rsync. Is the page:
> 
>   OpenBSD 5.5 and later | cloning a disk the easy way
> 
> at:
> 
>   
> https://bytesandbones.wordpress.com/2014/09/23/openbsd-5-5-and-later-cloning-a-disk-the-easy-way/
> 
> Is this set of instructions complete or is there a better set of 
> instructions? Will this disk be bootable after cloning or do I have to 
> install OpenBSD on the clone first to make the disk bootable? Is this a 
> suitable way to maintain a spare clone of my boot disk? My data is kept on 
> other hard disks in my system.
> 
> Thanks, Joe.
> PS. My email web page flashed so I resent the message. I hope this gets 
> through. Sorry if it's a duplicate.
> 



Bad sectors on boot disk

2018-10-22 Thread aretes27884
I'm getting console messages like:

 wd0a: uncorrectable data error reading fsbn 530469 of ...

I found this page:

  How to repair bad sectors on HDD in OpenBSD (Part I)

at:

  
https://www.s-vp.com/blog/post/how-to-repair-bad-sectors-on-hdd-in-openbsd-part-i

Question 1:
  Is it possible to repair "wd0a"?
  Do I need another boot disk to do the repair?
  I'm in the process of building another boot disk with the identical OpenBSD 
version. I'm assuming it will take less time this way since I can copy the 
settings from a backup.

Question 2:
  Once I build the new boot disk mentioned in Question 1 I thought I'd clone it 
and keep it up to date using rsync. Is the page:

  OpenBSD 5.5 and later | cloning a disk the easy way

at:

  
https://bytesandbones.wordpress.com/2014/09/23/openbsd-5-5-and-later-cloning-a-disk-the-easy-way/

Is this set of instructions complete or is there a better set of instructions? 
Will this disk be bootable after cloning or do I have to install OpenBSD on the 
clone first to make the disk bootable? Is this a suitable way to maintain a 
spare clone of my boot disk? My data is kept on other hard disks in my system.

Thanks, Joe.
PS. My email web page flashed so I resent the message. I hope this gets 
through. Sorry if it's a duplicate.