Gentoo Archives: gentoo-user

From: Alexander Skwar <listen@×××××××××××××××.name>
To: gentoo-user@l.g.o
Subject: [gentoo-user] What's creating symlinks in /dev/disk?
Date: Fri, 15 Jun 2007 07:27:10
Message-Id: 13753354.7S7cxyHJQn@kn.gn.rtr.message-center.info
1 Hello.
2
3 Under /dev/disk, we find links that point to the devices
4 which "host" a filesystem. For example, suppose there's
5 a filesystem with the label "Home" and it's stored on
6 the LV called "Home" on the "sys" VG (ie. /dev/sys/Home).
7 We then find:
8
9 --($:~)-- ls -la /dev/disk/by-label/Home
10 lrwxrwxrwx 1 root root 21 15. Jun 2007 /dev/disk/by-label/Home -> ../../mapper/sys-Home
11
12 Same for by-uuid, by-id and by-path (well, by-path is a
13 bit different, but please disregard that for this question).
14 Eg.:
15
16 --($:~)-- ls -la /dev/disk/by-uuid/73780e0c-0e0b-4afb-8412-77efc2ad8222 /dev/disk/by-id/dm-name-sys-Home
17 lrwxrwxrwx 1 root root 21 15. Jun 2007 /dev/disk/by-id/dm-name-sys-Home -> ../../mapper/sys-Home
18 lrwxrwxrwx 1 root root 21 15. Jun 2007 /dev/disk/by-uuid/73780e0c-0e0b-4afb-8412-77efc2ad8222 -> ../../mapper/sys-Home
19
20 What "system" is creating those symlinks during boot?
21 Who is responsible for doing that? Is it udev? Or something
22 from util-linux?
23
24 Reason for this question: Plain old curiosity :) I see that
25 this works very well on Gentoo but doesn't work on other
26 distributions...
27
28 Best regards,
29
30 Alexander Skwar
31
32 --
33 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] What's creating symlinks in /dev/disk? Dirk Heinrichs <dirk.heinrichs.ext@×××.com>