11.3 Does Not Recognize eSATA Drive

I have a working installation of OpenSuse 11.2 on a 300GB eSATA drive, /dev/sdb. Note: /dev/sdb is actually an IDE drive with an eSata adapter since my mother board only has one IDE ribbon input that I use for /dev/sda and the DVDRW drive.

I have a 200GB IDE drive, /dev/sda that I use as a data drive.

Both drives are accessible to 11.2 and in use.

I installed OpenSuse 11.3 on /dev/sda in partition sda1. The same results occur with 32 bit and 64 bit distribution. I have grub for 11.3 on the the sda1 partition and chainload to it from 11.2 grub.

PROBLEM: The installed 11.3 system will not recognize the second drive /dev/sdb or any of its partitions. It does not show up on /var/log/messages – it does not appear to exist.

I believe this problem is with 11.3 because 11.2 recognizes both disks. Perhaps it is support of eSATA drives or the IDE to eSATA adapter that has regressed?

output of fdisk in both installations:

OpenSuse 11.2 # fdisk -l

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0008a74d

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2873 23077341 83 Linux
/dev/sda2 2874 24000 169702627+ 83 Linux
/dev/sda3 24001 24321 2578432+ 5 Extended
/dev/sda5 24001 24321 2578401 82 Linux swap / Solaris

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000481e9

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2611 20972826 83 Linux
/dev/sdb2 2612 5222 20972857+ 83 Linux
/dev/sdb3 5223 38913 270622957+ 83 Linux


OpenSuse 11.3 # fdisk -l

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008a74d

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2873 23077341 83 Linux
/dev/sda2 2874 24000 169702627+ 83 Linux
/dev/sda3 24001 24321 2578432+ 5 Extended
/dev/sda5 24001 24321 2578401 82 Linux swap / Solaris

Output of hdparm in Opensuse 11.2:

# hdparm -i /dev/sdb

/dev/sdb:

 Model=WDC WD3200AAJB-00J3A0, FwRev=01.03E01, SerialNo=WD-WCAV27491487
 Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=50
 BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=625142448
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 udma6
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: Unspecified:  ATA/ATAPI-1,2,3,4,5,6,7

 * signifies the current active mode

Thank you for your consideration.

What modules (as shown by lmmod) are shown in 11.2, but not in 11.3?

What does “/sbin/lspci -nnk” show for your eSATA adapter?

Here’s the comparison of lsmod

