You are not logged in.

#1 2004-11-11 15:17:22

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Changing from devfs to udev

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

#2 2004-11-11 15:31:26

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Re: Changing from devfs to udev

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

#3 2004-11-11 18:11:41

skeeterbug
Member
From: Oklahoma, USA
Registered: 2004-10-24
Posts: 92
Website

Re: Changing from devfs to udev

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

#4 2004-11-12 13:52:19

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Changing from devfs to udev

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

#5 2004-11-14 15:39:43

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Re: Changing from devfs to udev

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

#6 2004-11-23 09:22:43

smarcher
Member
From: Calcutta
Registered: 2003-12-12
Posts: 42
Website

Re: Changing from devfs to udev

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

#7 2004-11-23 12:16:04

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Re: Changing from devfs to udev

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

#8 2004-11-23 12:19:07

skeeterbug
Member
From: Oklahoma, USA
Registered: 2004-10-24
Posts: 92
Website

Re: Changing from devfs to udev

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

#9 2004-11-25 05:36:44

smarcher
Member
From: Calcutta
Registered: 2003-12-12
Posts: 42
Website

Re: Changing from devfs to udev

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

#10 2004-11-25 11:17:35

smarcher
Member
From: Calcutta
Registered: 2003-12-12
Posts: 42
Website

Re: Changing from devfs to udev

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

#11 2004-11-26 00:31:54

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Re: Changing from devfs to udev

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

#12 2004-11-26 05:03:40

smarcher
Member
From: Calcutta
Registered: 2003-12-12
Posts: 42
Website

Re: Changing from devfs to udev

Hi

cdrom/writer working. My mistake. cdrecord dev=ATAPI -scanbus show the cdrom/writer alright.

:-)

Offline

#13 2004-11-26 21:00:32

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: Changing from devfs to udev

dekernel wrote:

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

#14 2004-11-28 22:04:43

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Re: Changing from devfs to udev

Ahhh, that make sense.
Thanks.

Offline

#15 2004-12-06 21:11:14

segmental
Member
Registered: 2004-11-07
Posts: 51

Re: Changing from devfs to udev

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

#16 2004-12-06 23:50:48

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Re: Changing from devfs to udev

Out of curiosity, what is in your /proc/filesystems?

Offline

#17 2004-12-07 01:57:59

segmental
Member
Registered: 2004-11-07
Posts: 51

Re: Changing from devfs to udev

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

#18 2004-12-17 03:49:17

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Re: Changing from devfs to udev

Do you have "devfs=nomount" as a command-line option to the kernel?

Offline

Board footer

Powered by FluxBB