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