alsbox:/data # diff -y --suppress-common-lines lsmod_11-2.txt lsmod_11-3.txt 
i915                  284968  1                               | snd_pcm_oss            47613  0 
drm                   228416  2 i915                          | snd_mixer_oss          16751  1 snd_pcm_oss
i2c_algo_bit            8396  1 i915                          | snd_seq                57343  0 
video                  29156  1 i915                          | snd_seq_device          6566  1 snd_seq
snd_pcm_oss            60032  0                               | edd                     8720  0 
snd_mixer_oss          22728  1 snd_pcm_oss                   | mperf                   1255  0 
snd_seq                78560  0                               | fuse                   65789  1 
snd_seq_device         10460  1 snd_seq                       | loop                   14694  0 
edd                    13232  0                               | dm_mod                 73457  0 
vboxnetadp              8448  0                               | snd_hda_codec_via      55351  1 
vboxnetflt             19184  0                               | snd_hda_intel          24790  2 
nfs                   405152  1                               | snd_hda_codec          98443  2 snd_hda_codec_via,snd_hda_int
lockd                  95636  1 nfs                           | snd_hwdep               6164  1 snd_hda_codec
fscache                52048  1 nfs                           | snd_pcm                87978  3 snd_pcm_oss,snd_hda_intel,snd
nfs_acl                 4072  1 nfs                           | snd_timer              21669  2 snd_seq,snd_pcm
auth_rpcgss            56928  1 nfs                           | usblp                  11595  0 
vboxdrv              1811500  2 vboxnetadp,vboxnetflt         | ppdev                   8444  0 
sunrpc                267144  12 nfs,lockd,nfs_acl,auth_rpcgs | snd                    65724  14 snd_pcm_oss,snd_mixer_oss,sn
microcode              32632  0                               | parport_pc             33475  0 
fuse                   87984  1                               | sg                     27872  0 
loop                   22292  0                               | sr_mod                 14671  0 
dm_mod                101544  0                               | cdrom                  38085  1 sr_mod
snd_hda_codec_via      40200  1                               | parport                34052  2 ppdev,parport_pc
usblp                  17608  0                               | iTCO_wdt               10022  0 
sr_mod                 20964  0                               | iTCO_vendor_support     2570  1 iTCO_wdt
snd_hda_intel          37280  2                               | asus_atk0110           16207  0 
snd_hda_codec         111112  2 snd_hda_codec_via,snd_hda_int | soundcore               7379  1 snd
snd_hwdep              11216  1 snd_hda_codec                 | snd_page_alloc          8041  2 snd_hda_intel,snd_pcm
i2c_i801               15624  0                               | serio_raw               4394  0 
asus_atk0110           16264  0                               | pcspkr                  1614  0 
ppdev                  12368  0                               | i2c_i801                9949  0 
parport_pc             46856  0                               | atl1e                  35893  0 
parport                46544  2 ppdev,parport_pc              | preloadtrace           65102  1 
serio_raw               7916  0                               | ext4                  365319  1 
sg                     40128  0                               | jbd2                   83070  1 ext4
cdrom                  48232  1 sr_mod                        | crc16                   1403  1 ext4
iTCO_wdt               15056  0                               | i915                  312137  2 
iTCO_vendor_support     4908  1 iTCO_wdt                      | drm_kms_helper         29180  1 i915
button                  8360  0                               | drm                   179671  3 i915,drm_kms_helper
snd_pcm               117808  3 snd_pcm_oss,snd_hda_intel,snd | i2c_algo_bit            5604  1 i915
snd_timer              32152  2 snd_seq,snd_pcm               | button                  5449  1 i915
snd                    97608  13 snd_pcm_oss,snd_mixer_oss,sn | intel_agp              27995  2 i915
snd_page_alloc         12600  2 snd_hda_intel,snd_pcm         | video                  21205  1 i915
atl1e                  48956  0                               | fan                     3539  0 
pcspkr                  3720  0                               | processor              40729  0 
intel_agp              37584  1                               | ata_generic             2711  0 
ext4                  426040  4                               | thermal                17357  0 
jbd2                  115712  1 ext4                          | thermal_sys            14678  4 video,fan,processor,thermal
crc16                   2504  1 ext4                          <
fan                     6352  0                               <
processor              56932  0                               <
pata_acpi               6280  0                               <
piix                    8560  0                               <
ide_core              148064  1 piix                          <
thermal                25160  0                               <
thermal_sys            21888  4 video,fan,processor,thermal   <

To make our life easier, let us filter that output a little. Do the following
for each system:


lsmod | sort | gawk '{print $1}' > lsmod_11-X.txt

The sort does what you expect while the gawk program prints only the first
token, i.e. the module name. We don’t care if the sizes are different.

Then diff them with


diff -u lsmod_11-2.txt lsmod_11-3.txt

Don’t forget the “/sbin/lspci -nnk” so that we can see the device IDs.

Thanks for the instructions, that was my first attempt at using diff.

alsbox:/data # diff -u lsmod_11-2.txt lsmod_11-3.txt
— lsmod_11-2.txt 2010-08-01 08:05:37.000000000 -0700
+++ lsmod_11-3.txt 2010-08-01 08:12:04.000000000 -0700
@@ -1,35 +1,29 @@
asus_atk0110
+ata_generic
atl1e
-auth_rpcgss
button
cdrom
crc16
dm_mod
drm
+drm_kms_helper
edd
ext4
fan
-fscache
fuse
i2c_algo_bit
i2c_i801
i915
-ide_core
intel_agp
iTCO_vendor_support
iTCO_wdt
jbd2
-lockd
loop
-microcode
Module
-nfs
-nfs_acl
+mperf
parport
parport_pc
-pata_acpi
pcspkr
-piix
ppdev
processor
serio_raw
@@ -46,12 +40,9 @@
snd_seq
snd_seq_device
snd_timer
+soundcore
sr_mod
-sunrpc
thermal
thermal_sys
usblp
-vboxdrv
-vboxnetadp
-vboxnetflt
video

I believe the device in question is 00:1f.2

