LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   SSD not recognized (https://www.linuxquestions.org/questions/linux-hardware-18/ssd-not-recognized-718419/)

toneman77 04-11-2009 08:44 AM

SSD not recognized
 
Hello everybody

For hours I am failing with the following:
I just bought a Asus P5N7A-VM board and a HAMA SATA 8GB SSD drive.
Ubuntu, slax nor Knoppix are all throwing an error:
Code:

knoppix@Microknoppix:~$ dmesg |grep ata
[    3.039347] ata1: SATA max UDMA/133 abar m8192@0xf9f76000 port 0xf9f76100 irq 508
[    3.039350] ata2: SATA max UDMA/133 abar m8192@0xf9f76000 port 0xf9f76180 irq 508
[    3.039353] ata3: SATA max UDMA/133 abar m8192@0xf9f76000 port 0xf9f76200 irq 508
[    3.039355] ata4: SATA max UDMA/133 abar m8192@0xf9f76000 port 0xf9f76280 irq 508
[    3.039358] ata5: SATA max UDMA/133 abar m8192@0xf9f76000 port 0xf9f76300 irq 508
[    3.039360] ata6: SATA max UDMA/133 abar m8192@0xf9f76000 port 0xf9f76380 irq 508
[    3.783025] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    3.783050] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x100)
[    9.475849] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    9.475868] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x100)
[  15.168675] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  15.168693] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x100)
[  20.861498] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  20.861509] ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x1 t4
[  20.861512] ata1: irq_stat 0x08000000, interface fatal error
[  21.194802] ata2: SATA link down (SStatus 0 SControl 300)
[  21.528106] ata3: SATA link down (SStatus 0 SControl 300)
[  21.861409] ata4: SATA link down (SStatus 0 SControl 300)
[  22.194712] ata5: SATA link down (SStatus 0 SControl 300)
[  22.528017] ata6: SATA link down (SStatus 0 SControl 300)

lspci and uname give me:
Code:

knoppix@Microknoppix:~$ lspci
00:00.0 Host bridge: nVidia Corporation Device 0a80 (rev b1)
00:00.1 RAM memory: nVidia Corporation Device 0a88 (rev b1)
00:03.0 ISA bridge: nVidia Corporation Device 0aac (rev b2)
00:03.1 RAM memory: nVidia Corporation Device 0aa4 (rev b1)
00:03.2 SMBus: nVidia Corporation Device 0aa2 (rev b1)
00:03.3 RAM memory: nVidia Corporation Device 0a89 (rev b1)
00:03.4 RAM memory: nVidia Corporation Device 0a98 (rev b1)
00:03.5 Co-processor: nVidia Corporation Device 0aa3 (rev b1)
00:04.0 USB Controller: nVidia Corporation Device 0aa5 (rev b1)
00:04.1 USB Controller: nVidia Corporation Device 0aa6 (rev b1)
00:06.0 USB Controller: nVidia Corporation Device 0aa7 (rev b1)
00:06.1 USB Controller: nVidia Corporation Device 0aa9 (rev b1)
00:08.0 Audio device: nVidia Corporation Device 0ac0 (rev b1)
00:09.0 PCI bridge: nVidia Corporation Device 0aab (rev b1)
00:0a.0 Ethernet controller: nVidia Corporation MCP79 Ethernet (rev b1)
00:0b.0 IDE interface: nVidia Corporation Device 0ab4 (rev b1)
00:0c.0 PCI bridge: nVidia Corporation Device 0ac4 (rev b1)
00:10.0 PCI bridge: nVidia Corporation Device 0aa0 (rev b1)
00:15.0 PCI bridge: nVidia Corporation Device 0ac6 (rev b1)
00:16.0 PCI bridge: nVidia Corporation Device 0ac7 (rev b1)
03:00.0 VGA compatible controller: nVidia Corporation Device 086c (rev b1)
05:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller

Code:

knoppix@Microknoppix:~$ uname -a
Linux Microknoppix 2.6.28.4 #8 SMP PREEMPT Mon Feb 9 14:33:28 CET 2009 i686 GNU/Linux

