From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nm29-vm3.bullet.mail.ne1.yahoo.com (nm29-vm3.bullet.mail.ne1.yahoo.com [98.138.91.159]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Thu, 10 Dec 2015 18:38:09 +0100 (CET) Date: Thu, 10 Dec 2015 17:37:55 +0000 (UTC) From: H McCurdy Reply-To: H McCurdy Message-ID: <894871680.323511.1449769075994.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_323510_920033992.1449769075990" Subject: Re: [dm-crypt] Cannot wipe header on device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Lu=C3=ADs_de_Sousa?= Cc: "dm-crypt@saout.de" ------=_Part_323510_920033992.1449769075990 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Luis, If the drive has its own power, it probably isn't lack of power. I would tr= y Michael's suggestion so that we can get more data points. An inexpensive thing to try (assuming error code 5 is an errno error, which= I think it would be), is a different USB cable.=C2=A0 I broke one of my US= B cables just last week.=C2=A0 It looked fine but it isn't fine.=C2=A0 It w= orked some of the time and didn't work some of the time.=C2=A0 It's in the = garbage now after being replaced with a reliable cable.=C2=A0 Even so, plea= se try Michael's test and share the results. Hugh =20 On Thursday, December 10, 2015 12:24 PM, Lu=C3=ADs de Sousa wrote: =20 Thank you for the reply. I connected the external drive directly to my laptop and removed every other stuff connected through USB. I tried again the initialisation but I always get this same error. This external drive is itself powered (with power brick and all). Is there anything else I could try to identify the cause of this? Thank you, Lu=C3=ADs On 10 December 2015 at 17:49, H McCurdy wrote: > Hi Luis, > > Error 5 is EIO or I/O error.=C2=A0 My first thought was if you are using = USB 2.0 > because those sometimes have power problems (that would explain an I/O > error).=C2=A0 Then I looked at your log and it appears you are using 2.0. > > If I'm right, I suggest disconnecting every USB device that you don't > absolutely need and trying again.=C2=A0 (The drive did pass a previous di= agnostic > test telling us that it was working.)=C2=A0 If that solves the problem, I= suggest > using a USB 3 drive or using a **powered** USB hub. > > Hugh > > > > On Thursday, December 10, 2015 8:20 AM, Lu=C3=ADs de Sousa > wrote: > > > Hi everybody, > > I am trying to encrypt an external hard drive on Ubuntu 14.04 > following this guide [1]. I have previously ran badblocks, which > returned zero errors; I am also sure the disk is not mounted: > > $ findmnt /dev/sdb > $ findmnt /dev/sdb1 > $ > > Whenever I try the initialisation with cryptsetup I get this same error: > > $ sudo cryptsetup -y -v luksFormat /dev/sdb1 > > WARNING! > =3D=3D=3D=3D=3D=3D=3D=3D > This will overwrite data on /dev/sdb1 irrevocably. > > Are you sure? (Type uppercase yes): YES > Enter passphrase: > Verify passphrase: > Cannot wipe header on device /dev/sdb1. > Command failed with code 5: Cannot wipe header on device /dev/sdb1. > > dmesg is not reporting anything out of the ordinary: > > $ dmesg > [ 3208.032228] usb 2-1.4: new high-speed USB device number 7 using ehci-p= ci > [ 3208.140990] usb 2-1.4: New USB device found, idVendor=3D059f, > idProduct=3D0651 > [ 3208.141001] usb 2-1.4: New USB device strings: Mfr=3D1, Product=3D2, > SerialNumber=3D3 > [ 3208.141024] usb 2-1.4: Product: LaCie Hard Drive USB > [ 3208.141031] usb 2-1.4: Manufacturer: LaCie > [ 3208.141037] usb 2-1.4: SerialNumber: 10000E000BD8A671 > [ 3208.177576] usb-storage 2-1.4:1.0: USB Mass Storage device detected > [ 3208.178112] scsi4 : usb-storage 2-1.4:1.0 > [ 3208.178183] usbcore: registered new interface driver usb-storage > [ 3209.176917] scsi 4:0:0:0: Direct-Access=C2=A0 =C2=A0 SEAGATE=C2=A0 ST3= 160812A >=C2=A0 3.AA PQ: 0 ANSI: 2 > [ 3209.177561] sd 4:0:0:0: Attached scsi generic sg2 type 0 > [ 3209.181342] sd 4:0:0:0: [sdb] 312581808 512-byte logical blocks: > (160 GB/149 GiB) > [ 3209.182337] sd 4:0:0:0: [sdb] Write Protect is off > [ 3209.182348] sd 4:0:0:0: [sdb] Mode Sense: 53 00 00 08 > [ 3209.183339] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: > enabled, doesn't support DPO or FUA > [ 3209.201618]=C2=A0 sdb: sdb1 > [ 3209.229465] sd 4:0:0:0: [sdb] Attached SCSI disk > > In the log a strange message is reporting something with block 0: > > $ tail /var/log/syslog > Dec=C2=A0 8 09:18:20 MekanikDestruktiwKommandoh kernel: [ 3698.016311] > end_request: critical target error, dev sdb, sector 0 > Dec=C2=A0 8 09:18:28 MekanikDestruktiwKommandoh wpa_supplicant[1188]: > wlan0: CTRL-EVENT-SCAN-STARTED > > Any ideas on what may be going wrong here? Thank you, > > Lu=C3=ADs > > > [1] > http://www.cyberciti.biz/hardware/howto-linux-hard-disk-encryption-with-l= uks-cryptsetup-command/ > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt > > ------=_Part_323510_920033992.1449769075990 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Luis,
<= div id=3D"yui_3_16_0_1_1449768750888_2937" dir=3D"ltr">
If the drive has its own powe= r, it probably isn't lack of power. I would try Michael's suggestion so tha= t we can get more data points.

An inexpensive thing to try (assuming error code 5 is an errno err= or, which I think it would be), is a different USB cable.  I broke one= of my USB cables just last week.  It looked fine but it isn't fine.&n= bsp; It worked some of the time and didn't work some of the time.  It'= s in the garbage now after being replaced with a reliable cable.  Even= so, please try Michael's test and share the results.

Hugh


=
On Thursday, December 10, 2015 12:24 PM= , Lu=C3=ADs de Sousa <luis.a.de.sousa@gmail.com> wrote:


Thank you for the reply.

I connected the external drive directly to = my laptop and removed every
other stuff connected through= USB. I tried again the initialisation
but I always get t= his same error.

This external drive is= itself powered (with power brick and all). Is
there anyt= hing else I could try to identify the cause of this?

Thank you,

Lu=C3=ADs

On 10 December 2015 at 17:49, H McCurdy <hmccurdy@yahoo.com> wrote:
> Hi Luis= ,
>
> Error 5 is EIO or I/O error= .  My first thought was if you are using USB 2.0
>= ; because those sometimes have power problems (that would explain an I/O> error).  Then I looked at your log and it appears= you are using 2.0.
>
> If I'm ri= ght, I suggest disconnecting every USB device that you don't
> absolutely need and trying again.  (The drive did pass a prev= ious diagnostic
> test telling us that it was working.= )  If that solves the problem, I suggest
> using = a USB 3 drive or using a **powered** USB hub.
>
> Hugh
>
>
>
> On Thursday, December 10, 2015 8:20 = AM, Lu=C3=ADs de Sousa
> <luis.a.de.sousa@gmail.com> wrote:
>
>
> Hi everybody,
>= ;
> I am trying to encrypt an external hard drive on U= buntu 14.04
> following this guide [1]. I have previou= sly ran badblocks, which
> returned zero errors; I am = also sure the disk is not mounted:
>
> $ findmnt /dev/sdb
> $ findmnt /dev/sdb1
> $
>
> Whenever I = try the initialisation with cryptsetup I get this same error:
>
> $ sudo cryptsetup -y -v luksFormat /dev/sd= b1
>
> WARNING!
> =3D=3D=3D=3D=3D=3D=3D=3D
> This will overwrite d= ata on /dev/sdb1 irrevocably.
>
>= Are you sure? (Type uppercase yes): YES
> Enter passp= hrase:
> Verify passphrase:
> Can= not wipe header on device /dev/sdb1.
> Command failed = with code 5: Cannot wipe header on device /dev/sdb1.
>=
> dmesg is not reporting anything out of the ordinary= :
>
> $ dmesg
&= gt; [ 3208.032228] usb 2-1.4: new high-speed USB device number 7 using ehci= -pci
> [ 3208.140990] usb 2-1.4: New USB device found,= idVendor=3D059f,
> idProduct=3D0651
> [ 3208.141001] usb 2-1.4: New USB device strings: Mfr=3D1, Product=3D= 2,
> SerialNumber=3D3
> [ 3208.14= 1024] usb 2-1.4: Product: LaCie Hard Drive USB
> [ 320= 8.141031] usb 2-1.4: Manufacturer: LaCie
> [ 3208.1410= 37] usb 2-1.4: SerialNumber: 10000E000BD8A671
> [ 3208= .177576] usb-storage 2-1.4:1.0: USB Mass Storage device detected
> [ 3208.178112] scsi4 : usb-storage 2-1.4:1.0
> [ 3208.178183] usbcore: registered new interface driver usb-storage=
> [ 3209.176917] scsi 4:0:0:0: Direct-Access  &n= bsp; SEAGATE  ST3160812A
>  3.AA PQ: 0 ANSI= : 2
> [ 3209.177561] sd 4:0:0:0: Attached scsi generic= sg2 type 0
> [ 3209.181342] sd 4:0:0:0: [sdb] 3125818= 08 512-byte logical blocks:
> (160 GB/149 GiB)
> [ 3209.182337] sd 4:0:0:0: [sdb] Write Protect is off
> [ 3209.182348] sd 4:0:0:0: [sdb] Mode Sense: 53 00 00 08<= br clear=3D"none">> [ 3209.183339] sd 4:0:0:0: [sdb] Write cache: enable= d, read cache:
> enabled, doesn't support DPO or FUA> [ 3209.201618]  sdb: sdb1
>= [ 3209.229465] sd 4:0:0:0: [sdb] Attached SCSI disk
>=
> In the log a strange message is reporting something= with block 0:
>
> $ tail /var/lo= g/syslog
> Dec  8 09:18:20 MekanikDestruktiwKomma= ndoh kernel: [ 3698.016311]
> end_request: critical ta= rget error, dev sdb, sector 0
> Dec  8 09:18:28 M= ekanikDestruktiwKommandoh wpa_supplicant[1188]:
> wlan= 0: CTRL-EVENT-SCAN-STARTED
>
> An= y ideas on what may be going wrong here? Thank you,
><= br clear=3D"none">> Lu=C3=ADs
>
&= gt;
> [1]
> http://www.cyberciti.biz/hard= ware/howto-linux-hard-disk-encryption-with-luks-cryptsetup-command/
> _______________________________________________
> dm-crypt mailing list
> = dm-crypt@saout.de
> http://www.sao= ut.de/mailman/listinfo/dm-crypt
>
>


------=_Part_323510_920033992.1449769075990--