Re: Switching /etc/mtab to /proc/mounts and removing /lib/init/rw
On Fri, Jan 20, 2012 at 01:19:00PM +0400, Michael Tokarev wrote:
> The "problem" is that kernel does not know what /dev/mapper
> is, or what does /dev/r/usr thing mean. It knows these by
> their canonical (and meaningless) dm-N names, like this:
>
> [ 6.887981] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)
> [ 6.917555] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: usrquota
>
> Go figure which is dm-0 and which is dm-1 (lvm is here)!
>
> My point is that actually, _both_ /dev/mapper/r-usr and
> /dev/r/usr are wrong! But at least they - hopefully -
> lead to the actual device, unlike kernel messages I
> mentioned above which leads to nothing due to /dev/dm-0
> non-existing.
At least on my system (udev), they certainly do exist, for example:
% ls -l /dev/mapper/ravenclaw-root
lrwxrwxrwx 1 root root 7 Jan 20 09:01 /dev/mapper/ravenclaw-root -> ../dm-0
% ls -l /dev/ravenclaw/root
lrwxrwxrwx 1 root root 7 Jan 20 09:01 /dev/ravenclaw/root -> ../dm-0
% ls -l /dev/dm-0
brw-rw---T 1 root disk 253, 0 Jan 20 09:01 /dev/dm-0
So the dm-n devices all do exist, and one can work out which
logical volume each represent by looking at the symlinks.
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
Reply to: