LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-25-2019, 03:29 PM   #1
andrei.wap
LQ Newbie
 
Registered: Jul 2009
Location: Argentina
Distribution: Debian testing amd64
Posts: 20

Rep: Reputation: 0
Angry Optical bay caddy HDD not recognized in Debian, but it is in Windows


Hi there.
I have a Lenovo B50-70, with an SSD (let's call it "A") installed and working on the laptop SATA bay.
I have replaced my optical drive with a HDD (let's call it "B") fitted into a caddy.
BIOS didn't list the B disk. As you can read on Internet, this is a common problem with some BIOS/laptops and optical bay caddies.
I installed a Windows and Debian testing on A disk. Debian can't recognize the B disk, as expected, and that's filtered dmesg output about it:

dmesg | grep -E "ata|ATA"
Code:
[    1.268959] libata version 3.00 loaded.
[    1.285286] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 4 ports 6 Gbps 0x3 impl SATA mode
[    1.287183] ata1: SATA max UDMA/133 abar m2048@0xb261b000 port 0xb261b100 irq 44
[    1.287184] ata2: SATA max UDMA/133 abar m2048@0xb261b000 port 0xb261b180 irq 44
[    1.287185] ata3: DUMMY
[    1.287185] ata4: DUMMY
[    1.604683] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.606141] ata1.00: ATA-11: WDC WDS500G2B0A-00SM50, X61130WD, max UDMA/133
[    1.606147] ata1.00: 976773168 sectors, multi 1: LBA48 NCQ (depth 32), AA
[    1.608334] ata1.00: configured for UDMA/133
[    1.618918] scsi 0:0:0:0: Direct-Access     ATA      WDC WDS500G2B0A- 30WD PQ: 0 ANSI: 5
[    3.829368] ata2: SATA link down (SStatus 1 SControl 300)
[    4.051917] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
[    4.804937] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
At this point, nothing illogical at all.
But what really pissed me off was... Windows 7/8 can see it! It has no problem with the unit, it doesn't hang, and all normal operations can be done without surprises. (No reports or or warning messages also).
A little inspection shows that the Windows driver is the same as the A disk, nothing exotic, just a standard Microsoft driver.
So... It will be possible to configure Debian to do whatever Windows is doing to access the drive?

Notes:
Some data:
  • Kernel image: 4.19.0-1-amd54
  • BIOS version is at latest release: 3.04
  • Windows driver files: disk.sys, EhStorClass.sys, partmgr.sys, all version 10.0.16299 from Microsoft
  • It doesn't matter which drive is actually in which place: BIOS just detect the "normal" bay disk, same about Debian.
  • BIOS has very few items to tweak, it is just ugly. Changing UEFI/Legacy and Secure Boot / Non-secure boot didn't change a thing, anyway.


Thanks in advance.

Last edited by andrei.wap; 01-27-2019 at 09:19 PM.
 
Old 01-26-2019, 03:53 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by andrei.wap View Post
BIOS didn't list the B disk.
hard to believe that windows sees it, but if you say so.

please show us
Code:
sudo fdisk -l

PS:
grep -E "ata|ATA"
is almost the same as
grep -i ata
 
Old 01-27-2019, 09:30 PM   #3
andrei.wap
LQ Newbie
 
Registered: Jul 2009
Location: Argentina
Distribution: Debian testing amd64
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ondoho View Post
hard to believe that windows sees it, but if you say so.
Thank you for your reply.
Keep in mind that I don't know if BIOS can actually detect it. What I meant to say is that it is not listed in the BIOS UI.
BTW, I know nothing about how BIOS interact with operative systems or how OSs detect and load devices, sorry if I'm being a little confusing.

As you requested, "fdisk -l" output:
Code:
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WDS500G2B0A-
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x019745eb

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1  *         2048    206847    204800  100M  7 HPFS/NTFS/exFAT
/dev/sda2          206848 201328639 201121792 95.9G  7 HPFS/NTFS/exFAT
/dev/sda3       201328640 402655231 201326592   96G  7 HPFS/NTFS/exFAT
/dev/sda4       402657278 528533503 125876226   60G  5 Extended
/dev/sda5       402657280 469764095  67106816   32G 83 Linux
/dev/sda6       469766144 494940159  25174016   12G 83 Linux
/dev/sda7       494942208 528533503  33591296   16G 82 Linux swap / Solaris
 
Old 01-28-2019, 12:54 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
apparently there's only one hard drive in your machine.

it must be the optical bay caddy that is not recognized properly on Linux.

can you unplug it while the system (Linux) is running?
if you can please do so.
then enter 'dmesg -w'.
then re-plug the caddy and wait half a minute.
then show us everything NEW that appeared after you plugged it in.
 
Old 01-29-2019, 04:21 PM   #5
andrei.wap
LQ Newbie
 
Registered: Jul 2009
Location: Argentina
Distribution: Debian testing amd64
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ondoho View Post
then show us everything NEW that appeared after you plugged it in.
Your're gonna love this: absolutely nothing. Nothing at unplug, nothing when I plugged the caddy in.
 
Old 01-30-2019, 12:08 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
just to make sure:
the hard drive is connected inside the caddy when you do that, yes?

oh and not sure if i remember correctly, did you say that windows recognizes the drive?
if yes, i'd try some BIOS options next.
if no, i'd try to unplug the hard drive again, look at all connectors, see if everything is clean, no bent pins, fluff or hair shorting to pins etc.
 
Old 03-15-2019, 06:40 PM   #7
andrei.wap
LQ Newbie
 
Registered: Jul 2009
Location: Argentina
Distribution: Debian testing amd64
Posts: 20

Original Poster
Rep: Reputation: 0
I had have no more time for this problem, so I just bought an external USB 3.0 carry and put the HDD inside it. At least it works.
Thank you Ondoho for all your suggestions, anyways.
 
Old 03-15-2019, 06:54 PM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
I've got a dvd caddy for hdd
https://www.ebay.com/itm/CD-DVD-Univ...wAAOSwlAVcEKEb
and it works fine. for external and to save a little money I use these,

https://www.ebay.com/itm/USB-3-0-To-...r=571565488304
for 2.5 laptop drives.
 
  


Reply

Tags
debian, lenovo, optical, windows



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
External caddy not recognized. syklone Linux - Hardware 10 07-26-2013 06:03 AM
Unable to get Phatbox hard drive caddy to mount PetrosPetros Linux - Hardware 10 03-11-2011 02:26 PM
reading /home/ on HDD in USB caddy xc_gumby Linux - General 1 10-29-2005 01:02 PM
Sunami External USB 2.0 HDD caddy, Hitachi 40gb drive nickpye Linux - Hardware 1 02-16-2004 05:36 PM
Red Hat8 GUI Login screen + Caddy Ravenator Linux - Hardware 1 04-14-2003 06:46 PM

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

All times are GMT -5. The time now is 05:34 PM.

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