Secondary Sata hdd recognized as Usb hdd

  • Hello,

    I installed LibreElec for the first time on a new Asrock J5005 based machine

    I noticed that my second hard drive is detected as a usb hard drive while it is connected in SATA

    Is this a problem linux or kodi? like correct that?

    I try in NTFS and Ext4 I have the same result

    the LibreElec version install is 8.90.003

    Thank you for your response

    and sorry for my bad english

    • Official Post

    dmesg shows 2x SATA controllers with 2x 6.0 Gb/sec and 1x 1.5Gb/sec channels in use with a 120GB (Sandisk SSD) as /dev/sda and 2.0TB (Seagate) drive as /dev/sdb and a BD player for optical media. The 2TB drive has some GPT partition header problems and Linux tends to err on the side of caution to avoid further damage to the filesystem; there's no log messages to suggest it mounted. Log entries are adjacent to some USB related messages but none of your drives show as connected to the USB bus.

    [    3.158910] GPT:Primary header thinks Alt. header is not at the end of the disk.
    [    3.158914] GPT:3907029163 != 3907029167
    [    3.158916] GPT:Alternate GPT header not at the end of the disk.
    [    3.158918] GPT:3907029163 != 3907029167
    [    3.158919] GPT: Use GNU Parted to correct GPT errors.

    ^ fix the problem and the 2TB drive will mount.

  • Yes the Asrock J5005-ITX as 2x SATA controllers

    on the first is connected a 120GB SSD Sandisk and a BD Player

    on the second is connected a 2TB HDD Seagate

    How can I fix the problem ?

    thank you

  • OK, thanks

    I test this later in the day and let you know if it works

    The hdd is not recent, but has long been in a drawer. I would make a backup as you suggested

    Thank you

  • Hello,

    I Fix the GPT Table and reformat in ext4... i've the same problème !!! the HDD is recognized as usb hdd

    I teste a reinstall of libreelec = same problem

    I teste to convert GPT in MBR = same problem

    Under windows 10 (Other PC) the hdd is recognized normally

    • Official Post
    [    3.003630] ata3.00: ATA-8: ST2000LM003 HN-M201RAD, 2BE10001, max UDMA/133
    [    3.096836] scsi 2:0:0:0: Direct-Access     ATA      ST2000LM003 HN-M 0001 PQ: 0 ANSI: 5
    [    3.097242] sd 2:0:0:0: Attached scsi generic sg2 type 0
    [    3.097550] sd 2:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
    [    3.097556] sd 2:0:0:0: [sdb] 4096-byte physical blocks
    [    3.097602] sd 2:0:0:0: [sdb] Write Protect is off
    [    3.097607] sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
    [    3.097720] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [    3.159969] sd 2:0:0:0: [sdb] Attached SCSI disk

    ^ definitely *not* a USB device

    run "parted -s /dev/sdb unit s print | paste" then "blkid | paste" and "mount | paste" ..

  • Yes the HDD is mounted, but kodi recognizes it in usb

    what can I do wrong ?

    I check parameter in bios ... is not solution ... I reinstall LibreElec ... is not solution ... I remake the partition table in GPT and MBR ... is not solution ...

    I think to put my HTPC under windows ... at least I know better than Linux ... But it's a pity


    J'ai testé avec un autre HDD (Seagate 500gb) le problème est exactement le même celui-ci est aussi reconnu en usb hdd !!

    For me it's not the hdd the problem ... Either LibreElec does not support my hardware properly ... Either the second SATA controller is connected to the motherboard in usb, which would be weird

    Edited once, last by Alexis67 ().

  • Kodi also puts a removable media notification on startup

    If it's not important, I'll continue my tests

    But it's a shame ... I like to have something proprely

    • Official Post

    I've been told that udev is setting a property that marks it as removable and Kodi displays icons based on that propery, but I'll need to dig further to figure out what/where and whether it can be changed. This is really a cosmetic level issue; the drive is correctly mounted and 100% usable, there is nothing 'broken' in that sense.