LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-28-2017, 12:20 AM   #1
bulwynkl
LQ Newbie
 
Registered: Dec 2010
Posts: 8

Rep: Reputation: 0
failing to detect SSD SCSI


Hi folks,

I'm preparing to upgrade my laptop from win10 to Linux (probably ubuntu).

In doing so I want to have a roll-back plan, so I have done a windows backup and recovery disk, and grabbed a copy of clonezilla on USB to clone the SSD for bare metal recovery...

this is where things start to get weird, and where I need some further suggestion...

system: Asus UX31A zenbook touch with 256GB ADATA XM11 (Sata3) SSD

clonezilla clonezilla-live-20170220-yakkety-amd64

When I boot to windows and look at the disk health, it shows everything is peachy, SMART shows no problems etc.

when I go to run clonezilla, mostly it fails to even find the SSD drive - sometimes it does, but then fails to see it when it comes time to read it.

I see errors like:
kern.log
Apr 28 09:51:49 localhost kernel: [ 317.875554] sd 0:0:0:0: [sda] tag#16 FAILED Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
Apr 28 09:51:49 localhost kernel: [ 317.875562] sd 0:0:0:0: [sda] tag#16 CDB: Synchronize Cache(10) 35 00 00 00 00 00 00 00 00 00
Apr 28 09:51:49 localhost kernel: [ 317.875570] blk_update_request: I/O error, dev sda, sector 0

and...

Apr 28 09:57:05 localhost kernel: [ 633.296588] Buffer I/O error on dev sda, logical block 0, async page read
Apr 28 09:57:05 localhost kernel: [ 633.296596] Buffer I/O error on dev sda, logical block 0, async page read
Apr 28 09:57:05 localhost kernel: [ 633.357709] sd 0:0:0:0: [sda] Read Capacity(16) failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
Apr 28 09:57:05 localhost kernel: [ 633.357710] sd 0:0:0:0: [sda] Sense not available.
Apr 28 09:57:05 localhost kernel: [ 633.357721] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
Apr 28 09:57:05 localhost kernel: [ 633.357722] sd 0:0:0:0: [sda] Sense not available.
Apr 28 09:57:05 localhost kernel: [ 633.357741] sda: detected capacity change from 256060514304 to 0


when I drop to the command line, lsscsi can see the device, but can't get a response from it.

It looks like the device is available and ready right up to the point clonezilla attempts to access it, then it stops playing nice and even though it's still there, isn't accessible...

Any suggestions of known issues/bugs/workarounds I may have missed?
 
Old 04-28-2017, 01:52 PM   #2
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
I have sometimes seen issues concerning SSD access that are related to the BIOS config. If you have a choice between AHCI and IDE (or PATA), it should be AHCI for SSD technology.
 
Old 04-28-2017, 03:19 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
I'm confused. SATA3 and then SCSI.

I'll agree that you may look at bios settings not only for access but others.

The big issue I see is that you say it see's it some times. Makes me think that there is some timing issue, some power issue, some drive issue.

Clonezilla has been a good solution but has never been perfect. May have to try other backup means.
 
Old 04-28-2017, 03:38 PM   #4
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hey bulwynkl,

.. I received some insight from another member who participated in the troubleshooting of a similar issue (thanks to jsbjsb001 :-).

In the other case, there were some unreadable sectors on the drive that were causing problems. The output from the following command may help us further diagnose with you:

Code:
smartctl -a /dev/sda
Cheers,
 
Old 04-28-2017, 11:23 PM   #5
bulwynkl
LQ Newbie
 
Registered: Dec 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Update:

booted a live Ubuntu (16.04) and was able to dd the disk to a file without issues, so from that PoV, the issue is resolved - but still no idea what occurred.

output from smartctl -a /dev/sda was, IIRC, something like "failed critical step: exit" or similar.
Using -T permissive or verypermissive gets past this, but then the output is essentially blank...

I'll have a go at it for completeness at some point but for now, I've achieved what I needed.
thanks all for the input.

for completeness, BIOS preference set to AHCI over ATA/IDE.

lsscsi sees the disk just fine, just can't read from it.

I was wondering if it's a device driver issue for that make and model of SSD...
 
Old 04-29-2017, 11:04 AM   #6
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hey bulwynkl,

Thanks for the update and the answers. Glad you achieved your primary goal.

Have a great weekend !
 
  


Reply

Tags
scsi, ssd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nmap script execution to detect heartbleed is failing project722 Linux - Security 9 11-12-2014 03:04 AM
Is my SSD failing? uuidgen Linux - Hardware 12 01-09-2014 02:40 PM
[SOLVED] Failing drive and SSD questions corbintechboy Linux - Hardware 2 07-31-2012 04:50 AM
scsi -> ssd qrange Linux - Server 6 06-01-2011 02:56 AM
Mandriva 2008 failing to detect my SATA hard drive jchance Mandriva 8 10-18-2007 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration