ide-disk not loaded if no IDE disks are present during the install

Bug #8325 reported by Harold Brinkhof
10
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
Invalid
Low
Colin Watson

Bug Description

more specifically udev does not create /dev/hdc which is the master on my ide1

it is a MAXTOR MAXTOR 4K080H4 (80G ATA hd), it shows up in /proc/ide but not in
/sys/block, /dev/hda on the other hand does get auto-created by udev and shows
up in both.

udev creates the /dev/hdc and /dev/hdc1 nodes (it has just 1 primary partition)
about 1 second after I do 'touch /.dev/hdc'. On reboot obviously the nodes
dissappear and invariably /dev/hdc can be brought back with the touch trick.

If you don't know the trick the disk just doesn't exist, pretty annoying :)

maybe relevant:
During the ubuntu install I disabled ide1 because otherwise grub would fail to
install correctly on my system (which has a hardware raid 5 SCSI adaptec 3200s
with 4 disk(s) as primary disk), but ide0 was enabled because it contained the
dvd-burner (/dev/hda)

system data:
------------

Package: udev
Versions:
0.026-1ubuntu5(/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_warty_main_binary-i386_Packages)(/var/lib/apt/lists/dragonfly.acns.msu.edu_ubuntu_dists_warty_main_binary-i386_Packages)(/var/lib/dpkg/status)
0.026-1ubuntu4(/var/lib/apt/lists/Ubuntu%204.10%20%5fWarty%20Warthog%5f%20-%20Unofficial%20i386%20Binary-1%20(20040915)_dists_unstable_main_binary-i386_Packages)

Reverse Depends:
  rng-tools,udev
  dvbtune,udev
  hal,udev
  makedev,udev 0.024-7
  hal,udev
  gnome-volume-manager,udev 0.022
Dependencies:
0.026-1ubuntu5 - libc6 (2 2.3.2.ds1-4) libnewt0.51 (0 (null)) debconf (18 0.5)
debconf-2.0 (0 (null)) hotplug (0 (null)) initscripts (2 2.85-16) makedev (2
2.3.1-70) lsb-base (2 1.3-9ubuntu3) lvm-common (3 1.5.13)

running on kernel 2.6.8.1-2-686-smp (binary package, not self-built)

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

You need to add ide-disk to /etc/modules. This is done automatically during the
install if any IDE disks are present, but since you didn't have any, this wasn't
done.

Herbert, what's the right thing to do here kernel-wise? Should ide-disk always
be loaded explicitly, or will it be possible for it to be autoloaded when needed
at some point in the future?

Revision history for this message
Herbert Xu (herbert-gondor) wrote :

(In reply to comment #1)
>
> Herbert, what's the right thing to do here kernel-wise? Should ide-disk always
> be loaded explicitly, or will it be possible for it to be autoloaded when needed
> at some point in the future?

ide-disk is meant to be loaded automatically when IDE does the probing. Let me
have a look at it.

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

(In reply to comment #2)
> ide-disk is meant to be loaded automatically when IDE does the probing. Let me
> have a look at it.

That's interesting; is the same true of ide-cd or ide-generic (which are both
currently added to /etc/modules by hw-detect)?

Revision history for this message
Herbert Xu (herbert-gondor) wrote :

(In reply to comment #3)
>
> That's interesting; is the same true of ide-cd or ide-generic (which are both
> currently added to /etc/modules by hw-detect)?

It used to with ide-probe-mod. What happens is that ide-probe-mod is aliased to
block-major-3 and the others so it gets loaded first. Once the devices have
been found it then loads the device drivers like ide-disk/ide-cd.

It seems that the problem is simply that module-init-tools is still referring to
ide-probe-mod instead of ide-generic. So we should fix the alias in
module-init-tools.

Harold, can you please let us know if loading ide-generic by hand works or not?

Thanks,

Revision history for this message
Harold Brinkhof (ubuntu-bugzilla-playfulkitten) wrote :

ide-generic is already loaded

harold@ygdrassil ~ $ sudo lsmod | grep ide
ide_generic 1632 0
ide_cd 42180 0
ide_core 138896 4 pdc202xx_old,via82cxxx,ide_generic,ide_cd
cdrom 39808 1 ide_cd

/etc/modules contains:
sd_mod
psmouse
mousedev
ide-cd
ide-generic
lp
tun
nvidia

modprobing ide-disk after boot does make it recognise the HD.

to make it work for my system I use the following /etc/modules now:
sd_mod
psmouse
mousedev
ide-disk
ide-cd
via82cxxx # to make sure ide-generic doesn't pick them up (disables DMA)
ide-generic
lp
tun
nvidia

Revision history for this message
Herbert Xu (herbert-gondor) wrote :

(In reply to comment #5)
> ide-generic is already loaded
>
> harold@ygdrassil ~ $ sudo lsmod | grep ide
> ide_generic 1632 0
> ide_cd 42180 0
> ide_core 138896 4 pdc202xx_old,via82cxxx,ide_generic,ide_cd
> cdrom 39808 1 ide_cd

I see. It's the usual chicken and egg problem with udev. If you actually had
the device then opening it would cause ide-disk to be loaded automatically.

Revision history for this message
leon breedt (bitserf+bugzilla) wrote :

my IDE disk was present during install, but i elected to install to a SATA disk
instead; experienced the same symptoms until i added ide-disk to the
/etc/modules file.

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

This will be solved by way of #1763

This bug has been marked as a duplicate of bug 8509.

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.