Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100104 - Not all discs are "entered" correctly under /dev/discs - hdparm doesn't set parameters for one drive
Summary: Not all discs are "entered" correctly under /dev/discs - hdparm doesn't set p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-24 03:46 UTC by Alexander Skwar
Modified: 2007-11-04 12:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Skwar 2005-07-24 03:46:44 UTC
Hello.

For quite some time, I've got the following, strange behaviour:

[12:44:07 alexander@server:/dev/discs] $ ll
insgesamt 0
drwxr-xr-x  2 root root 160 23. Jul 11:24 disc0
drwxr-xr-x  2 root root 140 23. Jul 11:24 disc1
drwxr-xr-x  2 root root 120 23. Jul 11:24 disc3

[12:34:48 alexander@server:/dev/discs] $ ll disc1
insgesamt 0
lrwxrwxrwx  1 root root  9 23. Jul 11:24 disc -> ../../hdd
lrwxrwxrwx  1 root root  9 23. Jul 11:24 part -> ../../hde
lrwxrwxrwx  1 root root 10 23. Jul 11:24 part1 -> ../../hde1
lrwxrwxrwx  1 root root 10 23. Jul 11:24 part2 -> ../../hde2
lrwxrwxrwx  1 root root 10 23. Jul 11:24 part5 -> ../../hde5
[12:35:01 alexander@server:/dev/discs] $ pwd
/dev/discs

As you can see, /dev/discs/disc1/disc is a symlink to /dev/hdd and
/dev/discs/disc1/part points to /dev/hde. Furhter, under /dev/discs, there's
*no* "disc" link pointing to /dev/hde. Because of that, the hdparm init script
fails to set the parameters for /dev/hde.

In my system, I've got 4 IDE discs. Two on the on board controller (primary
master and secondary master) and two attached to a pdc20xxx_old controlled
Promise UDMA 100 controller (both times attached as masters). Further, I've got
an IDE CD-Rom at /dev/hdc.

Why is it, that the links in /dev/discs/disc1 are mostly (besides the disc)
wrong and why is it, that there's no /dev/discs/disc2 directory with links?




[12:44:23 alexander@server:/dev/discs] $ emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-ck3.009.reiser4_rc5-mm2.no-nfsv4.genkernel i686)
=================================================================
System uname: 2.6.12-ck3.009.reiser4_rc5-mm2.no-nfsv4.genkernel i686 AMD
Athlon(tm) XP 2000+
Gentoo Base System version 1.6.13
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://distfiles.gentoo.org/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X acl alsa apache2 apm arts artswrappersuid async avi
bash-completion bluetooth bonobo calendar cdda cddb cdparanoia cdr cdrom codecs
crypt cscope css cups dbus divx4linux dvdread encode esd ethereal exif fam fbcon
fbdev ffmpeg fftw firefox flash foomaticdb ftp gd gdbm gif gimp gimpprint gmail
gnokii gnome gphoto2 gpm gs gstreamer gtk gtk2 guile hal hpn iconv idn
imagemagick imap imlib java javascript jpeg kde kdeenablefinal kdexdeltas libwww
logitech-mouse logrotate lufsusermount lzw lzw-tiff mad maildir matroska matrox
mbox mime mmap mmx mng mozdevelop moznocompose moznoirc mozp3p mozsvg mp3 mpeg
mplayer ncurses network nls no-old-linux no_wxgtk1 noantlr nobcel nobeanutils
nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro
nopop3d noregexp norhino noxalan noxerces offensive ofx ogg oggvorbis opengl oss
pam parse-clocks pcntl pcre pda pdflib perl pic pie png posix ppds python qt
quicktime quotes rdesktop readline real recode samba sasl shared slang sockets
speex spell sse ssl svg symlink sysvipc tcltk tcpd theora tidy tiff truetype
truetype-fonts type1-fonts unicode usb usepackagedmakefiles vcd videos vim
vim-pager vim-with-x vorbis wmf wsconvert x11vnc xchattext xfs xine xml2 xmms xv
xvid zlib video_cards_matrox linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, PORTDIR_OVERLAY
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2005-08-01 12:16:46 UTC
udev version?
Comment 2 Alexander Skwar 2005-08-01 14:35:39 UTC
udev-064-r1
Comment 3 Alexander Skwar 2006-02-14 02:12:53 UTC
As far as I'm concerned, this bug is fixed since quite some time now. I've got not the faintest idea, since when.

Closing.