00:00.0 Host bridge [0600]: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller [8086:29c0] (rev 10)
Subsystem: ASUSTeK Computer Inc. P5KPL-VM Motherboard [1043:82b0]
Kernel driver in use: agpgart-intel
00:02.0 VGA compatible controller [0300]: Intel Corporation 82G33/G31 Express Integrated Graphics Controller [8086:29c2] (rev 10)
Subsystem: ASUSTeK Computer Inc. P5KPL-VM Motherboard [1043:82b0]
Kernel driver in use: i915
00:1b.0 Audio device [0403]: Intel Corporation N10/ICH 7 Family High Definition Audio Controller [8086:27d8] (rev 01)
Subsystem: ASUSTeK Computer Inc. P5KPL-CM Motherboard [1043:82ea]
Kernel driver in use: HDA Intel
00:1c.0 PCI bridge [0604]: Intel Corporation N10/ICH 7 Family PCI Express Port 1 [8086:27d0] (rev 01)
Kernel driver in use: pcieport
00:1c.1 PCI bridge [0604]: Intel Corporation N10/ICH 7 Family PCI Express Port 2 [8086:27d2] (rev 01)
Kernel driver in use: pcieport
00:1d.0 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 [8086:27c8] (rev 01)
Subsystem: ASUSTeK Computer Inc. P5KPL-VM,P5LD2-VM Mainboard [1043:8179]
Kernel driver in use: uhci_hcd
00:1d.1 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 [8086:27c9] (rev 01)
Subsystem: ASUSTeK Computer Inc. P5KPL-VM,P5LD2-VM Mainboard [1043:8179]
Kernel driver in use: uhci_hcd
00:1d.2 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 [8086:27ca] (rev 01)
Subsystem: ASUSTeK Computer Inc. P5KPL-VM,P5LD2-VM Mainboard [1043:8179]
Kernel driver in use: uhci_hcd
00:1d.3 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 [8086:27cb] (rev 01)
Subsystem: ASUSTeK Computer Inc. P5KPL-VM,P5LD2-VM Mainboard [1043:8179]
Kernel driver in use: uhci_hcd
00:1d.7 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller [8086:27cc] (rev 01)
Subsystem: ASUSTeK Computer Inc. P5KPL-VM,P5LD2-VM Mainboard [1043:8179]
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev e1)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge [8086:27b8] (rev 01)
Subsystem: ASUSTeK Computer Inc. P5KPL-VM Motherboard [1043:8179]
00:1f.1 IDE interface [0101]: Intel Corporation 82801G (ICH7 Family) IDE Controller [8086:27df] (rev 01)
Subsystem: ASUSTeK Computer Inc. P5KPL-VM Motherboard [1043:8179]
Kernel driver in use: ata_piix
00:1f.2 IDE interface [0101]: Intel Corporation N10/ICH7 Family SATA IDE Controller [8086:27c0] (rev 01)
Subsystem: ASUSTeK Computer Inc. P5KPL-VM Motherboard [1043:8179]
Kernel driver in use: ata_piix
00:1f.3 SMBus [0c05]: Intel Corporation N10/ICH 7 Family SMBus Controller [8086:27da] (rev 01)
Subsystem: ASUSTeK Computer Inc. P5KPL-VM Motherboard [1043:8179]
Kernel driver in use: i801_smbus
01:00.0 Ethernet controller [0200]: Atheros Communications AR8121/AR8113/AR8114 Gigabit or Fast Ethernet [1969:1026] (rev b0)
Subsystem: ASUSTeK Computer Inc. P5KPL-CM Motherboard [1043:8304]
Kernel driver in use: ATL1E

On 08/01/2010 10:36 AM, waerola1 wrote:

> I believe the device in question is 00:1f.2

>> 00:1f.0 ISA bridge [0601]: Intel Corporation 82801GB/GR (ICH7 Family)
>> LPC Interface Bridge [8086:27b8] (rev 01)
>> Subsystem: ASUSTeK Computer Inc. P5KPL-VM Motherboard
>> [1043:8179]

>> 00:1f.1 IDE interface [0101]: Intel Corporation 82801G (ICH7 Family)
>> IDE Controller [8086:27df] (rev 01)
>> Subsystem: ASUSTeK Computer Inc. P5KPL-VM Motherboard
>> [1043:8179]
>> Kernel driver in use: ata_piix

