You are not logged in.

#1 2015-06-19 03:08:03

AGT
Member
From: Null Void
Registered: 2012-10-27
Posts: 59
Website

Additional HDDs Are Absent in Custom Kernel (Linux 3.19.8)

Hello.

I compiled myself Linux 3.19.8 using a base configuration from another official, close (I forgot which one exactly (3.x)) version.
All seems well so far, but as I have 3 HDDs, all are detected in the official versions (latest and LTS) of the kernel, but in my version, only the one on which the root volume is present is detected.

How could I debug the problem?
I could provide the configuration if needed.
Generally speaking, I included as many device drivers as possible as modules, and made some other tweaks.

Thank you.

Offline

#2 2015-06-19 03:17:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Additional HDDs Are Absent in Custom Kernel (Linux 3.19.8)

What sort of filesystems? Output of fdisk -l and your fstab? Are the required modules loaded? What is in dmesg and your journal? etc...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-06-19 03:20:02

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Additional HDDs Are Absent in Custom Kernel (Linux 3.19.8)

AGT wrote:

I compiled myself Linux 3.19.8 using a base configuration from another official, close (I forgot which one exactly (3.x)) version.

Also please tell us why you are compiling a custom kernel. What are you trying to accomplish by doing this?

Offline

#4 2015-06-19 04:09:03

AGT
Member
From: Null Void
Registered: 2012-10-27
Posts: 59
Website

Re: Additional HDDs Are Absent in Custom Kernel (Linux 3.19.8)

They are both NTFS (Windows 7 is installed on one and the other one holds data).

fdisk -l does find all of them.
I have not set them up to automount with fstab.
I am unaware of which modules I should load.

I was worried when I saw that DE apps like GNOME Disks and MATE Disk Utility do not show any devices at all, not even the root. Caja shows only the root volume.

The journal tells that all of the disks have been detected.
I included here what I think is relevant about the disks from this morning's startup:

Jun 18 08:08:55 Portable kernel: SCSI subsystem initialized
Jun 18 08:08:55 Portable kernel: usbcore: registered new device driver usb
Jun 18 08:08:55 Portable kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Jun 18 08:08:55 Portable kernel: ehci-pci: EHCI PCI platform driver
Jun 18 08:08:55 Portable kernel: ehci-pci 0000:00:1a.0: EHCI Host Controller
Jun 18 08:08:55 Portable kernel: ehci-pci 0000:00:1a.0: new USB bus registered, assigned bus number 1
Jun 18 08:08:55 Portable kernel: ehci-pci 0000:00:1a.0: debug port 2
Jun 18 08:08:55 Portable kernel: ehci-pci 0000:00:1a.0: cache line size of 64 is not supported
Jun 18 08:08:55 Portable kernel: ehci-pci 0000:00:1a.0: irq 16, io mem 0xc070a000
Jun 18 08:08:55 Portable kernel: atl1c 0000:02:00.0: version 1.0.1.1-NAPI
Jun 18 08:08:55 Portable kernel: libata version 3.00 loaded.
Jun 18 08:08:55 Portable kernel: ehci-pci 0000:00:1a.0: USB 2.0 started, EHCI 1.00
Jun 18 08:08:55 Portable kernel: hub 1-0:1.0: USB hub found
Jun 18 08:08:55 Portable kernel: hub 1-0:1.0: 2 ports detected
Jun 18 08:08:55 Portable kernel: ehci-pci 0000:00:1d.0: EHCI Host Controller
Jun 18 08:08:55 Portable kernel: ehci-pci 0000:00:1d.0: new USB bus registered, assigned bus number 2
Jun 18 08:08:55 Portable kernel: ehci-pci 0000:00:1d.0: debug port 2
Jun 18 08:08:55 Portable kernel: ehci-pci 0000:00:1d.0: cache line size of 64 is not supported
Jun 18 08:08:55 Portable kernel: ehci-pci 0000:00:1d.0: irq 23, io mem 0xc0709000
Jun 18 08:08:55 Portable kernel: ath: phy0: ASPM enabled: 0x42
Jun 18 08:08:55 Portable kernel: ehci-pci 0000:00:1d.0: USB 2.0 started, EHCI 1.00
Jun 18 08:08:55 Portable kernel: hub 2-0:1.0: USB hub found
Jun 18 08:08:55 Portable kernel: hub 2-0:1.0: 2 ports detected
Jun 18 08:08:55 Portable kernel: ahci 0000:00:1f.2: version 3.0
Jun 18 08:08:55 Portable kernel: ahci 0000:00:1f.2: SSS flag set, parallel bus scan disabled
Jun 18 08:08:55 Portable kernel: ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 6 Gbps 0x7 impl SATA mode
Jun 18 08:08:55 Portable kernel: ahci 0000:00:1f.2: flags: 64bit ncq sntf stag pm led clo pio slum part ems apst 
Jun 18 08:08:55 Portable kernel: scsi host0: ahci
Jun 18 08:08:55 Portable kernel: scsi host1: ahci
Jun 18 08:08:55 Portable kernel: scsi host2: ahci
Jun 18 08:08:55 Portable kernel: scsi host3: ahci
Jun 18 08:08:55 Portable kernel: scsi host4: ahci
Jun 18 08:08:55 Portable kernel: scsi host5: ahci
Jun 18 08:08:55 Portable kernel: ata1: SATA max UDMA/133 abar m2048@0xc0708000 port 0xc0708100 irq 24
Jun 18 08:08:55 Portable kernel: ata2: SATA max UDMA/133 abar m2048@0xc0708000 port 0xc0708180 irq 24
Jun 18 08:08:55 Portable kernel: ata3: SATA max UDMA/133 abar m2048@0xc0708000 port 0xc0708200 irq 24
Jun 18 08:08:55 Portable kernel: ata4: DUMMY
Jun 18 08:08:55 Portable kernel: ata5: DUMMY
Jun 18 08:08:55 Portable kernel: ata6: DUMMY
Jun 18 08:08:55 Portable kernel: usb 1-1: new high-speed USB device number 2 using ehci-pci
Jun 18 08:08:55 Portable kernel: usb 2-1: new high-speed USB device number 2 using ehci-pci
Jun 18 08:08:55 Portable kernel: ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 18 08:08:55 Portable kernel: ata1.00: ATA-8: TOSHIBA MK6465GSX, GJ002J, max UDMA/100
Jun 18 08:08:55 Portable kernel: ata1.00: 1250263728 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
Jun 18 08:08:55 Portable kernel: ath: EEPROM regdomain: 0x65
Jun 18 08:08:55 Portable kernel: ath: EEPROM indicates we should expect a direct regpair map
Jun 18 08:08:55 Portable kernel: ath: Country alpha2 being used: 00
Jun 18 08:08:55 Portable kernel: ath: Regpair used: 0x65
Jun 18 08:08:55 Portable kernel: ata1.00: configured for UDMA/100
Jun 18 08:08:55 Portable kernel: scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK6465GS 2J   PQ: 0 ANSI: 5
Jun 18 08:08:55 Portable kernel: ieee80211 phy0: Failed to initialize wep: -2
Jun 18 08:08:55 Portable kernel: ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Jun 18 08:08:55 Portable kernel: ieee80211 phy0: Atheros AR9287 Rev:2 mem=0xffffc90010d60000, irq=17
Jun 18 08:08:55 Portable kernel: hub 1-1:1.0: USB hub found
Jun 18 08:08:55 Portable kernel: hub 1-1:1.0: 6 ports detected
Jun 18 08:08:55 Portable kernel: hub 2-1:1.0: USB hub found
Jun 18 08:08:55 Portable kernel: hub 2-1:1.0: 6 ports detected
Jun 18 08:08:55 Portable kernel: ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 18 08:08:55 Portable kernel: ata2.00: ATA-8: ST9500424AS, 0001BSM1, max UDMA/133
Jun 18 08:08:55 Portable kernel: ata2.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32)
Jun 18 08:08:55 Portable kernel: ata2.00: configured for UDMA/133
Jun 18 08:08:55 Portable kernel: scsi 1:0:0:0: Direct-Access     ATA      ST9500424AS      BSM1 PQ: 0 ANSI: 5
Jun 18 08:08:55 Portable kernel: usb 2-1.2: new full-speed USB device number 3 using ehci-pci
Jun 18 08:08:55 Portable kernel: usb 1-1.3: new high-speed USB device number 3 using ehci-pci
Jun 18 08:08:55 Portable kernel: hub 2-1.2:1.0: USB hub found
Jun 18 08:08:55 Portable kernel: hub 2-1.2:1.0: 3 ports detected
Jun 18 08:08:55 Portable kernel: ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun 18 08:08:55 Portable kernel: ata3.00: ATA-8: Hitachi HTS545050KTA300, BKFOC60M, max UDMA/133
Jun 18 08:08:55 Portable kernel: ata3.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
Jun 18 08:08:55 Portable kernel: ata3.00: configured for UDMA/133
Jun 18 08:08:55 Portable kernel: scsi 2:0:0:0: Direct-Access     ATA      Hitachi HTS54505 C60M PQ: 0 ANSI: 5
Jun 18 08:08:55 Portable kernel: sd 0:0:0:0: [sda] 1250263728 512-byte logical blocks: (640 GB/596 GiB)
Jun 18 08:08:55 Portable kernel: sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
Jun 18 08:08:55 Portable kernel: sd 1:0:0:0: [sdb] 4096-byte physical blocks
Jun 18 08:08:55 Portable kernel: sd 1:0:0:0: [sdb] Write Protect is off
Jun 18 08:08:55 Portable kernel: sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
Jun 18 08:08:55 Portable kernel: sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jun 18 08:08:55 Portable kernel: sd 2:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
Jun 18 08:08:55 Portable kernel: sd 2:0:0:0: [sdc] Write Protect is off
Jun 18 08:08:55 Portable kernel: sd 2:0:0:0: [sdc] Mode Sense: 00 3a 00 00
Jun 18 08:08:55 Portable kernel: sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jun 18 08:08:55 Portable kernel:  sdb: sdb1
Jun 18 08:08:55 Portable kernel: sd 1:0:0:0: [sdb] Attached SCSI disk
Jun 18 08:08:55 Portable kernel: usb 2-1.2.1: new full-speed USB device number 4 using ehci-pci
Jun 18 08:08:55 Portable kernel: sd 0:0:0:0: [sda] Write Protect is off
Jun 18 08:08:55 Portable kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
Jun 18 08:08:55 Portable kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jun 18 08:08:55 Portable kernel:  sdc: sdc1 sdc2
Jun 18 08:08:55 Portable kernel: sd 2:0:0:0: [sdc] Attached SCSI disk
Jun 18 08:08:55 Portable kernel: usbcore: registered new interface driver usbhid
Jun 18 08:08:55 Portable kernel: usbhid: USB HID core driver
Jun 18 08:08:55 Portable kernel:  sda: sda1 sda2
Jun 18 08:08:55 Portable kernel: sd 0:0:0:0: [sda] Attached SCSI disk
Jun 18 08:08:55 Portable kernel: input: HID 0a5c:4502 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.1/2-1.2.1:1.0/0003:0A5C:4502.0001/input/input6
Jun 18 08:08:55 Portable kernel: ata3.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
Jun 18 08:08:55 Portable kernel: ata3.00: configured for UDMA/133
Jun 18 08:08:55 Portable kernel: scsi 2:0:0:0: Direct-Access     ATA      Hitachi HTS54505 C60M PQ: 0 ANSI: 5
Jun 18 08:08:55 Portable kernel: sd 0:0:0:0: [sda] 1250263728 512-byte logical blocks: (640 GB/596 GiB)
Jun 18 08:08:55 Portable kernel: sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
Jun 18 08:08:55 Portable kernel: sd 1:0:0:0: [sdb] 4096-byte physical blocks
Jun 18 08:08:55 Portable kernel: sd 1:0:0:0: [sdb] Write Protect is off
Jun 18 08:08:55 Portable kernel: sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
Jun 18 08:08:55 Portable kernel: sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jun 18 08:08:55 Portable kernel: sd 2:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
Jun 18 08:08:55 Portable kernel: sd 2:0:0:0: [sdc] Write Protect is off
Jun 18 08:08:55 Portable kernel: sd 2:0:0:0: [sdc] Mode Sense: 00 3a 00 00
Jun 18 08:08:55 Portable kernel: sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jun 18 08:08:55 Portable kernel:  sdb: sdb1
Jun 18 08:08:55 Portable kernel: sd 1:0:0:0: [sdb] Attached SCSI disk
Jun 18 08:08:55 Portable kernel: usb 2-1.2.1: new full-speed USB device number 4 using ehci-pci
Jun 18 08:08:55 Portable kernel: sd 0:0:0:0: [sda] Write Protect is off
Jun 18 08:08:55 Portable kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
Jun 18 08:08:55 Portable kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jun 18 08:08:55 Portable kernel:  sdc: sdc1 sdc2
Jun 18 08:08:55 Portable kernel: sd 2:0:0:0: [sdc] Attached SCSI disk
Jun 18 08:08:55 Portable kernel: usbcore: registered new interface driver usbhid
Jun 18 08:08:55 Portable kernel: usbhid: USB HID core driver
Jun 18 08:08:55 Portable kernel:  sda: sda1 sda2
Jun 18 08:08:55 Portable kernel: sd 0:0:0:0: [sda] Attached SCSI disk

Initially, I compiled 4.0.3 and then 4.0.5 to enable the user namespace to allow Chromium to properly run as root.
Secondly, I noticed that 4.x is slightly unstable with hostapd on my servers, so I took and compiled the latest 3.x version on my laptop, as I thought that that would be stabler. My servers would follow, if the resulting compiled kernel performs acceptably.
Finally, this allows me to tweak some settings along the way.
But I am not an expert at compiling kernels: each time I compiled one, for example, there is verbose output when booting between the normal services' startup messages, in this format: "[              SequentiallyIncreasingNumber] Message". ...I had modified the configuration only minimally from the default one, and the boot command line that I used was the same. This is another problem which I don't know how to solve. Please do tell me if you would know!
In general, the only was that I see how to debug a kernel configuration is to recompile it with only one option differently set; this would confirm if that option is responsible for the problem you would be experiencing. Would there be another way?

Thank you!

Last edited by AGT (2015-06-19 04:11:20)

Offline

#5 2015-06-20 06:09:38

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: Additional HDDs Are Absent in Custom Kernel (Linux 3.19.8)

AGT wrote:

They are both NTFS (Windows 7 is installed on one and the other one holds data).

In that case, have you tried ntfs-3g which is in userspace and not in the kernel...

https://wiki.archlinux.org/index.php/NTFS-3G

Offline

#6 2015-06-20 11:36:42

AGT
Member
From: Null Void
Registered: 2012-10-27
Posts: 59
Website

Re: Additional HDDs Are Absent in Custom Kernel (Linux 3.19.8)

It is already installed.
The official versions of the kernel work; only mine does not work: it doesn't even show the disk where the root volume is. Because only GUI programs do not show any disks, while CLI programs do (I can mount /dev/sd* devices),  I am thinking that the problem may be between the GUI apps and the system, which might not provide access to the disks by these apps.

Last edited by AGT (2015-06-20 11:37:08)

Offline

#7 2015-06-20 14:56:46

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,659

Re: Additional HDDs Are Absent in Custom Kernel (Linux 3.19.8)

Have you compared the kernel modules that are loaded by the ARCH kernel and ensured those very same drivers are either built into your kernel or are modules (and that that those modules are loading) in your kernel?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#8 2015-06-21 02:55:23

AGT
Member
From: Null Void
Registered: 2012-10-27
Posts: 59
Website

Re: Additional HDDs Are Absent in Custom Kernel (Linux 3.19.8)

I lsmod the 4.0.5-1-ARCH, 3.14.44.1-lts-ARCH, and my own, and modprobed the missing modules.
It didn't have any (apparent) effect.
I plugged in a USB flash drive to test if it would be recognized, and it was detected in Disks and Disk Utility.

Thanks for all your suggestions.

Offline

Board footer

Powered by FluxBB