You are not logged in.
I spent some time looking through posting to make sure this question has not been proposes.
I just changed my test machine over to udev, and it seems to be working. I still have a question. I spent some time looking over /dev directory and fstab, and my question is this
Shouild I change my fstab file from:
/dev/discs/disc0/part2 swap swap defaults 0 0
/dev/discs/disc0/part1 / reiserfs defaults 0 0
to:
/dev/hda2 swap swap defaults 0 0
/dev/hda1 / reiserfs defaults 0 0
being that if I take a look in /dev
[root@tfbarber02 etc]# ll /dev/discs/disc0/
total 0
drwxr-xr-x 2 root root 0 2004-11-10 02:38 .
drwxr-xr-x 4 root root 0 2004-11-10 02:38 ..
lrwxrwxrwx 1 root root 9 2004-11-10 02:38 disc -> ../../hda
lrwxrwxrwx 1 root root 10 2004-11-10 02:38 part1 -> ../../hda1
lrwxrwxrwx 1 root root 10 2004-11-10 02:38 part2 -> ../../hda2
lrwxrwxrwx 1 root root 10 2004-11-10 02:38 part3 -> ../../hda3
So the long and short is, should I convert my fstab back since to the old /dev/hdxx way of doing nodes? What is best for udev?
Offline
After looking over my question, I think I can rephrase the question so it might actually make sense.
Here we go, are the soft links in /dev (/dev/cdroms/* and /dev/discs/*) only there for converting from devfs to udev or are they apart of the udev design?
I hope this question makes more sense?
Offline
I think they're put in /dev by /etc/udev/ide-devfs.sh which is owned by udev. I further believe that they're there to keep things that look for the devfs device from breaking.
In answer to your original question - I have one machine that I changed the fstab (my desktop) and one that I use as a server that I didn't change - both work fine.
I guess it's up to you but as Arch is going away from devfs to udev I think it is a 'good ide'(tm) and will probably change that server over when I get time.
Offline
If you cast your mind back to the official udev announcement on 15 July, Judd mentioned that a devfs-compatible ruleset was included - so that's what you're seeing.
Offline
That is what I was thinking when I was looking at the rules files. I switched all entries in my fstab file from the symlinks to nodes, and my system appears to be working.
Thanks All
Offline
Hi
Could you paste your fstab here? I seem to have done something wrong when I switched to udev from devfs (I followed the instructions in the Wiki). Everything boots up and works, but sudo cdrecord --scanbus does not show neither the cdwriter nor the cdrom drive. I am using the latest kernel26 (ide) (pacman -S kernel26).
When I switch on my USB printer /dev/usb/lp0 does not show up (usblp is loaded from rc.conf and hotplug is runing as a daemon). Doing a cat /proc/usb/devices does nothing. When I switch off the printer it show the normal output.
Thanks in advance.
Offline
Here is my machine at work. If this is not good enough, I will post my machine at home.
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /proc proc defaults 0 0
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0
sysfs /sys sysfs defaults 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
/dev/hdc /media/cd auto ro,user,noauto,unhide 0 0
/dev/hdd /media/dvd auto ro,user,noauto,unhide 0 0
/dev/floppy/0 /media/floppy auto user,noauto,unhide 0 0
/dev/hda2 swap swap defaults 0 0
/dev/hda1 / reiserfs defaults 0 0
/dev/hdb1 /storage vfat gid=100,umask=000 0 0
Offline
Here's mine on this box fwiw...
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0
usbfs /proc/bus/usb usbfs defaults 0 0
/dev/cdroms/cdrom0 /mnt/cd iso9660 ro,user,noauto,unhide 0 0
/dev/cdroms/cdrom0 /mnt/dvd udf ro,user,noauto,unhide 0 0
#/dev/floppy/0 /mnt/fl vfat user,noauto 0 0
/dev/floppy/0 /mnt/fl auto user,noauto 0 0
/dev/sda5 swap swap defaults 0 0
/dev/sda2 / ext3 defaults 0 1
/dev/sda7 /home ext3 defaults 0 1
/dev/sda8 /data ext3 defaults 0 1
Offline
Hi!
Thanks a ton guys!
My problem is solved after I commented out the sysfs line.
But it is a bit flaky still.
Thanks a lot.
Offline
Hi
Everything seems to be working fine, but I cannot seem to see the cdwriter and cdrom drive if I do a (as root):
cdrecord --scanbus
I get a lot of meesages out of which I see that there is a message saying something about /dev/pg. When I do a ls on /dev/ I see that pg is not there. But I can mount the cdwriter and cdrom both.
Wonder what could the problem be? USB printer seems to be working fine. Have to figure out the udev permissions. Any help is welcome!
:-)
Offline
I am puzzled as to why you had to comment out the /sys entry. I thought that this filesystem entry was controlled by the kernel since it represents what it saw during the boot process.
Then udev used entries in there to then populate the /dev directory.
Am I missing somthing?
Offline
Hi
cdrom/writer working. My mistake. cdrecord dev=ATAPI -scanbus show the cdrom/writer alright.
:-)
Offline
I am puzzled as to why you had to comment out the /sys entry. I thought that this filesystem entry was controlled by the kernel since it represents what it saw during the boot process.
Then udev used entries in there to then populate the /dev directory.
Am I missing somthing?
sysfs gets mounted in rc.sysinit
arch + gentoo + initng + python = enlisy
Offline
Ahhh, that make sense.
Thanks.
Offline
I don't have anything in /sys. Is that much of a problem?
It does not get populated because there is no sysfs
in /proc/filesystems.
Other than that, I'm stumped.
Offline
Out of curiosity, what is in your /proc/filesystems?
Offline
This is it
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev tmpfs
nodev shm
nodev pipefs
nodev binfmt_misc
ext3
ext2
nodev ramfs
iso9660
nodev devfs
nodev nfs
udf
reiserfs
nodev devpts
jfs
xfs
nodev usbdevfs
nodev usbfs
vfat
Offline
Do you have "devfs=nomount" as a command-line option to the kernel?
Offline