Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#1632 - new totem does not like devfs

Attached to Project: Arch Linux
Opened by Steven Van Impe (stevenvanimpe) - Saturday, 16 October 2004, 12:24 GMT
Last edited by arjan timmerman (blaasvis) - Friday, 24 December 2004, 14:33 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

totem can't play discs anymore because it looks for /dev/hdc in fstab (which is set up with devfs naming scheme by default)

conclusion: no-one likes devfs and no-one should, so please drop it :)
(application/octet-stream)    fstab (0.8 KiB)
This task depends upon

Closed by  Jan de Groot (JGC)
Sunday, 03 April 2005, 16:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  Seems to be fixed in current versions, since totem has code to look for DVD or CD itself (supplying /dev/hdc hardcoded won't work)
Comment by arjan timmerman (blaasvis) - Monday, 18 October 2004, 06:54 GMT
the /dev/hdc is an udev way also, and my systems only run udev.
if you file bug reports could you please be more specifike, like what versions what kernel what options. How you came to this bug etc...

This will save me a lot of time finding out how to fix change it.
2 lines for a bug report is a bit to low.
And you can find me most of the time @irc ;)
Comment by Steven Van Impe (stevenvanimpe) - Monday, 18 October 2004, 07:41 GMT
latest 2.6 kernel with default options and latest udev, bootscripts are all set up during install (with devfs naming scheme it appears)

totem error occured after upgrading and I had a similar problem with gnome-volume-manager (also looking for the standard device names)
Comment by arjan timmerman (blaasvis) - Monday, 18 October 2004, 08:05 GMT
so it isn't totem of devfs related, /dev/hd* is used for dbus/hal to look for cdrom devices ;)
and did you add to your fstab cdroms ?
Comment by Steven Van Impe (stevenvanimpe) - Monday, 18 October 2004, 08:19 GMT
they were set up by default as /dev/cdroms/cdrom{0,1}, if you use the standard naming scheme in fstab all is well
Comment by arjan timmerman (blaasvis) - Monday, 18 October 2004, 08:29 GMT
# ide block devices
BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}"

make sure this line is in /etc/udev/rules.d/udev.rules, this is an standard udev files i have been using for a while now.
i never have editted this file, i only setted up the permissions, you might have a first version of udev.rules when it was first release.
Comment by arjan timmerman (blaasvis) - Monday, 18 October 2004, 08:30 GMT
ah i now understand, you are using the standard /etc/fstab still i'll move this to apeiro now.
Comment by arjan timmerman (blaasvis) - Monday, 18 October 2004, 08:31 GMT
apeiro: what do you think should our fstab link to /dev/cdroms/* or /dev/hd*
Comment by Judd Vinet (judd) - Tuesday, 19 October 2004, 17:53 GMT
The problem with using /dev/hd* is that we don't know beforehand what the "*" will be. I can't just put /dev/hdc into Arch's default fstab and expect to have every Arch users's CD-ROM be on their /dev/hdc channel.

By using /dev/cdroms/cdrom0, I know that I'll be pointing to a CD-ROM drive and not a hard drive.
Comment by Steven Van Impe (stevenvanimpe) - Tuesday, 19 October 2004, 19:12 GMT
Certainly there has to be a way too configure this automatically.
Distros like Fedora and Ubuntu do this with the standard device names, they even know the types of the drives (DVD-ROM/CD-RW combo for example).
Comment by arjan timmerman (blaasvis) - Wednesday, 20 October 2004, 06:34 GMT
steven please post your /etc/fstab ;)
Comment by Steven Van Impe (stevenvanimpe) - Wednesday, 20 October 2004, 08:18 GMT
uploaded my fstab
since Gnome 2.8 I changed the cdroms and harddrives to regular device names, solving problems with totem and gnome-volume-manager (so previously, fstab contained /dev/cdroms/cdromX and /dev/disc/discX/partY)
Comment by arjan timmerman (blaasvis) - Saturday, 20 November 2004, 15:42 GMT
found a solution:

udev.rules needs to be changed
# ide block devices
BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}"

should become
# ide block devices
BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", NAME="%c{2}", SYMLINK="%c{1} %k"

this way it will take the right device that's also in the fstab

i am going to give it to apeiro again so he can make the change.
Comment by Judd Vinet (judd) - Wednesday, 02 February 2005, 02:47 GMT
Yes, but that will make /dev/hd* a symlink instead, which could break other things.

Our eventual goal is to move away from the devfs scheme, so this solution would move in the opposite direction.

Not definite yet, but I think 0.8 may leave the 2.4 kernel behind completely and devfs with it. A proper solution will be to change the installer to use the /dev/hd* names, using sysfs to find the CD/DVD drives for fstab entries.

Loading...