You are not logged in.

#1 2012-12-25 14:55:49

dmillard
Member
From: /dev/pts/0
Registered: 2010-04-02
Posts: 22

Extremely slow boot - encryption problems?

I'm running LUKS (no LVM) on a large encrypted root and an encrypted swap.  During boot (using systemd), two long (about 1.5 minutes) happen.  Right after I'm prompted for a password for root (from encrypt hook) and while trying to load the encrypted swap, it times out waiting for swap.

journalctl -b is littered with messages like

Dec 25 09:51:38 localhost kernel: sd 4:0:0:0: [sdb] Unhandled sense code
Dec 25 09:51:38 localhost kernel: sd 4:0:0:0: [sdb]  
Dec 25 09:51:38 localhost kernel: Result: hostbyte=0x07 driverbyte=0x08
Dec 25 09:51:38 localhost kernel: sd 4:0:0:0: [sdb]  
Dec 25 09:51:38 localhost kernel: Sense Key : 0x4 [current] 
Dec 25 09:51:38 localhost kernel: sd 4:0:0:0: [sdb]  
Dec 25 09:51:38 localhost kernel: ASC=0x0 ASCQ=0x0
Dec 25 09:51:38 localhost kernel: sd 4:0:0:0: [sdb] CDB: 
Dec 25 09:51:38 localhost kernel: cdb[0]=0x28: 28 00 00 00 00 00 00 00 08 00
Dec 25 09:51:38 localhost kernel: end_request: I/O error, dev sdb, sector 0
Dec 25 09:51:38 localhost kernel: Buffer I/O error on device sdb, logical block 0

I fear it's a dying harddrive.  Any suggestions, please?


"Cleverness is not wisdom." ~Euripides

Offline

#2 2012-12-26 07:26:12

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: Extremely slow boot - encryption problems?

Hum, well my first step to debug this would be to #comment out the lines in /etc/fstab for the SWAP and see if you still have the same problem.

If you do then you know the problem is somehow related to the Swap setup.
If you don't then you know it is probably not a problem with Swap.


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

Board footer

Powered by FluxBB