public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] LVM, /usr and really really bad thoughts.
  @ 2012-03-11 18:26 99%             ` Canek Peláez Valdés
  0 siblings, 0 replies; 1+ results
From: Canek Peláez Valdés @ 2012-03-11 18:26 UTC (permalink / raw
  To: gentoo-user

2012/3/11 Jorge Martínez López <jorgeml@gmail.com>:
> Hi!
>
> I had some struggle with a separate /usr on top of LVM and the dracut
> thing. I noticed that udev was complaining at boot that it could not
> find some scripts.
>
> The usmount dracut module did not work for me because it could not
> find /usr. So what I did was to include the fstab-sys smodule in
> dracut:
>
> /etc/dracut.conf
>
> # Dracut modules to omit
> omit_dracutmodules+="usrmount"
>
> # Dracut modules to add to the default
> add_dracutmodules+="fstab-sys"
>
> Then I created /etc/fstab.sys with just the /usr partition
>
> /dev/disk/by-uuid/90d82b02-e6c2-4011-940e-783d12b0c4fe          /usr            ext4            noatime         1 2
>
> Dracut could only find the partition by using the uuid (use blkid to
> find it easily).

> The next step was to remove /usr from /etc/fstab to prevent /usr from
> being mounted twice (the boot process does not like it).

Mmmh. Could you try to use LABEL= in /etc/fstab (not /etc/fstab), and
see if that way it gets mounted, and only once? The udev developers
recommend using either UUID or LABEL; and LABEL it's easier (and
prettier) to set.

> The last obstacle is /etc/mtab. By the time /usr is mounted I believe
> / is mounted as read only, so mount cannot update /etc/mtab. The
> trivial solutions is to delete /etc/mtab and make it a symlink to
> /proc/mounts . In that case it is always up to date.

I think the link is to /proc/self/mounts; /proc/mounts it's a link to
it, actually.

> Of course, YMMV. Be careful when changing things that can prevent your
> machine from booting and make sure you have a live CD at hand.

Good advice. Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2012-03-10  2:48     [gentoo-user] LVM, /usr and really really bad thoughts Dale
2012-03-10 10:58     ` pk
2012-03-10 15:35       ` Neil Bothwick
2012-03-10 20:50         ` pk
2012-03-11  2:36           ` Canek Peláez Valdés
2012-03-11  9:37             ` pk
2012-03-11 12:16               ` Jorge Martínez López
2012-03-11 18:26 99%             ` Canek Peláez Valdés

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox