Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] LVM, /usr and really really bad thoughts.
Date: Sat, 10 Mar 2012 02:50:32
Message-Id: 4F5AC0F6.6000804@gmail.com
1 Howdy,
2
3 Well, this is what I am thinking about jumping into. Ya'll ready for
4 this? I'm thinking about redoing my partition layout. I'm wanting to
5 keep / (root) on a normal ext4 file system. I want to put /usr, /var,
6 /home, and such on LVM. I been using that dracut thingy to build the
7 init thingy. Sorry, I'm full of thingys tonight. Maybe I need my meds?
8 Anyway, the init thingy seems to be working, I think. I asked a while
9 back how to tell for sure but it didn't get any replies so I am not real
10 sure it is. I do get this tho:
11
12 root@fireball / # dmesg | grep init
13 [ 0.000000] Command line: root=/dev/sda3 init=/sbin/init
14 [ 0.000000] initial memory mapped : 0 - 20000000
15 [ 0.000000] init_memory_mapping: 0000000000000000-00000000bfc91000
16 [ 0.000000] init_memory_mapping: 0000000100000000-0000000440000000
17 [ 0.000000] Kernel command line: root=/dev/sda3 init=/sbin/init
18 [ 0.000000] Memory: 16387452k/17825792k available (6262k kernel code,
19 1052572k absent, 385768k reserved, 6647k data, 4852k init)
20 [ 0.003045] Security Framework initialized
21 [ 0.388120] SCSI subsystem initialized
22 [ 0.410739] pnp: PnP ACPI init
23 [ 0.787822] Trying to unpack rootfs image as initramfs...
24 [ 0.867787] Freeing initrd memory: 5084k freed
25 [ 0.880111] audit: initializing netlink socket (disabled)
26 [ 0.880439] type=2000 audit(1331081750.879:1): initialized
27 [ 0.912626] fuse init (API version 7.17)
28 [ 1.258561] ehci_hcd 0000:00:12.2: init command 0010005 (park)=0
29 ithresh=1 period=512 RUN
30 [ 1.270152] ehci_hcd 0000:00:13.2: init command 0010005 (park)=0
31 ithresh=1 period=512 RUN
32 [ 1.583458] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19)
33 initialised: dm-devel@××××××.com
34 [ 4.258421] init-early.sh used greatest stack depth: 3696 bytes left
35 [ 4.503735] init.sh used greatest stack depth: 3576 bytes left
36 root@fireball / # dmesg | grep dracut
37 [ 3.018189] dracut: Checking reiserfs: /dev/sda3
38 [ 3.018531] dracut: issuing reiserfsck -a /dev/sda3
39 [ 3.033879] dracut: Reiserfs super block in block 16 on 0x803 of
40 format 3.6 with standard journal
41 [ 3.034463] dracut: Blocks (total/free): 4883760/2502678 by 4096 bytes
42 [ 3.034781] dracut: Filesystem is clean
43 [ 3.035210] dracut: Remounting /dev/sda3 with -o ro
44 [ 3.082413] dracut: Mounted root filesystem /dev/sda3
45 [ 3.158322] dracut: Switching root
46 root@fireball / #
47
48 And grub looks like this:
49
50 title=Initramfs-new_kernel
51 root (hd0,0)
52 kernel /boot/bzImage-3.2.2-1 root=/dev/sda3 init=/sbin/init
53 initrd /initramfs-3.2.2-1.img
54
55 Does anyone think dracut is not working? I need to make certain before
56 diving into the next step.
57
58 I have a second drive that is plenty large enough. Thanks Kashani. I
59 plan to move everything currently to the larger drive then just sort of
60 do a fresh install on my regular OS drive.
61
62 One question I have right off the bat, how do I tell dracut to mount
63 /usr? I think it used to have a usr USE flag but that seems to have
64 disappeared during a upgrade. Is it magic? Does it need to mount /var
65 as well for logging?
66
67 Just for the record, dracut is the only way I could get a init thingy to
68 build and let me boot. I tried different ways and they just didn't
69 work. At least I think dracut is working which is a good start. ;-)
70
71 I hope there is a few dracut users on here that have at least /usr on a
72 separate partition.
73
74 Thanks.
75
76 Dale
77
78 :-) :-)
79
80 --
81 I am only responsible for what I said ... Not for what you understood or
82 how you interpreted my words!
83
84 Miss the compile output? Hint:
85 EMERGE_DEFAULT_OPTS="--quiet-build=n"

Replies

Subject Author
Re: [gentoo-user] LVM, /usr and really really bad thoughts. "Canek Peláez Valdés" <caneko@×××××.com>
Re: [gentoo-user] LVM, /usr and really really bad thoughts. pk <peterk2@××××××××.se>
Re: [gentoo-user] LVM, /usr and really really bad thoughts. Todd Goodman <tsg@×××××××××.net>