Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] /dev/sda* missing at boot
Date: Thu, 08 Sep 2011 03:31:30
Message-Id: CADPrc83k2zzO6C97M+gXU1tRn6DXstz7B0tWvsrdX0iJmkhP7g@mail.gmail.com
In Reply to: Re: [gentoo-user] /dev/sda* missing at boot by Neil Bothwick
1 On Wed, Sep 7, 2011 at 7:55 PM, Neil Bothwick <neil@××××××××××.uk> wrote:
2 > On Wed, 7 Sep 2011 19:04:17 -0400, Canek Peláez Valdés wrote:
3 >
4 >> > Putting it on a logical volume is one advantage, allowing /usr to be
5 >> > resized should the need arise.
6 >>
7 >> Why not allow / to be resized entirely? You probably will take the
8 >> machine off-line anyway.
9 >
10 > Because you can't boot from an LV, so you'd than need a separate /boot
11 > and an initramfs. Without LVM, you are unlikely to be able to resize /
12 > or /usr as it is not usually the last partition on the drive.
13
14 So, you guys want a separated /usr, but don't want a separate /boot. Awesome.
15
16 >> >> Mounting it read-only
17 >> >> seems the only sensible one, and then I think is better to go all the
18 >> >> way and mount / read-only.
19 >> >
20 >> > Putting /etc on a read-only filesystem seems a really bad idea.
21 >>
22 >> mount -o remount,rw /
23 >> emerge --sync && emerge -uDNv world
24 >> dispatch-conf
25 >> mount -o remount,ro /
26 >>
27 >> Or, if you only want to modify some configuration file (which in a
28 >> sane environment doesn't happen that often):
29 >>
30 >> mount -o remount,rw /
31 >> adduser fulano ...
32 >> mount -o remount,ro /
33 >
34 > This is longer than the init script needed in an initramfs. I wonder what
35 > problems you'd have when booting as the kernel tries to update the likes
36 > of /etc/mtab on a read-only fs.
37
38 # ls -l /etc/mtab
39 lrwxrwxrwx 1 root root 17 Dec 1 2010 /etc/mtab -> /proc/self/mounts
40
41 I don't see any problem at all.
42
43 >> Again, I don't see the reason for a separated /usr.
44 >
45 > That doesn't mean there aren't several valid reasons to do so.
46
47 I didn't say they were invalid, I say that *I* don't see the reason to
48 separate /usr. The arguments exposed just don't convice me. But
49 anyway, you will be able to do it with an initramfs.
50
51 >> But *again*, if
52 >> that's what you want, you will be able to do it. You will just need an
53 >> initramfs.
54 >
55 > I neither have nor need one at the moment, which means this update will
56 > break my system.
57
58 Then don't update. Wanna keep up with upstream? Then accept that
59 sometimes you will need to change your setup, and change how you do
60 stuff.
61
62 Regards.
63 --
64 Canek Peláez Valdés
65 Posgrado en Ciencia e Ingeniería de la Computación
66 Universidad Nacional Autónoma de México

Replies

Subject Author
Re: [gentoo-user] /dev/sda* missing at boot Dale <rdalek1967@×××××.com>
Re: [gentoo-user] /dev/sda* missing at boot Neil Bothwick <neil@××××××××××.uk>