I also tried to set the drive to SATA,RAID and AHCI in the bios. Also upgrading the bios to the newest version. In sheer desperation I treid a Windows XP cd and everything is okay there :(

Anyone got an idea what is going wrong here?

Thanks in advance

H_TeXMeX_H 04-11-2009 09:14 AM

Is there a jumper on the drive to limit transfer rate to 1.5 Gbps ? You could try enabling that (put jumper back in).

toneman77 04-11-2009 09:31 AM

Quote:

Originally Posted by H_TeXMeX_H (Post 3505492)
Is there a jumper on the drive to limit transfer rate to 1.5 Gbps ? You could try enabling that (put jumper back in).

no, it doesnt have such a jumper.

H_TeXMeX_H 04-11-2009 10:00 AM

Do you have any IDE drives attached ? If you do not, and don't need the JMicron IDE controller, then disable it in the BIOS, and put the nvidia SATA controller in AHCI mode. Make sure you have the ahci driver built-in to the kernel.

toneman77 04-12-2009 03:25 PM

No I haven't. I just deactivated it. I also treid to boot into a Ubuntu live cd with these parameters:
irqpoll, pci=routeirq, pci=nomsi, pci=noacpi, pci=bios, pci=biosirq, all_generic_ide and finally "noapic irqpoll pci=routeirq". Every time with the same errors.
full dmesg here: http://pastebin.ca/1388852
Code:

tone@tones:~$ cat dmesg.txt |grep ata1
[    1.809350] ata1: SATA max UDMA/133 abar m8192@0xf9f76000 port 0xf9f76100 irq 2300
[    2.516034] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.516067] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x100)
[    8.224025] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    8.224047] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x100)
[    8.224051] ata1: limiting SATA link speed to 1.5 Gbps
[  13.932025] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  13.932046] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x100)
[  19.640025] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  19.640038] ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x1 t4
[  19.640101] ata1: irq_stat 0x08000000, interface fatal error

In a german forum a kind person suggested IRQ problems with ASUS boards are a common problem. Is this really a known issue?

Any help appreciated

H_TeXMeX_H 04-13-2009 04:14 AM

I too was thinking it's an IRQ issue. Usually it's with the other IDE controller (which you disabled), but it could be with something else too.

Can you post the output of 'cat /proc/interrupts' and 'lsmod'.

toneman77 04-13-2009 05:24 AM

Thank you very much for your ideas, H_TeXMeX_H.
Here are the corresponding outputs of my last attempt booting with "noapic irqpoll pci=routeirq"
Code:

ubuntu@ubuntu:~$ cat /proc/interrupts
          CPU0     
  0:      14494    XT-PIC-XT        timer
  1:          2    XT-PIC-XT        i8042
  2:          0    XT-PIC-XT        cascade
  5:      19159    XT-PIC-XT        ehci_hcd:usb4
  7:      5840    XT-PIC-XT        ohci_hcd:usb1
  8:          1    XT-PIC-XT        rtc0
  9:        34    XT-PIC-XT        acpi, ohci_hcd:usb3
 11:      42112    XT-PIC-XT        ehci_hcd:usb2, eth0
 12:          4    XT-PIC-XT        i8042
 15:      4427    XT-PIC-XT        HDA Intel
2301:          3  PCI-MSI-edge      ahci
NMI:          0  Non-maskable interrupts
LOC:      35916  Local timer interrupts
RES:          0  Rescheduling interrupts
CAL:          0  Function call interrupts
TLB:          0  TLB shootdowns
SPU:          0  Spurious interrupts
ERR:          2
MIS:          0

and
Code:

ubuntu@ubuntu:~$ lsmod
Module                  Size  Used by
binfmt_misc            16776  1
ppdev                  15492  0
lp                    17156  0
parport                42220  2 ppdev,lp
bridge                56340  0
stp                    10500  1 bridge
bnep                  20224  2
video                  25360  0
output                11008  1 video
input_polldev          11912  0
snd_hda_intel        435124  3
snd_pcm_oss            46336  0
snd_mixer_oss          22656  1 snd_pcm_oss
snd_pcm                82820  2 snd_hda_intel,snd_pcm_oss
psmouse                62228  0
snd_timer              29704  1 snd_pcm
shpchp                40212  0
serio_raw              13316  0
pcspkr                10496  0
snd                    62628  11 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore              15200  1 snd
snd_page_alloc        16904  2 snd_hda_intel,snd_pcm
aufs                  167204  1
exportfs              12544  1 aufs
squashfs              46216  1
nls_cp437              13696  1
isofs                  39716  1
usb_storage            81984  1
usbhid                42336  0
forcedeth              61712  0
ehci_hcd              44556  0
ohci_hcd              32016  0
fbcon                  46112  0
tileblit              10752  1 fbcon
font                  16384  1 fbcon
bitblit                13824  1 fbcon
softcursor              9984  1 bitblit

Thanks for taking the time to help me out.

H_TeXMeX_H 04-13-2009 08:24 AM

Quote:

Originally Posted by toneman77 (Post 3507153)
Here are the corresponding outputs of my last attempt booting with "noapic irqpoll pci=routeirq"
Code:

ubuntu@ubuntu:~$ cat /proc/interrupts
          CPU0     
  0:      14494    XT-PIC-XT        timer
  1:          2    XT-PIC-XT        i8042
  2:          0    XT-PIC-XT        cascade
  5:      19159    XT-PIC-XT        ehci_hcd:usb4
  7:      5840    XT-PIC-XT        ohci_hcd:usb1
  8:          1    XT-PIC-XT        rtc0
  9:        34    XT-PIC-XT        acpi, ohci_hcd:usb3
 11:      42112    XT-PIC-XT        ehci_hcd:usb2, eth0
 12:          4    XT-PIC-XT        i8042
 15:      4427    XT-PIC-XT        HDA Intel
2301:          3  PCI-MSI-edge      ahci
NMI:          0  Non-maskable interrupts
LOC:      35916  Local timer interrupts
RES:          0  Rescheduling interrupts
CAL:          0  Function call interrupts
TLB:          0  TLB shootdowns
SPU:          0  Spurious interrupts
ERR:          2
MIS:          0


This line is puzzling:
2301: 3 PCI-MSI-edge ahci
There's also errors:
ERR: 2

How exactly is this drive connected and to where. To the mobo ? To a SATA port ? No adapters of any kind ?

You can also try the 'pci=nomsi' kernel parameter.

I would also try without the 'noapic' option.

toneman77 04-13-2009 11:22 AM

The disk is plugged into the SATA slot on the board, no adapters or anything.

From the boot with the pci=nomsi option and omitted noapic:

dmesg: http://pastebin.ca/1390693

Code:

ubuntu@ubuntu:~$ cat /proc/interrupts
          CPU0     
  0:      13786  IO-APIC-edge      timer
  1:          2  IO-APIC-edge      i8042
  7:          1  IO-APIC-edge   
  8:          1  IO-APIC-edge      rtc0
  9:          0  IO-APIC-fasteoi  acpi
 12:          4  IO-APIC-edge      i8042
 20:      22186  IO-APIC-fasteoi  ohci_hcd:usb1, ehci_hcd:usb4
 21:        36  IO-APIC-fasteoi  ahci, ohci_hcd:usb3
 22:      33270  IO-APIC-fasteoi  eth0
 23:      2458  IO-APIC-fasteoi  ehci_hcd:usb2, HDA Intel
NMI:          0  Non-maskable interrupts
LOC:      26687  Local timer interrupts
RES:          0  Rescheduling interrupts
CAL:          0  Function call interrupts
TLB:          0  TLB shootdowns
SPU:          0  Spurious interrupts
ERR:          1
MIS:          0


H_TeXMeX_H 04-13-2009 12:29 PM

That looks better, so it doesn't work with that ?

I'm not sure what else to try. Just keep messing with BIOS options for the SATA controller and kernel boot options, that's all I can think of.

toneman77 04-13-2009 12:35 PM

Code:

ubuntu@ubuntu:~$ fdisk -l
ubuntu@ubuntu:~$ cat /proc/partitions
major minor  #blocks  name

  7        0    690072 loop0

So I think the disk doesn't get recognized...
Funny/sad thing is that Windows installed on that disk without a hitch :(

Any ideas welcome

Toni

toneman77 04-13-2009 01:40 PM

omg
I just inserted a gparted/clonezilla livecd. And the disk got recognized!!

How can I find out what gparted did what made this all kinda "work" ?

toneman77 04-13-2009 02:42 PM

After the gparted "success" I tried a bit more with ubuntu live cds:

Jaunty Live: disk with error
Quote:

ubuntu@ubuntu:~$ uname -a
Linux ubuntu 2.6.28-9-generic #31-Ubuntu SMP Wed Mar 11 15:43:58 UTC 2009 i686 GNU/Linux
dmesg: http://pastebin.ca/1390892

Intrepid Live: disk with error

Code:

ubuntu@ubuntu:~$ uname -a
Linux ubuntu 2.6.27-7-generic #1 SMP Fri Oct 24 06:42:44 UTC 2008 i686 GNU/Linux

dmesg: http://pastebin.ca/1390900

Gutsy: success !!!

Code:

ubuntu@ubuntu:~$ uname -a
Linux ubuntu 2.6.22-12-generic #1 SMP Sun Sep 23 18:11:30 GMT 2007 i686 GNU/Linux

(sda is the disk, sdb is the usb stick i needed to copy the files over)

Code:

ubuntu@ubuntu:~$ cat /proc/partitions
major minor  #blocks  name

  8    0    7962192 sda
  8    1      32098 sda1
  8    2    7928077 sda2
  7    0    648272 loop0
  8    16    2015232 sdb
  8    17    2015216 sdb1

dmesg: http://pastebin.ca/1390924

How can I find out, what the other live cds make different?

H_TeXMeX_H 04-14-2009 06:07 AM

Hmm, it could be either an Ubuntu-specific bug or a kernel bug. Either way newer versions of either would help.

Did you try knoppix ? other live CDs you might have, make note of kernel versions if you can. Some bugs start at a particular version and end at a particular version of the kernel (they are fixed).

toneman77 04-14-2009 06:11 AM

I tried gparted and knoppix, but didnt write down kernel versions. Sadly I'm off at work now. Will return to that machine friday night :(

Thanks a lot for your help.
Will report asap.


All times are GMT -5. The time now is 04:25 AM.