From: "Canek Peláez Valdés" <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] LVM, /usr and really really bad thoughts.
Date: Sun, 11 Mar 2012 12:26:47 -0600 [thread overview]
Message-ID: <CADPrc806wfqCY5a41i5mKPLAjFVs+yLLRFRGz3skMGQxNZq0Ag@mail.gmail.com> (raw)
In-Reply-To: <CAMgZwF3aHqhqgJZKV6eBWEfLP83mPKS4nPAuLQGJ-mERyAMn=Q@mail.gmail.com>
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
next prev parent reply other threads:[~2012-03-11 18:28 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-10 2:48 [gentoo-user] LVM, /usr and really really bad thoughts Dale
2012-03-10 3:44 ` Canek Peláez Valdés
2012-03-10 4:16 ` Dale
2012-03-10 5:41 ` Canek Peláez Valdés
2012-03-10 6:03 ` Dale
2012-03-10 8:45 ` Neil Bothwick
2012-03-10 9:45 ` Dale
2012-03-10 9:52 ` Neil Bothwick
2012-03-10 9:53 ` Neil Bothwick
2012-03-10 10:30 ` Dale
2012-03-10 10:49 ` Neil Bothwick
2012-03-10 11:28 ` Dale
2012-03-10 11:12 ` William Kenworthy
2012-03-10 10:58 ` pk
2012-03-10 15:35 ` Neil Bothwick
2012-03-10 20:50 ` pk
2012-03-10 21:01 ` Canek Peláez Valdés
2012-03-10 22:12 ` Neil Bothwick
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 ` Canek Peláez Valdés [this message]
2012-03-12 18:13 ` Jorge Martínez López
2012-03-11 20:59 ` [gentoo-user] " walt
2012-03-12 18:23 ` Jorge Martínez López
2012-03-12 18:30 ` Michael Mol
2012-03-12 18:39 ` Bruce Hill, Jr.
2012-03-12 20:25 ` Mick
2012-03-12 20:39 ` Michael Mol
2012-03-12 20:40 ` Alan McKinnon
2012-03-12 23:22 ` Dale
2012-03-12 23:53 ` Canek Peláez Valdés
2012-03-13 15:35 ` Alan McKinnon
2012-03-13 15:50 ` Pandu Poluan
2012-03-13 1:58 ` Mike Edenfield
2012-03-13 4:54 ` Pandu Poluan
2012-03-13 7:13 ` Alan McKinnon
2012-03-13 7:31 ` Pandu Poluan
2012-03-13 7:38 ` Canek Peláez Valdés
2012-03-13 8:03 ` Pandu Poluan
2012-03-13 11:07 ` Neil Bothwick
2012-03-13 18:34 ` pk
2012-03-14 16:17 ` Mike Edenfield
2012-03-14 16:28 ` Pandu Poluan
2012-03-14 22:15 ` Mike Edenfield
2012-03-15 1:03 ` Walter Dnes
2012-03-15 2:47 ` Dale
2012-03-15 9:13 ` Neil Bothwick
2012-03-15 10:10 ` Dale
2012-03-15 10:18 ` Neil Bothwick
2012-03-15 12:41 ` Tanstaafl
2012-03-15 13:05 ` Neil Bothwick
2012-03-15 13:56 ` Tanstaafl
2012-03-15 14:13 ` Neil Bothwick
2012-03-15 14:13 ` Mark Knecht
2012-03-16 5:39 ` Joost Roeleveld
2012-03-16 8:47 ` Neil Bothwick
2012-03-15 14:09 ` Mike Edenfield
2012-03-15 14:47 ` Michael Mol
2012-03-15 16:37 ` Pandu Poluan
2012-03-16 18:14 ` Dale
2012-03-15 12:38 ` Tanstaafl
2012-03-13 8:09 ` Walter Dnes
2012-03-13 8:20 ` Canek Peláez Valdés
2012-03-14 14:21 ` Dale
2012-03-14 14:41 ` Alan Mackenzie
2012-03-14 14:55 ` Pandu Poluan
2012-03-13 8:15 ` [gentoo-user] " Walter Dnes
2012-03-11 3:25 ` John Blinka
2012-03-10 17:13 ` Todd Goodman
2012-03-10 21:07 ` Dale
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADPrc806wfqCY5a41i5mKPLAjFVs+yLLRFRGz3skMGQxNZq0Ag@mail.gmail.com \
--to=caneko@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox