Gentoo Archives: gentoo-user

From: Tim <root@×××××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] fd symlinks to pts?
Date: Tue, 03 Jun 2008 08:07:13
Message-Id: 4844EDBB.9010301@pneumaticsystem.com
In Reply to: Re: [gentoo-user] fd symlinks to pts? by Alan McKinnon
1 Alan McKinnon wrote:
2 > On Tuesday 03 June 2008, Tim wrote:
3 >> I recently had occasion to need a floppy drive. Thankfully, there was
4 >> one in my Gentoo box, but no support in the kernel. I added
5 >> CONFIG_BLK_DEV_IDEFLOPPY=y to .config and already had support for my
6 >> IDE chipset included, rebuilt my kernel, and rebooted.
7 >>
8 >> Now I have a folder /dev/fd/, but every entry there (0, 1, 2, and
9 >> 255) are all symlinks to /dev/pts/0. Relevant command outputs:
10 >
11 > /dev/fd is a symlink to /dev/self/fd
12 >
13 > and I believe that fd here means "file descriptor" not "floppy disk"
14 >
15 > do you have devices /dev/fd0 etc instead? If not, what do you get from
16 >
17 I do not.
18
19 > grep -r fd /etc/udev/rules.d/
20 >
21 produces:
22
23 /etc/udev/rules.d/99-libsane.rules:SYSFS{idVendor}=="06bd",
24 SYSFS{idProduct}=="20fd", MODE="660", GROUP="scanner"
25 /etc/udev/rules.d/60-persistent-storage.rules:KERNEL=="ram*|loop*|fd*|nbd*|gnbd*|dm-*|md*",
26 GOTO="persistent_storage_end"
27 /etc/udev/rules.d/50-udev.rules:KERNEL=="fd[0-9]*",
28 NAME="floppy/%k", SYMLINK+="%k", GROUP="floppy"
29 /etc/udev/rules.d/50-udev.rules:KERNEL=="fd[0-9]*", ACTION=="add",
30 ATTRS{cmos}=="*", RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M
31 0660 -G floppy $root/floppy/%k"
32 /etc/udev/rules.d/50-udev.rules:KERNEL=="fd[0-9]*", ACTION=="remove",
33 RUN+="/bin/sh -c 'rm -f $root/floppy/%k?*'"
34
35 -Tim
36 --
37 gentoo-user@l.g.o mailing list