ide-disk not automatically loaded

Bug #8156 reported by Bruno Dusausoy
8
Affects Status Importance Assigned to Milestone
Ubuntu
Fix Released
High
Colin Watson

Bug Description

Ide-cd is not automatically loaded at boot time, but it should be.
I have a system with both SCSI and IDE drives :
- 1 SCSI hard disk (/dev/sda2 is mounted on /)
- 1 IDE hard disk
- 1 IDE cd-recorder

all these three peripherals are well detected by the kernel, as you can
see in this output (dmesg |grep [hs]d):

thx1138:~# dmesg |grep [hs]d
Kernel command line: root=/dev/sda2 ro quiet splash
SCSI device sda: 17824700 512-byte hdwr sectors (9126 MB)
SCSI device sda: drive cache: write back
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Adding 995984k swap on /dev/sda1. Priority:-1 extents:1
EXT3 FS on sda2, internal journal
hda: Maxtor 6Y080P0, ATA DISK drive
hdb: SAMSUNG CD-R/RW SW-252B, ATAPI CD/DVD-ROM drive
hdb: ATAPI 52X CD-ROM CD-R/RW drive, 2048kB Cache
    ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:pio, hdd:pio
    hda: max request size: 128KiB
    hda: 160086528 sectors (81964 MB) w/7936KiB Cache, CHS=65535/16/63
    EXT3 FS on hda3, internal journal

these are the ide* modules that were automatically loaded:
ide_generic 1664 0
ide_cd 38276 0
ide_core 125272 4 ide_disk,via82cxxx,ide_generic,ide_cd
cdrom 35872 1 ide_cd

-- System Information:
Debian Release: testing/unstable
Architecture: i386 (i686)
Kernel: Linux 2.6.8.1-2-386
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8

Versions of packages hotplug depends on:
ii debconf 1.4.29ubuntu3 Debian configuration management sy
ii lsb-base 1.3-9ubuntu5 Linux Standard Base 1.3 initscript
ii module-init-tools 3.1-pre2-2ubuntu3 tools for managing Linux kernel mo
ii modutils 2.4.26-1ubuntu3 Linux module utilities
ii procps 1:3.2.1-2ubuntu3 The /proc file system utilities

-- debconf information:
  hotplug/ignore_pci_class_display: true
  hotplug/net_agent_policy: hotplug
* hotplug/usb_keyboard:
  hotplug/static_module_list:
  hotplug/x11_usbmice_hack: false

Revision history for this message
Matt Zimmerman (mdz) wrote :

ide-cd should be added to /etc/modules at install time by debian-installer.
Send a copy of your /etc/modules

Revision history for this message
Sebastien Bacher (seb128) wrote :

> ide-cd should be added to /etc/modules at install time by debian-installer.

ide_cd is loaded, the problem with ide-disk

Revision history for this message
Matt Zimmerman (mdz) wrote :

They are both loaded; they can be seen in the lsmod output posted by the reporter:

> ide_generic 1664 0
> ide_cd 38276 0
> ide_core 125272 4 ide_disk,via82cxxx,ide_generic,ide_cd
                                  ^^^^^^^^
> cdrom 35872 1 ide_cd

I don't think that ide_disk can have a reference to ide_core if it isn't loaded

Revision history for this message
Sebastien Bacher (seb128) wrote :

I've helped him on IRC. The /dev/hda* node were missing in fact. We solved the
problem with ide_disk.

He reported after the fix, that's why "these are the ide* modules that were
automatically loaded:" doesn't like the disk module.

Revision history for this message
Matt Zimmerman (mdz) wrote :

OK, please try this:

sudo modprobe loop
sleep 3
sudo mount -o loop /boot/initrd-`uname -r` /mnt
cat /mnt/loadmodules
sudo umount /mnt

and send us a copy of the output

Revision history for this message
Bruno Dusausoy (bdusauso) wrote :

Here's the output of the command :

modprobe -k vesafb > /dev/null 2>&1
modprobe -k fbcon 2> /dev/null
modprobe -k thermal 2> /dev/null
modprobe -k fan 2> /dev/null
modprobe -k unix 2> /dev/null
modprobe -k aic7xxx
modprobe -k sd_mod

Revision history for this message
Matt Zimmerman (mdz) wrote :

OK, apparently ide-disk (like ide-cd) won't be automatically loaded by hotplug
etc., and so it needs to be added to /etc/modules by debian-installer.

This problem will affect any system with root on SCSI, but also an IDE hard disk.

Revision history for this message
Colin Watson (cjwatson) wrote :

Created an attachment (id=124)
register-module ide-disk if there are IDE devices

Revision history for this message
Colin Watson (cjwatson) wrote :

Patch attached. OK to upload?

Revision history for this message
Matt Zimmerman (mdz) wrote :

Approved

Revision history for this message
Colin Watson (cjwatson) wrote :

ddetect (1.03ubuntu9) warty; urgency=low

  * Register ide-disk in /etc/modules if IDE devices are present (closes:
    Warty #1400).

 -- Colin Watson <email address hidden> Mon, 20 Sep 2004 14:35:28 +0100

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.