Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Beta 1.1] HDD not recognized anymore (behind a usb to sata raid controller) #447

Closed
hetsch opened this issue Aug 25, 2013 · 4 comments
Closed
Assignees

Comments

@hetsch
Copy link

hetsch commented Aug 25, 2013

Hi,

i have a USB3 raid enclosure containing two 2,5" drives. It's a Lindy device, something like that:
http://www.amazon.de/Lindy-Elektronik-20288-Dual-Mobile/dp/B004IXYE9S/ref=pd_sim_sbs_ce_1
The enclosed drives are not used in raid mode, they are should be recognized as standalone drives (sda1, sdb1). This worked perfectly fine in any previous versions of xbian. Fdisk was showing two drives. Since the Beta 1.1 or 1 version only one drive is recognized. This might have something to do with the builtin jmicron usb controller (usb3 to data). Have there been any changes regarding usb drives in the kernel modules?

Thanks and here is some debugging information:

fdisk -l

Disk /dev/mmcblk0: 7948 MB, 7948206080 bytes
4 heads, 16 sectors/track, 242560 cylinders, total 15523840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f06a6

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            2048       71679       34816    c  W95 FAT32 (LBA)
/dev/mmcblk0p2           71680    15523839     7726080   83  Linux

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
26 heads, 24 sectors/track, 3130649 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048  1953521663   976759808   83  Linux

There should be a second drive (identical drive) recognized.

lsusb -v

...

Bus 001 Device 004: ID 152d:2551 JMicron Technology Corp. / JMicron USA Technology Corp. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x152d JMicron Technology Corp. / JMicron USA Technology Corp.
  idProduct          0x2551 
  bcdDevice            1.00
  iManufacturer          10 G-Max Technology Co., Ltd.
  iProduct               11 USB Mass Storage
  iSerial                 3 00000000006A
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 USB Mass Storage
    bmAttributes         0xc0
      Self Powered
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              6 MSC Bulk-Only Transfer
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Status:     0x0001
  Self Powered

...

Smartmontools is able to find them and show some basic infos

smartctl -i --device=usbjmicron,0 /dev/sda1
smartctl 6.2 2013-07-26 r3841 [armv6l-linux-3.9.8+] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     Hitachi HTS541010A9E680
Serial Number:    J8400076G8ZDND
LU WWN Device Id: 5 000cca 6a0c4151e
Firmware Version: JA0OA480
User Capacity:    1,000,204,886,016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 2.6, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Sun Aug 25 10:03:53 2013 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
smartctl -i --device=usbjmicron,1 /dev/sda1
smartctl 6.2 2013-07-26 r3841 [armv6l-linux-3.9.8+] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     Hitachi HTS541010A9E680
Serial Number:    J8400076G8LGSD
LU WWN Device Id: 5 000cca 6a0c3e853
Firmware Version: JA0OA480
User Capacity:    1,000,204,886,016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 2.6, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Sun Aug 25 10:05:02 2013 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
@mk01
Copy link
Member

mk01 commented Aug 25, 2013

http://forum.xbian.org/thread-1227.html

this is solved

@ghost ghost assigned mk01 Aug 25, 2013
@hetsch
Copy link
Author

hetsch commented Aug 25, 2013

All right, thanks. This looks like the same problem.

But i'm not quite sure what to do it now. Which new packages do i have to install and might this break something?

@mk01
Copy link
Member

mk01 commented Aug 25, 2013

http://forum.xbian.org/thread-1227-post-14079.html#pid14079

only difference is that you will find newer version on the repo and you should not encounter the error.

so

apt-get install rng-tools
wget http://ivka57.dyndns-ip.com/pool/main/x/xbian-package-kernel/xbian-package-kernel_1.3-4.5_armhf.deb
wget http://ivka57.dyndns-ip.com/pool/main/x/xbian-package-initramfs-tools/xbian-package-initramfs-tools_1.0-2.3_armhf.deb
wget http://ivka57.dyndns-ip.com/pool/main/x/xbian-package-splash/xbian-package-splash_1.0-1.1_armhf.deb
wget http://ivka57.dyndns-ip.com/pool/main/b/btrfs-tools/btrfs-tools_1.0-xbian_armhf.deb
dpkg -i *.deb

@hetsch
Copy link
Author

hetsch commented Aug 25, 2013

Thx, this is working! Only added this to package list (kernel dependency):
wget http://ivka57.dyndns-ip.com/pool/main/x/xbian-package-firmware/xbian-package-firmware_1.4-4_armhf.deb

@hetsch hetsch closed this as completed Aug 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants