View previous topic :: View next topic |
Author |
Message |
Evil.2000 n00b
Joined: 08 Jul 2006 Posts: 68 Location: Germany
|
Posted: Wed Apr 04, 2018 8:34 pm Post subject: [solved] ahci only detecting 4 SATA Ports but 6 are installe |
|
|
Hello!
I got a used SATA HDD from my old RAID system and connected it to my last SATA Port in the system: Port 5.
The BIOS is configured to treat the SATA HDDs as IDE disks and successfully detects my WD black HDD. But Gentoo doesn't
So i looked into dmsg and was wondering why the ahci driver only detects 4 SATA "slots":
Code: | [ 2.199144] ahci 0000:00:11.0: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode | Can someone explain to me, why it doesn't recognize the 5th and 6th (E-SATA) port?
Thanks!
Here's some output which might help:
dmidecode
Code: |
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
Manufacturer: ASUSTeK Computer INC.
Product Name: Crosshair III Formula
Version: Rev 1.xx
Serial Number: 101866090000721
Asset Tag: To Be Filled By O.E.M.
Features:
Board is a hosting board
Board is replaceable
Location In Chassis: To Be Filled By O.E.M.
Chassis Handle: 0x0003
Type: Motherboard
Contained Object Handles: 0
[...]
Handle 0x0031, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: SATA1
Internal Connector Type: SAS/SATA Plug Receptacle
External Reference Designator: Not Specified
External Connector Type: None
Port Type: SATA
Handle 0x0032, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: SATA2
Internal Connector Type: SAS/SATA Plug Receptacle
External Reference Designator: Not Specified
External Connector Type: None
Port Type: SATA
Handle 0x0033, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: SATA3
Internal Connector Type: SAS/SATA Plug Receptacle
External Reference Designator: Not Specified
External Connector Type: None
Port Type: SATA
Handle 0x0034, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: SATA4
Internal Connector Type: SAS/SATA Plug Receptacle
External Reference Designator: Not Specified
External Connector Type: None
Port Type: SATA
Handle 0x0035, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: SATA5
Internal Connector Type: SAS/SATA Plug Receptacle
External Reference Designator: Not Specified
External Connector Type: None
Port Type: SATA |
ls -al /dev/sd*
Code: |
brw-rw---- 1 root disk 8, 0 4. Apr 21:37 /dev/sda
brw-rw---- 1 root disk 8, 1 4. Apr 21:37 /dev/sda1
brw-rw---- 1 root disk 8, 2 4. Apr 21:37 /dev/sda2
brw-rw---- 1 root disk 8, 3 4. Apr 21:37 /dev/sda3
brw-rw---- 1 root disk 8, 4 4. Apr 21:37 /dev/sda4
brw-rw---- 1 root disk 8, 16 4. Apr 21:37 /dev/sdb
brw-rw---- 1 root disk 8, 17 4. Apr 21:37 /dev/sdb1
brw-rw---- 1 root disk 8, 32 4. Apr 21:37 /dev/sdc
brw-rw---- 1 root disk 8, 48 4. Apr 21:37 /dev/sdd
brw-rw---- 1 root disk 8, 49 4. Apr 21:37 /dev/sdd1
brw-rw---- 1 root disk 8, 64 4. Apr 21:37 /dev/sde
brw-rw---- 1 root disk 8, 65 4. Apr 21:37 /dev/sde1 |
uname -a
Code: | Linux Deep-Thought 4.12.12-gentoo #4 SMP Mon Feb 19 19:02:46 CET 2018 x86_64 AMD Phenom(tm) II X4 965 Processor AuthenticAMD GNU/Linux |
dmesg | egrep '(ata|sg|sd|scsi|ahci)'
Code: | [ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.12.12-gentoo root=/dev/sda2 ro init=/usr/lib/systemd/systemd
[ 0.000000] BIOS-e820: [mem 0x00000000aff90000-0x00000000affa7fff] ACPI data
[ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-4.12.12-gentoo root=/dev/sda2 ro init=/usr/lib/systemd/systemd
[ 0.000000] Memory: 6101708K/6290616K available (10415K kernel code, 1357K rwdata, 4912K rodata, 1148K init, 2780K bss, 188908K reserved, 0K cma-reserved)
[ 0.358094] libata version 3.00 loaded.
[ 0.806898] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.810484] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 2.198932] ahci 0000:00:11.0: version 3.0
[ 2.199144] ahci 0000:00:11.0: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode
[ 2.199152] ahci 0000:00:11.0: flags: 64bit ncq sntf ilck pm led clo pmp pio slum part ccc sxs
[ 2.199575] scsi host0: ahci
[ 2.199686] scsi host1: ahci
[ 2.199778] scsi host2: ahci
[ 2.199871] scsi host3: ahci
[ 2.199905] ata1: SATA max UDMA/133 abar m1024@0xf5ffe400 port 0xf5ffe500 irq 29
[ 2.199912] ata2: SATA max UDMA/133 abar m1024@0xf5ffe400 port 0xf5ffe580 irq 29
[ 2.199918] ata3: SATA max UDMA/133 abar m1024@0xf5ffe400 port 0xf5ffe600 irq 29
[ 2.199924] ata4: SATA max UDMA/133 abar m1024@0xf5ffe400 port 0xf5ffe680 irq 29
[ 2.528988] usbcore: registered new interface driver ums-datafab
[ 2.530258] usbcore: registered new interface driver ums-isd200
[ 2.532274] usbcore: registered new interface driver ums-sddr09
[ 2.532662] usbcore: registered new interface driver ums-sddr55
[ 2.548277] scsi_host host0: hash matches
[ 2.548432] scsi host0: hash matches
[ 2.549467] acpi_cpufreq: overriding BIOS provided _PSD data
[ 2.665824] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 2.666021] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 2.666217] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 2.666409] ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 2.669480] ata2.00: ATAPI: HL-DT-ST BDDVDRW CH08LS10, 1.00, max UDMA/133
[ 2.669661] ata4.00: ATAPI: PLEXTOR BD-R PX-LB950SA, 1.03, max UDMA/100
[ 2.671506] ata4.00: configured for UDMA/100
[ 2.672986] ata1.00: ATA-8: SAMSUNG HD103SJ, 1AJ100E4, max UDMA/133
[ 2.673145] ata1.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[ 2.673296] ata3.00: ATA-7: SAMSUNG HD322HJ, 1AG01113, max UDMA7
[ 2.673509] ata3.00: 625142448 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[ 2.674333] ata2.00: configured for UDMA/133
[ 2.679514] scsi host4: usb-storage 2-2:1.0
[ 2.679565] ata1.00: configured for UDMA/133
[ 2.680117] scsi 0:0:0:0: Direct-Access ATA SAMSUNG HD103SJ 00E4 PQ: 0 ANSI: 5
[ 2.680607] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 2.680660] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[ 2.680680] sd 0:0:0:0: [sda] Write Protect is off
[ 2.680681] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 2.680715] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2.681229] ata3.00: configured for UDMA/133
[ 2.694573] sda: sda1 sda2 sda3 sda4
[ 2.694746] scsi 1:0:0:0: CD-ROM HL-DT-ST BDDVDRW CH08LS10 1.00 PQ: 0 ANSI: 5
[ 2.695355] sd 0:0:0:0: [sda] Attached SCSI disk
[ 2.730066] sr 1:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[ 2.730557] sr 1:0:0:0: Attached scsi CD-ROM sr0
[ 2.730608] sr 1:0:0:0: Attached scsi generic sg1 type 5
[ 2.731039] scsi 2:0:0:0: Direct-Access ATA SAMSUNG HD322HJ 1113 PQ: 0 ANSI: 5
[ 2.731515] sd 2:0:0:0: Attached scsi generic sg2 type 0
[ 2.731590] sd 2:0:0:0: [sdb] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[ 2.731612] sd 2:0:0:0: [sdb] Write Protect is off
[ 2.731613] sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 2.731648] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2.737359] sdb: sdb1
[ 2.737880] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 2.738082] scsi 3:0:0:0: CD-ROM PLEXTOR BD-R PX-LB950SA 1.03 PQ: 0 ANSI: 5
[ 2.765814] sr 3:0:0:0: [sr1] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[ 2.766117] sr 3:0:0:0: Attached scsi CD-ROM sr1
[ 2.766169] sr 3:0:0:0: Attached scsi generic sg3 type 5
[ 2.882045] scsi host5: usb-storage 1-2:1.0
[ 3.683677] scsi 4:0:0:0: Direct-Access Generic STORAGE DEVICE 0903 PQ: 0 ANSI: 6
[ 3.683991] sd 4:0:0:0: Attached scsi generic sg4 type 0
[ 3.693475] sd 4:0:0:0: [sdc] Attached SCSI removable disk
[ 4.178446] scsi 5:0:0:0: Direct-Access ST950032 5AS 0002 PQ: 0 ANSI: 2
[ 4.178806] sd 5:0:0:0: Attached scsi generic sg5 type 0
[ 4.183677] sd 5:0:0:0: [sdd] 976773165 512-byte logical blocks: (500 GB/466 GiB)
[ 4.185063] sd 5:0:0:0: [sdd] Write Protect is off
[ 4.185246] sd 5:0:0:0: [sdd] Mode Sense: 00 06 00 00
[ 4.186427] sd 5:0:0:0: [sdd] No Caching mode page found
[ 4.186615] sd 5:0:0:0: [sdd] Assuming drive cache: write through
[ 4.240275] sdd: sdd1
[ 4.251772] sd 5:0:0:0: [sdd] Attached SCSI disk
[ 4.624827] scsi host6: uas
[ 4.627228] scsi 6:0:0:0: Direct-Access Dell Portable 0302 PQ: 0 ANSI: 6
[ 4.630438] sd 6:0:0:0: Attached scsi generic sg6 type 0
[ 4.633601] sd 6:0:0:0: [sde] 1953525167 512-byte logical blocks: (1.00 TB/932 GiB)
[ 4.633820] sd 6:0:0:0: [sde] 4096-byte physical blocks
[ 4.635054] sd 6:0:0:0: [sde] Write Protect is off
[ 4.635238] sd 6:0:0:0: [sde] Mode Sense: 4f 00 00 00
[ 4.637471] sd 6:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 4.648972] sde: sde1
[ 4.656057] sd 6:0:0:0: [sde] Attached SCSI disk
[ 6.050664] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities
[ 6.078992] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[ 6.111248] Write protecting the kernel read-only data: 18432k
[ 7.036053] cgroup: cgroup2: unknown option "nsdelegate"
[ 9.768084] EXT4-fs (sda2): re-mounted. Opts: (null)
[ 12.887561] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[ 12.940880] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[ 13.673639] EXT4-fs (sda4): mounting ext3 file system using the ext4 subsystem
[ 13.706760] EXT4-fs (sda4): warning: maximal mount count reached, running e2fsck is recommended
[ 13.723892] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
[ 13.751165] Adding 6297476k swap on /dev/sda3. Priority:-1 extents:1 across:6297476k
[ 15.821391] EXT4-fs (sdd1): mounted filesystem with ordered data mode. Opts: (null)
[ 59.020309] traps: gsettings-data-[2777] trap int3 ip:7fa2d9846091 sp:7ffd6fe80330 error:0 in libglib-2.0.so.0.5200.3[7fa2d97f4000+116000]
[ 59.215961] traps: gsettings-data-[2896] trap int3 ip:7fd3c5af4091 sp:7fff71adb550 error:0 in libglib-2.0.so.0.5200.3[7fd3c5aa2000+116000]
[ 67.446486] EXT4-fs (sde1): mounted filesystem with ordered data mode. Opts: (null) |
_________________ ███ - All is a file. And if not, it should be.
Last edited by Evil.2000 on Wed Apr 04, 2018 9:57 pm; edited 1 time in total |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54782 Location: 56N 3W
|
Posted: Wed Apr 04, 2018 8:43 pm Post subject: |
|
|
Evil.2000,
Wild guess, Your AHCI controller is in IDE mode. Check your BIOS.
IDE mode is intended to be used once only by Windows XP users so that they can can install the AHCI driver.
IDE mode usually offers incomplete functionality. Only some parts work, no DMA ...
Thu giveaway is lspci.
Code: | 00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] |
If you have IDE Mode where I have AHCI mode, its a BIOS configuration change. See page 3-21 _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Evil.2000 n00b
Joined: 08 Jul 2006 Posts: 68 Location: Germany
|
Posted: Wed Apr 04, 2018 9:23 pm Post subject: |
|
|
Yes it is in IDE mode.
If I switch to AHCI mode in BIOS i get an grub error:
Code: | error: file '/grub/i386-pc/normal.mod' not found
Entering recovery mode... |
If I switch back to IDE mode, it boots fine. _________________ ███ - All is a file. And if not, it should be. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54782 Location: 56N 3W
|
Posted: Wed Apr 04, 2018 9:35 pm Post subject: |
|
|
Evil.2000,
Switch to AHCI mode. Boot a liveCD and get into the chroot.
You will probably need to reinstall grub to the MBR. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Evil.2000 n00b
Joined: 08 Jul 2006 Posts: 68 Location: Germany
|
Posted: Wed Apr 04, 2018 9:56 pm Post subject: |
|
|
Ok, thanks guys, this seems to be solved.
After changing to AHCI I needed to wait after the reboot for the "AHCI boot screen" to finish. After that the BIOS mixed up the boot order of the drives. Therefore I had to reboot and enter the BIOS again and rearrange the boot order.
Now grub boots up as before. _________________ ███ - All is a file. And if not, it should be. |
|
Back to top |
|
|
|
|
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
|
|