DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th March 2017
sdowaxon sdowaxon is offline
New User
 
Join Date: Mar 2017
Posts: 2
Default OpenBSD 6.0 Install: Full Disk Encryption on Toshiba Satellite

I am trying to install OpenBSD 6.0 on a Toshiba Satellite:
  • AMD Turion 64 X2 mobile technology TL-58 / 1.9 GHz
  • 3 GB DDR2 RAM
  • 500 GB Western Digital Scorpio Black 7200 RPM

I had previously installed 5.5 on it 2 years ago, then, I had openSUSE installed, but was unhappy with the performance. So, I tried to install OpenBSD 6.0 and ran into a problem with full disk encryption.

Code:
# bioctl -c C -l /dev/sd0a softraid0
Passphrase:
softraid0: incorrect key or passphrase
softraid0: incorrect key or passphrase
How do I erase the RAID that has the previous passphrase, which I have forgotten? I searched on Google and didn't find anything to help.

EDIT: Tried using:

Code:
# bioctl -d /dev/sd0
bioctl: Can't locate /dev/sd0 device via /dev/bio
and:

Code:
# bioctl -d /dev/sd0a
bioctl: BIOCDELETERAID: Inappropriate ioctl for device
Per bioctl(8) man page

Last edited by sdowaxon; 16th March 2017 at 07:08 PM.
Reply With Quote
  #2   (View Single Post)  
Old 16th March 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

You can change the passphrase with bioctl(8) -P, but you cannot erase it without wiping the metadata at the front of the physical partition used by the softraid virtual device (sd0a in your example). Doing this will eliminate access to the stored data, of course.

This will write zeros over the first megabyte of partition sd0a:

# dd if=/dev/zero of=/dev/rsd0a bs=1m count=1

After this, you should be able to create a new softraid device to replace the old one.
Reply With Quote
  #3   (View Single Post)  
Old 16th March 2017
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 304
Default

jggimi beat me to it.

I'll add, follow the FAQ:
https://www.openbsd.org/faq/faq14.html#softraid

There is a Full Disk Encryption section.
Reply With Quote
  #4   (View Single Post)  
Old 16th March 2017
sdowaxon sdowaxon is offline
New User
 
Join Date: Mar 2017
Posts: 2
Default

jggimi,

That worked perfectly, thank you!
Reply With Quote
  #5   (View Single Post)  
Old 16th March 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Glad you got it working.

The FAQ entry that TronDD recommended uses /dev/random rather than /dev/zero. Both work, but /dev/random may better obscure the start of data sectors for the softraid device.
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
Full Disk Encryption jjstorm OpenBSD Installation and Upgrading 3 30th May 2016 08:19 PM
Full disk encryption in NetBSD 7.0 RC2 bashrules NetBSD Installation and Upgrading 1 18th August 2015 02:11 AM
Reliability concerns on full disk encryption virtuvoos OpenBSD Security 4 31st October 2013 11:06 PM
FreeNAS 8.3.1 introduces full disk ZFS encryption J65nko News 0 22nd March 2013 02:54 AM
Full disk encryption with Loop-AES deviant085 OpenBSD Security 9 23rd November 2009 12:51 AM


All times are GMT. The time now is 06:40 AM.


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