>> 00:1f.2 IDE interface [0101]: Intel Corporation N10/ICH7 Family SATA
>> IDE Controller [8086:27c0] (rev 01)
>> Subsystem: ASUSTeK Computer Inc. P5KPL-VM Motherboard
>> [1043:8179]
>> Kernel driver in use: ata_piix

>> 00:1f.3 SMBus [0c05]: Intel Corporation N10/ICH 7 Family SMBus
>> Controller [8086:27da] (rev 01)
>> Subsystem: ASUSTeK Computer Inc. P5KPL-VM Motherboard
>> [1043:8179]
>> Kernel driver in use: i801_smbus

I’m not sure that bus 00:1f.2 is the device in question. According to the ASUS
website, the P5KPL motherboard has both IDE and SATA ports. I think that 00:1f.0
is the bridge, .1 is the IDE controller and .2 is the SATA controller.

Your adapter is more likely to be connected to the bridge at 00:1e.0

> 00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge
> [8086:244e] (rev e1)

You will note that it has no kernel driver in use. Did the lspci output come
from 11.2 or 11.3? What differences do you see there?

One other place to check. In the output of dmesg, you will find a section that
contains output that looks like

0.352868] pci 0000:00:12.0: BAR 6: assigned [mem 0xc0000000-0xc001ffff pref]
0.352874] pci 0000:01:09.0: BAR 0: assigned [mem 0xfc100000-0xfc1007ff]
0.352881] pci 0000:01:09.0: BAR 0: set to [mem 0xfc100000-0xfc1007ff] (PCI

address [0xfc100000-0xfc1007ff]
0.352885] pci 0000:00:08.0: PCI bridge to [bus 01-02]

See if the 11.3 version shows any warnings. If you want, you can post both at
http://pastebin.com/ and list the URLs here.

lspci for 12.2 relevant section:

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)

lspci for 11.3

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01)

There is a difference at 00:1f.2, but I can’t tell what it means.

dmesg |grep pci for 11.3 posted at:
alsbox:/home/al # dmesg |grep - Anonymous - Nj7sdV3q - Pastebin.com

The ASUSTeK Computer Inc. P5KPL-VM Motherboard does not even show an eSata port on it. Also, I tried usung one of those IDE - SATA adapters a while ago and not every OS would find it for some reason. I was even told at one store they were intended on converting a motherboard IDE port to a Sata port and not the other way around.

I am hoping that lwfinger will find the solution, however the fact that openSUSE 11.2 works fine and 11.3 does not will most likely mean you might as well wait for openSUSE 11.4 or when ever Kernel version 2.6.35 comes out and try again. In the mean time, if you do not get it to work, you could look for an older IDE to USB adapter and try going that way, which I had better luck with.

Anything that still depends on IDE will be harder and harder to find and it is doubtful support will get better in the future unless the problem is caused by a Linux Kernel bug of some sort. For instance, I have had an issue with 11.3 and Kernel 2.6.34 where USB3 devices do not get initialized on startup. You have to unplug and plug it back in to get it to work. The Kernel version with openSUSE 11.2 had no such issue with USB3 devices.

Thank You,

Let me clarify: I would like the entire output of dmesg for both 11.2 and 11.3
uploaded to pastebin. The only reason for filtering it would be not to spam the
forum; however, I’m not sure what part might be important.

On 08/01/2010 09:06 PM, jdmcdaniel3 wrote:
>
> Anything that still depends on IDE will be harder and harder to find
> and it is doubtful support will get better in the future unless the
> problem is caused by a Linux Kernel bug of some sort. For instance, I
> have had an issue with 11.3 and Kernel 2.6.34 where USB3 devices do not
> get initialized on startup. You have to unplug and plug it back in to
> get it to work. The Kernel version with openSUSE 11.2 had no such issue
> with USB3 devices.

As USB3 is just getting into Linux, I’m not at all surprised that it might be
worse with a partial implementation than the old one that completely ignores any
enhanced capabilities. Getting this stuff right for EVERY implementation in the
hardware is tough.

You may be right that the new kernel doesn’t recognize this device. I just tried to install Fedora 13 and the installer wouldn’t even recognize the drive just like 11.3. Not a big deal for me since 11.2 has been very stable and reliable.

Thanks, James.

On 08/01/2010 10:06 PM, waerola1 wrote:
>
> You may be right that the new kernel doesn’t recognize this device. I
> just tried to install Fedora 13 and the installer wouldn’t even
> recognize the drive just like 11.3. Not a big deal for me since 11.2
> has been very stable and reliable.

