On Fri, 2005-01-21 at 10:11 +0800, Uwe Dippel wrote: > On Thu, 20 Jan 2005 20:00:20 +0100, Ron Johnson wrote: > > > Did you install udev? > > Yes. And now ? > > Here is the complete story: I have two notebooks and bought a USB camera. > When I plugged itinto the first one, it said something about 'sdi' in > dmesg where I would have expected sda. Also, I couldn't mount it. Some > google brought me to a chap who noted that you need udev for it. I > installed it, and immediately I had sdi and could mount that camera. > Everything okay. Did the same with the second notebook, and this time, > many things went wrong. I also attached the camera, but on this notebook > dmesg shows it as sda. Only, sda doesn't exist any longer. > > I suspected udev (which installed alongside makedev though - as I saw > later - is marked as 'conflicting') and removed it. Still, MAKEDEV doesn't > recreate those nodes. > > How can I get back to normal on this machine? Don't you just *love* questions that make you ask, "What is normal?"? $ dir /dev/sda* ls: /dev/sda*: No such file or directory <plug in USB flash drive> $ dir /dev/sda* brw-r----- 1 root hal 8, 0 2005-01-20 21:13 /dev/sda brw-r----- 1 root hal 8, 1 2005-01-20 21:13 /dev/sda1 udev dynamically creates partitions. "Great", you say, "but it's a PITA to 'sudo tail -f /var/log/syslog' every time I stick in my thumb drive. And doesn't pass the Aunt Tilly test, either!" udev lets you (wants you to, actually) create local rules in /etc/udev/rules.d. Attached are my /etc/udev/rules.d/10-local.rules and /etc/fstab So, when I plug in my SanDisk Cruzer, udev automatically creates the proper /dev/sd* files and also /dev/cruzer. That way, I can hard code data in my /etc/fstab, and not have to worry about whether hotplug wants it to be /dev/sda, sdb, sdc, etc, etc. -- ----------------------------------------------------------------- Ron Johnson, Jr. Jefferson, LA USA PGP Key ID 8834C06B I prefer encrypted mail. "Vanity, my favorite sin." Larry/John/Satan, "The Devil's Advocate"
###BUS="usb", KERNEL="sd?1", SYSFS{serial}="3A2E17DF3FA1EE2D", NAME="thumb" BUS="usb", KERNEL="sd?1", SYSFS{serial}="074B16190198", NAME="attache" BUS="usb", KERNEL="sd?1", SYSFS{serial}="20041101331b0d42cd3e", NAME="cruzer" BUS="ieee1394", KERNEL="sd?1", SYSFS{specifier_id}="0x00609e", NAME="Archive_Disk"
# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /data/swap/swap001.swap none swap sw,noauto 0 0 /data/swap/swap002.swap none swap sw,noauto 0 0 #/data/swap/swap003.swap none swap sw,noauto 0 0 sysfs /sys sysfs defaults 0 0 devpts /dev/pts devpts default 0 0 /dev/hda2 /boot ext3 defaults 0 2 /dev/hda3 / ext3 errors=remount-ro 0 1 /dev/hda5 /home reiserfs defaults 0 2 /dev/hda6 /data ext3 defaults 0 2 none /proc/bus/usb usbfs defaults 0 0 /dev/cdrom /media/cdrom auto user,unhide,ro,noatime,async,uid=1000,gid=1000,noauto 0 0 /dev/sda1 /media/CF vfat rw,suid,dev,exec,noatime,noauto,user,async,uid=1000,gid=1000 0 2 /dev/sdc1 /media/SD vfat rw,suid,dev,exec,noatime,noauto,user,async,uid=1000,gid=1000 0 2 /dev/thumb /media/thumb auto rw,suid,dev,exec,noatime,noauto,user,async,uid=1000,gid=1000 0 2 /dev/cruzer /media/cruzer vfat rw,suid,dev,exec,noatime,noauto,user,async,uid=1000,gid=1000 0 2 /dev/attache /media/attache vfat rw,suid,dev,exec,noatime,noauto,user,async,uid=1000,gid=1000 0 2 /dev/Archive_Disk /media/1394 ext3 rw,suid,dev,exec,noatime,noauto,user,async 0 2
Attachment:
signature.asc
Description: This is a digitally signed message part