LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-22-2019, 01:58 PM   #1
jgoeller
LQ Newbie
 
Registered: Sep 2006
Posts: 9

Rep: Reputation: 1
4TB usb drive not recognized on Centos 7 but works on Centos 6


I have a 4 TB SATA drive plugged into a USB3 to Sata Converter , it is GPT with an ext4 File system on it, when I plug it into an Centos 6 machine it mounts and works fine.

I plug the same drive into any one of several Centos 7 Machines and they don't even recognize that something was plugged into the USB port. there are no new message on /var/log/messege or dmesg. yet if I take the same usb to Sata cable and plug a 1 TB drive into it and plug that into any ofthe Cantos 7 machine it works perfectly.

To me I'm thinking I am missing a driver , but not sure which one.
 
Old 05-22-2019, 02:41 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Maybe you can figure out what the driver is by looking at /var/log/messages, dmsg and dmidecode output on the CentOS6 machine after you attach the drive. You can then check your CentOS7 system to see if it has comparable.

It occurred to me as I was writing this that I have seen multipathd take control of USB drives when I haven't blacklisted them in multipath.conf. Do you buy any chance have multipathd running on the CentOS7 but not the CentOS6?
 
1 members found this post helpful.
Old 05-22-2019, 02:47 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Power issue? How is this gizmo powered?
 
Old 05-22-2019, 03:17 PM   #4
jgoeller
LQ Newbie
 
Registered: Sep 2006
Posts: 9

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by MensaWater View Post
Maybe you can figure out what the driver is by looking at /var/log/messages, dmsg and dmidecode output on the CentOS6 machine after you attach the drive. You can then check your CentOS7 system to see if it has comparable.


here is the messages from when it attaches succesfully to the Centos 6 machine

Code:
May 17 10:29:45 boston kernel: usb 1-1.1: new high speed USB device number 18 using ehci_hcd
May 17 10:29:45 boston kernel: usb 1-1.1: New USB device found, idVendor=152d, idProduct=0578
May 17 10:29:45 boston kernel: usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 17 10:29:45 boston kernel: usb 1-1.1: Product: External Disk 3.0
May 17 10:29:45 boston kernel: usb 1-1.1: Manufacturer: JMicron
May 17 10:29:45 boston kernel: usb 1-1.1: SerialNumber: 0B136101779446
May 17 10:29:45 boston kernel: usb 1-1.1: configuration #1 chosen from 1 choice
May 17 10:29:45 boston kernel: scsi14 : SCSI emulation for USB Mass Storage devices
May 17 10:29:46 boston kernel: scsi 14:0:0:0: Direct-Access     JMicron  Tech             3202 PQ: 0 ANSI: 6
May 17 10:29:46 boston kernel: sd 14:0:0:0: Attached scsi generic sg3 type 0
May 17 10:29:46 boston kernel: sd 14:0:0:0: [sdc] Very big device. Trying to use READ CAPACITY(16).
May 17 10:29:46 boston kernel: sd 14:0:0:0: [sdc] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)
May 17 10:29:46 boston kernel: sd 14:0:0:0: [sdc] 4096-byte physical blocks
May 17 10:29:46 boston kernel: sd 14:0:0:0: [sdc] Write Protect is off
May 17 10:29:46 boston kernel: sd 14:0:0:0: [sdc] Assuming drive cache: write through
May 17 10:29:46 boston kernel: sd 14:0:0:0: [sdc] Very big device. Trying to use READ CAPACITY(16).
May 17 10:29:46 boston kernel: sd 14:0:0:0: [sdc] Assuming drive cache: write through
May 17 10:29:46 boston kernel: sdc: sdc1
May 17 10:29:46 boston kernel: sd 14:0:0:0: [sdc] Very big device. Trying to use READ CAPACITY(16).
May 17 10:29:46 boston kernel: sd 14:0:0:0: [sdc] Assuming drive cache: write through
May 17 10:29:46 boston kernel: sd 14:0:0:0: [sdc] Attached SCSI disk
May 17 10:29:46 boston ata_id[34692]: HDIO_GET_IDENTITY failed for '/dev/sdc'
May 17 10:29:46 boston ata_id[34704]: HDIO_GET_IDENTITY failed for '/dev/sdc'


It occurred to me as I was writing this that I have seen multipathd take control of USB drives when I haven't blacklisted them in multipath.conf. Do you buy any chance have multipathd running on the CentOS7 but not the CentOS6?
not sure if multipath is running on the centos machine how ever on the centos 7 machine it is in error



Code:
# systemctl status multipathd 
\u25cf multipathd.service - Device-Mapper Multipath Device Controller
   Loaded: loaded (/usr/lib/systemd/system/multipathd.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
Condition: start condition failed at Mon 2018-07-09 13:04:55 EDT; 10 months 12 days ago
[root@blondie etc]# systemctl restart  multipathd 
[root@blondie etc]# systemctl status multipathd 
\u25cf multipathd.service - Device-Mapper Multipath Device Controller
   Loaded: loaded (/usr/lib/systemd/system/multipathd.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
Condition: start condition failed at Wed 2019-05-22 15:55:39 EDT; 1s ago
           ConditionPathExists=/etc/multipath.conf was not met
[root@blondie etc]# systemctl stop  multipathd 
[root@blondie etc]# systemctl start   multipathd 
[root@blondie etc]# systemctl status multipathd 
\u25cf multipathd.service - Device-Mapper Multipath Device Controller
   Loaded: loaded (/usr/lib/systemd/system/multipathd.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
Condition: start condition failed at Wed 2019-05-22 16:15:41 EDT; 2s ago
           ConditionPathExists=/etc/multipath.conf was not met
 
Old 05-22-2019, 03:17 PM   #5
jgoeller
LQ Newbie
 
Registered: Sep 2006
Posts: 9

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by jefro View Post
Power issue? How is this gizmo powered?
Power is not an issue
 
Old 05-22-2019, 03:41 PM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
It appears others have had issues with Jmicron.

This post references yet another post that talks about loading a driver:
Quote:
drave40 wrote:

Just in case anyone still has this problem ( I did, that's how i landed here)

disconnect from USB
find jmicron driver. on my system it's called "pata_jmicron"
load it, "modprobe pata_jmicron"
connect to USB gain

dahdah everything is visible. well, it is here

cheers
On checking my RHEL7 workstation I see there is a driver for that pata_jmicron.ko in the path for each of my kernel versions. Since it is there on RHEL7 it is likely there on CentOS7 which is a binary compile of RHEL7 source. Running "find /usr/lib/modules -name pata_jmicron.ko" should show you same. The subdirectories represent kernel versions and you'd want to try the one that matches your running kernel as reported by "uname -a". No idea if it will work because I don't have a Jmicron device.

On plugging in a WD MyBook 3 TB to my RHEL7 it found the drive so this may be a limitation for that Jmicron.

Last edited by MensaWater; 05-22-2019 at 03:42 PM.
 
2 members found this post helpful.
Old 05-24-2019, 11:26 AM   #7
capt ron
Member
 
Registered: Aug 2003
Location: Albuquerque New Mexico
Distribution: LinuxMint 19.1
Posts: 53

Rep: Reputation: 9
Is the CentOS 7 machine a 32-bit platform?
 
Old 05-28-2019, 09:09 AM   #8
jgoeller
LQ Newbie
 
Registered: Sep 2006
Posts: 9

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by MensaWater View Post
It appears others have had issues with Jmicron.

This post references yet another post that talks about loading a driver:


On checking my RHEL7 workstation I see there is a driver for that pata_jmicron.ko in the path for each of my kernel versions. Since it is there on RHEL7 it is likely there on CentOS7 which is a binary compile of RHEL7 source. Running "find /usr/lib/modules -name pata_jmicron.ko" should show you same. The subdirectories represent kernel versions and you'd want to try the one that matches your running kernel as reported by "uname -a". No idea if it will work because I don't have a Jmicron device.

On plugging in a WD MyBook 3 TB to my RHEL7 it found the drive so this may be a limitation for that Jmicron.

It apperar that the jmicron controller is the issue. I picked up a different USB to Sata controller over the weekend , and it works like a charm !

Thank you
 
1 members found this post helpful.
  


Reply



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
Debian 9, unable to mount 4TB NTFS drive after numerous attempts, works fine on windows unixunderground Linux - Hardware 7 10-23-2017 02:08 PM
4TB HD on Kubuntu 14.10 - shows as 2tb (1.7 actually) but Fdisk says 4TB. - What can I do? cilbuper Linux - Hardware 10 12-14-2015 06:34 PM
Complete frustration: trying to share a Seagate 4tb drive (usb) on windows network MrDooDooHead Linux - Newbie 5 02-02-2015 04:31 PM
[SOLVED] New 4TB drive install in debian 6 bcyork Linux - Newbie 6 09-30-2013 04:24 PM

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

All times are GMT -5. The time now is 05:19 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