I’m sure that is the case, and it constitutes a kernel regression between 2.6.31
(11.2) and 2.6.34 (11.3). After this much effort, I would like to find out what
the regression is, but if you don’t want to, then we will stop.

dmesg for 11.2
0.000000] Linux version 2 - Anonymous - KciFgr2T - Pastebin.com](http://pastebin.com/KciFgr2T)

and dmesg for 11.3
0.000000] Linux version 2 - Anonymous - 1xxBUbi7 - Pastebin.com](http://pastebin.com/1xxBUbi7)

Thanks.

dmesg for 11.2
0.000000] Linux version 2 - Anonymous - U6x8w5XV - Pastebin.com](http://pastebin.com/U6x8w5XV)
dmesg for 11.3
0.000000] Linux version 2 - Anonymous - Mm59LZ4C - Pastebin.com](http://pastebin.com/Mm59LZ4C)

Hi all, I am having the same error, but since I have only one disk my machine is not booting anymore!
It’s a DELL T3500 with a WDC T3500 HDD. It was running 11.2 without any problems.
I upgraded 3 other machines from 11.2 to 11.3 without problems.
I need this workstation to start, will it run with the 11.2 kernel, installed from a rescue system?
I tried also starting with the Failsafe grub menu entry, but it did not work either.

Thanks for any help, this is urgent!

Thanks again, Richard

As a side note, while upgrading and again now with opensuse 11.2 rescue system, while running mkinitrd, I got messages from perl-Bootloader saying something like “perl-Bootloader … GRUB::GrubDev2UnixDev … no partition found …” and the partition where my system is installed (partition 5) was listed there several times.

I managed to install a newer openSUSE 11.3 kernel (desktop flavour) from Index of /repositories/Kernel:/openSUSE-11.3/openSUSE_11.3/x86_64 , but still no go.

Any ideas?

Ok, my workstation is booting again now. The trick was just turning acpi off, giving acpi=of as a kernel boot parameter.
But why wasn’t this necessary on 11.2?

I also upgraded to a newer kernel (http://download.opensuse.org/repositories/Kernel:/openSUSE-11.3/openSUSE_11.3/x86_64/kernel-desktop-2.6.34.1-13.1.x86_64.rpm) but don’t think that this had any influence. Will downgrade again to the distro released kernel.

BUT the problem now is that the system sees only one core!
This happens with both kernels, the default desktop one shipped with 11.3 and the newer one mentioned above.
Googling around I found someone having similar problems and a solution setting acpi_enforce_resources=lax on boot, but this brought the first behaviour back, the HDD didn’t get found at all! No boot.

At least I have a now running system … but with only one core.

Ideas?

On 08/02/2010 11:36 AM, rems0 wrote:
>
> As a side note, while upgrading and again now with opensuse 11.2 rescue
> system, while running mkinitrd, I got messages from perl-Bootloader
> saying something like “perl-Bootloader … GRUB::GrubDev2UnixDev … no
> partition found …” and the partition where my system is installed
> (partition 5) was listed there several times.
>
> I managed to install a newer openSUSE 11.3 kernel (desktop flavour)
> from ‘Index of /repositories/Kernel:/openSUSE-11.3/openSUSE_11.3/x86_64’
> (http://tinyurl.com/2dhthsw) , but still no go.
>
> Any ideas?

The 11.2 kernel should work. You need to get the desired kernel rpm on a USB
stick and boot the 11.2 Live CD. Open a terminal, “su -”, and mount the
partition containing / on /mnt. Now “chroot /mnt” and install the 11.2 kernel
rpm. Use the install, not update, option and you should end up with a new option
in the GRUB menu.

Checking the BIOS configuration on this DELL T3500, I found that it has 3 options under “SATA Operation”:

  1. “RAID Autodetect / AHCI” : RAID if signed drives, otherwise AHCI
  2. “RAID Autodetect / ATA” : RAID if signed drives, otherwise ATA
  3. “RAID On” : SATA is configured for RAID on every boot

It was set per default to “RAID On” and it worked fine on openSUSE 11.2.
Setting it to “RAID Autodetect / ATA” made it work now on 11.3 without turning acpi=off on boot. Now all 4 cores are there again.

cheers