Re: encryption, again
On Tue, May 24, 2016 at 05:10:31PM BST, Pau Amaro-Seoane wrote: > Dear all, > > I have been following this guide here: > > http://www.openbsd.org/faq/faq14.html#softraidCrypto > > And I get this problem: > > pyrrha# dd if=/dev/arandom of=/dev/rsd2c bs=1m ^ Since there's no difference on OpenBSD, why do you keep on changing the device name to something other than what's in the document? > dd: /dev/rsd2c: short write on character device > dd: /dev/rsd2c: end of device > 57260+0 records in > 57259+1 records out > 60040544256 bytes transferred in 2966.279 secs (20241028 bytes/sec) > pyrrha# fdisk -iy sd2 > Writing MBR at offset 0. > pyrrha# disklabel -E sd2 > Label editor (enter '?' for help at any prompt) > > a a > offset: [64] > size: [117258371] > FS type: [4.2BSD] ^^^ This should be RAID. It is there in the document you had linked to above :^) Regards, Raf > Rounding size to bsize (32 sectors): 117258368 > > w > > q > No label changes. > pyrrha# bioctl -c C -l sd2a softraid0 > softraid0: invalid metadata format > > /dev/sd2 is my external usb disk. > > What am I doing wrong? > > Thanks, > > Pau > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: encryption, again
> pyrrha# dd if=/dev/arandom of=/dev/rsd2c bs=1m ^ > Since there's no difference on OpenBSD, why do you keep on changing > the device name to something other than what's in the document? Do you mean /dev/rsd2c? As I understand it, if I left the name that's in the document, /dev/rsd0c I would screw all data of my internal drive, where the OS is installed. sd2 is what I got from dmesg 2016-05-25 12:47 GMT+02:00 Raf Czlonka : > On Tue, May 24, 2016 at 05:10:31PM BST, Pau Amaro-Seoane wrote: >> Dear all, >> >> I have been following this guide here: >> >> http://www.openbsd.org/faq/faq14.html#softraidCrypto >> >> And I get this problem: >> >> pyrrha# dd if=/dev/arandom of=/dev/rsd2c bs=1m > ^ > Since there's no difference on OpenBSD, why do you keep on changing > the device name to something other than what's in the document? > >> dd: /dev/rsd2c: short write on character device >> dd: /dev/rsd2c: end of device >> 57260+0 records in >> 57259+1 records out >> 60040544256 bytes transferred in 2966.279 secs (20241028 bytes/sec) >> pyrrha# fdisk -iy sd2 >> Writing MBR at offset 0. >> pyrrha# disklabel -E sd2 >> Label editor (enter '?' for help at any prompt) >> > a a >> offset: [64] >> size: [117258371] >> FS type: [4.2BSD] >^^^ > This should be RAID. > > It is there in the document you had linked to above :^) > > Regards, > > Raf > >> Rounding size to bsize (32 sectors): 117258368 >> > w >> > q >> No label changes. >> pyrrha# bioctl -c C -l sd2a softraid0 >> softraid0: invalid metadata format >> >> /dev/sd2 is my external usb disk. >> >> What am I doing wrong? >> >> Thanks, >> >> Pau >> ___ >> Openbsd-newbies mailing list >> Openbsd-newbies@sfobug.theapt.org >> http://mailman.theapt.org/listinfo/openbsd-newbies > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: encryption, again
On Wed, May 25, 2016 at 11:55:04AM BST, Pau Amaro-Seoane wrote: > > pyrrha# dd if=/dev/arandom of=/dev/rsd2c bs=1m > ^ > > Since there's no difference on OpenBSD, why do you keep on changing > > the device name to something other than what's in the document? > > Do you mean /dev/rsd2c? > > As I understand it, if I left the name that's in the document, > > /dev/rsd0c > > I would screw all data of my internal drive, where the OS is installed. > > sd2 is what I got from dmesg There's a '^' below the 'a' in 'arandom' above? Can you see it now? :^) R > 2016-05-25 12:47 GMT+02:00 Raf Czlonka : > > On Tue, May 24, 2016 at 05:10:31PM BST, Pau Amaro-Seoane wrote: > >> Dear all, > >> > >> I have been following this guide here: > >> > >> http://www.openbsd.org/faq/faq14.html#softraidCrypto > >> > >> And I get this problem: > >> > >> pyrrha# dd if=/dev/arandom of=/dev/rsd2c bs=1m > > ^ > > Since there's no difference on OpenBSD, why do you keep on changing > > the device name to something other than what's in the document? > > > >> dd: /dev/rsd2c: short write on character device > >> dd: /dev/rsd2c: end of device > >> 57260+0 records in > >> 57259+1 records out > >> 60040544256 bytes transferred in 2966.279 secs (20241028 bytes/sec) > >> pyrrha# fdisk -iy sd2 > >> Writing MBR at offset 0. > >> pyrrha# disklabel -E sd2 > >> Label editor (enter '?' for help at any prompt) > >> > a a > >> offset: [64] > >> size: [117258371] > >> FS type: [4.2BSD] > >^^^ > > This should be RAID. > > > > It is there in the document you had linked to above :^) > > > > Regards, > > > > Raf > > > >> Rounding size to bsize (32 sectors): 117258368 > >> > w > >> > q > >> No label changes. > >> pyrrha# bioctl -c C -l sd2a softraid0 > >> softraid0: invalid metadata format > >> > >> /dev/sd2 is my external usb disk. > >> > >> What am I doing wrong? > >> > >> Thanks, > >> > >> Pau > >> ___ > >> Openbsd-newbies mailing list > >> Openbsd-newbies@sfobug.theapt.org > >> http://mailman.theapt.org/listinfo/openbsd-newbies > > ___ > > Openbsd-newbies mailing list > > Openbsd-newbies@sfobug.theapt.org > > http://mailman.theapt.org/listinfo/openbsd-newbies > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: encryption, again
On Tue, May 24, 2016 at 06:10:31PM +0200, Pau Amaro-Seoane wrote: > Dear all, > > I have been following this guide here: > > http://www.openbsd.org/faq/faq14.html#softraidCrypto > > And I get this problem: > > pyrrha# dd if=/dev/arandom of=/dev/rsd2c bs=1m > dd: /dev/rsd2c: short write on character device > dd: /dev/rsd2c: end of device > 57260+0 records in > 57259+1 records out > 60040544256 bytes transferred in 2966.279 secs (20241028 bytes/sec) > pyrrha# fdisk -iy sd2 > Writing MBR at offset 0. > pyrrha# disklabel -E sd2 > Label editor (enter '?' for help at any prompt) > > a a > offset: [64] > size: [117258371] > FS type: [4.2BSD] The filesystem type on the backing drive must be "RAID". :) You can type this as lower case "raid" and the disklabel(8) program will understand it. > Rounding size to bsize (32 sectors): 117258368 > > w > > q > No label changes. > pyrrha# bioctl -c C -l sd2a softraid0 > softraid0: invalid metadata format > > /dev/sd2 is my external usb disk. > > What am I doing wrong? > > Thanks, > > Pau > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: encryption, again
ok, I got it... raid it was... last question: " Next time you need to access the drive, simply use bioctl(8) to attach it and then repeat the last four commands as needed. " Which would be the exact command? I seem not to be able to figure it out from the man page... remember this is newbies, please... 2016-05-25 12:55 GMT+02:00 Pau Amaro-Seoane : >> pyrrha# dd if=/dev/arandom of=/dev/rsd2c bs=1m > ^ >> Since there's no difference on OpenBSD, why do you keep on changing >> the device name to something other than what's in the document? > > Do you mean /dev/rsd2c? > > As I understand it, if I left the name that's in the document, > > /dev/rsd0c > > I would screw all data of my internal drive, where the OS is installed. > > sd2 is what I got from dmesg > > > 2016-05-25 12:47 GMT+02:00 Raf Czlonka : >> On Tue, May 24, 2016 at 05:10:31PM BST, Pau Amaro-Seoane wrote: >>> Dear all, >>> >>> I have been following this guide here: >>> >>> http://www.openbsd.org/faq/faq14.html#softraidCrypto >>> >>> And I get this problem: >>> >>> pyrrha# dd if=/dev/arandom of=/dev/rsd2c bs=1m >> ^ >> Since there's no difference on OpenBSD, why do you keep on changing >> the device name to something other than what's in the document? >> >>> dd: /dev/rsd2c: short write on character device >>> dd: /dev/rsd2c: end of device >>> 57260+0 records in >>> 57259+1 records out >>> 60040544256 bytes transferred in 2966.279 secs (20241028 bytes/sec) >>> pyrrha# fdisk -iy sd2 >>> Writing MBR at offset 0. >>> pyrrha# disklabel -E sd2 >>> Label editor (enter '?' for help at any prompt) >>> > a a >>> offset: [64] >>> size: [117258371] >>> FS type: [4.2BSD] >>^^^ >> This should be RAID. >> >> It is there in the document you had linked to above :^) >> >> Regards, >> >> Raf >> >>> Rounding size to bsize (32 sectors): 117258368 >>> > w >>> > q >>> No label changes. >>> pyrrha# bioctl -c C -l sd2a softraid0 >>> softraid0: invalid metadata format >>> >>> /dev/sd2 is my external usb disk. >>> >>> What am I doing wrong? >>> >>> Thanks, >>> >>> Pau >>> ___ >>> Openbsd-newbies mailing list >>> Openbsd-newbies@sfobug.theapt.org >>> http://mailman.theapt.org/listinfo/openbsd-newbies >> ___ >> Openbsd-newbies mailing list >> Openbsd-newbies@sfobug.theapt.org >> http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: encryption, again
On 2016-05-25 07:39, Pau Amaro-Seoane wrote: ok, I got it... raid it was... last question: " Next time you need to access the drive, simply use bioctl(8) to attach it and then repeat the last four commands as needed. " Which would be the exact command? I seem not to be able to figure it out from the man page... remember this is newbies, please... # bioctl -c C -l sd2a softraid0 ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies