Gentoo Archives: gentoo-user

From: victor romanchuk <rom@××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] how can I disable renaming of root fs to "/dev/root"?
Date: Sat, 12 Nov 2011 11:45:52
Message-Id: 4EBE5BE5.6060400@persimplex.net
In Reply to: [gentoo-user] how can I disable renaming of root fs to "/dev/root"? by Jarry
1 Jarry wrote, at 11/11/2011 09:37 PM:
2 > Hi,
3 > this is actually not problem but rather a matter of customs:
4 > My new fresh installed system shows root-fs in "df" as
5 > /dev/root, not actuall device (in my case /dev/md2).
6 >
7 > I think I coud get used to it, but some software still needs
8 > /dev/md2 (i.e. lilo), other does not find /dev/md2 anymore
9 > and needs /dev/root to work properly (i.e. monit).
10 >
11 > Moreover, in /etc/fstab I still have to use /dev/md2 as root
12 > filesystem, while /etc/mtab shows only /dev/root.
13 >
14 > I do not like such a mess and I'd like to put it in rather
15 > consistent state where root filesystem has always the same
16 > and only name. Is there some way to stop this renaming
17 > of root filesystem to /dev/root and let it be as in old
18 > baselayout1?
19 >
20 > Jarry
21
22 try that patch (attached):
23
24 sometime ago i have found it in gentoo forums. probably did few modifications in
25 the original i found, cannot remember. it works for me for months with no
26 visible problems
27
28 victor

Attachments

File name MIME type
mtab.patch text/x-patch

Replies