Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hard Drive enclosures
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Sun Oct 15, 2017 12:16 am    Post subject: Hard Drive enclosures Reply with quote

Evening all!

I was curious if anyone is using one of these http://www.mediasonic.ca/product.php?id=1358153144

I have 2 of these (4 bay and 8 bay) that does not show the drives. When I was using a LiveDVD to install Gentoo (KDE as DE) they were visible through fdisk -l but as soon as I boot into the system, they are not viewable. I am currently using Fluxbox, so I can only assume that KDE has specific software used to view the drives?

Any help would be appreciated, I changed this box from Windows to Gentoo/Fluxbox for a more stable HTPC.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7160
Location: almost Mile High in the USA

PostPosted: Sun Oct 15, 2017 12:47 am    Post subject: Reply with quote

I don't have one but likely it uses a port multiplier (if using esata). You'll need to enable port multiplier support in your kernel.

If you're using USB3 then likely you need both USB3-usb-storage working.

Likely for both you need multi-LUN support in SCSI options.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Tue Oct 17, 2017 9:25 pm    Post subject: Reply with quote

So here is the output of dmesg from the LiveDVD (the drives are visible when I boot into LiveDVD). Unfortunately, this is beyond my knowledge, so a little help setting up the correct kernel module would be awesome:

https://paste.pound-python.org/show/4c6BuvPQJUJ3V80RT0rP/

Thanks in advance for any assistance.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7160
Location: almost Mile High in the USA

PostPosted: Tue Oct 17, 2017 10:05 pm    Post subject: Reply with quote

Odd, what version of the kernel fails? Looks like the LUN problem should not be a problem for ~4.4 and later kernels.

So it is hooked up to USB and not eSATA?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Tue Oct 17, 2017 10:08 pm    Post subject: Reply with quote

Yeah, hooked up through USB, version 4.12.12
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7160
Location: almost Mile High in the USA

PostPosted: Tue Oct 17, 2017 10:28 pm    Post subject: Reply with quote

Does it show the USB device plugged in? The dmesg of the broken kernel would be helpful.
Does it show any of the hard drives? If not, make sure you have CONFIG_USB_STORAGE set. Might want to investigate the options under that too.
If it only shows one drive on each, then I have no idea...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?


Last edited by eccerr0r on Tue Oct 17, 2017 10:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Tue Oct 17, 2017 10:30 pm    Post subject: Reply with quote

https://paste.pound-python.org/show/ohHjTTW7WZJIIvXJz5zZ/

Voila!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7160
Location: almost Mile High in the USA

PostPosted: Tue Oct 17, 2017 10:44 pm    Post subject: Reply with quote

Okay, now it looks like it's simply not detecting the drive bays at all, usb subsystem... Since it detects your USB stick, usb-storage is working.

Confirm 'lsusb' does not show the USB-SATA bridge. Can you swap the usb flash stick and the storage bay, just to see if the kernel has that driver and to narrow down the search space.

Currently it would seem to be some issue with your usb host or hub/software... hmm.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Tue Oct 17, 2017 11:20 pm    Post subject: Reply with quote

Code:
# lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0951:1666 Kingston Technology DataTraveler 100 G3/G4/SE9 G2
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Doesn't matter which port I plug the hard drive enclosure into, they're not recognized.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7160
Location: almost Mile High in the USA

PostPosted: Wed Oct 18, 2017 12:48 am    Post subject: Reply with quote

Aha... this might be the smoking gun. I don't think it's your enclosure but the kernel not working with your XHCI properly. (And the enclosure probably being USB3 only?)

Code:
[   19.465231] xhci_hcd 0000:03:00.0: can't setup: -110
[   19.465491] AMD-Vi: Event logged [
[   19.465492] IO_PAGE_FAULT device=03:00.0 domain=0x0003 address=0x00000000dca03880 flags=0x0000]


though I don't know how to fix it...

I found a hint that you should try:

Code:
 iommu=soft


in your kernel boot command line to see if it helps.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Wed Oct 18, 2017 10:35 pm    Post subject: Reply with quote

Sorry eccerr0r, unfortunately I'm going to need a little more guidance than "your kernel boot command line." Not sure where to edit that mate.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7160
Location: almost Mile High in the USA

PostPosted: Wed Oct 18, 2017 10:47 pm    Post subject: Reply with quote

Hmm... If you're using grub2, try editing /boot/grub/grub.cfg if you've edited it before. Look for a
Code:
     linux blahblablah....

and add iommu=soft to the end of that line.

If you generated your grub.cfg automatically with grub-mkconfig and did not manually touch grub.cfg, then you should edit /etc/default/grub and look for GRUB_CMDLINE_LINUX and add "iommu=soft" to that. Create a new line in that file if GRUB_CMDLINE_LINUX is commented out. Then rerun grub-mkconfig like when you did during the first time around to regenerate your grub.cfg.

If you don't use grub2... let us know which one you use.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum