[SOLVED] Lvm HOOK, what string?

In the wiki about LVM, https://wiki.archlinux.org/index.php/LV … tcpio.conf it can be read that you should do the following:
  Add lvm hook to mkinitcpio.conf
  You'll need to make sure the udev and lvm2 mkinitcpio hooks are enabled.
  udev is there by default. Edit the file and insert lvm2 between block and filesystem like so:
  /etc/mkinitcpio.conf:
  HOOKS="base udev ... block lvm2 filesystems"
  Afterwards, you can continue in normal installation instructions with the create an initial ramdisk step.
Then if i open the /etc/mkinitcpio.conf it is a line commented looking like this: HOOKS="base udev block lvm2 filesystems"
Then, what string should i set the hook variable to? "base udev block lvm2 filesystems" or something more? I do not understand if i should add something, and end up with:
HOOKS="base udev /dev/sda2 block lvm2 filesystems"  because my lvm partition on the physical drive is /dev/sda2 or something else?
Probably I need to read up on mkinitcpio and hooks but some basic info about what is going on is very appriciated. A lot of thing i encounter now when im installing arch is new to me and I have been trying to setup my system now for a week:P Started out by just following a guide, but that turned out to be a bad idea, its probably better to read the whole wiki first. I like the wiki a lot, its better than most information i find while googling the same topics.
However, I just wish i could get my system setup at this point and then graduatly learn more about all techniqueus involved, thank you:)
What i need is probably just: "base udev block lvm2 filesystems" and something additional for crypto, I will update this topic when i get everything working
Last edited by ManFrommArch (2014-01-12 13:15:16)

There are no hook variables, "lvm2" is the only thing you need to add. I suggest you read https://wiki.archlinux.org/index.php/Mkinitcpio  Also you might want to drop in on irc.
Last edited by Mr.Elendig (2014-01-12 13:14:28)

Similar Messages

  • [SOLVED] LVM volume not found while booting

    I have an error while trying to boot with both Syslinux and GRUB (GRUB was my 1st choice but I got this error so switched to Syslinux). It's BIOS system, my boot is on /dev/sda1 and root is inside LVM on /dev/sda2. It states that device /dev/mapper/TheVG-RootLV can not be found so the problem is with LVM. There is lvm2 hook in mkinitcpio.conf, dolvm in my kernel line... what could I do wrong? I had no problem with this exact setup on my UEFI system and GRUB. Boot partition is loaded even if it's also inside LVM (that was the case when I was trying to run it via GRUB). GPT partition table.
    Last edited by smsware (2013-05-25 16:55:48)

    This has been an ongoing issue with the Arch Linux LVM2 setup since it was changed to using lvmetad.  You did nothing wrong.  My home server still sits on an LVM, so what I did was downgraded lvm2 and device-mapper on that machine and have been ignoring the updates until I can find a better solution... though I haven't been looking very hard.
    Also, with mkinitcpio, there is no "dolvm" command line parameter.  It runs the LVM2 stuff depending on whether or not you have the lvm hook in your mkinicpio.conf (or add it otherwise with the command line).  So yu can safely remove that.
    The reason that Grub is able to read the /boot partition, but then it can still fail to find the rootfs is because these are two separate things.  Grub has its own system to give it LVM compatibility.  So it uses its stuff to read that, gets the information it needs, then loads the kernel and initramfs. It then passes the system off, at which point, this process of detecting the LVM and finding the rootfs happens all over again, albiet with the kernel and native linux userspace tools.
    My laptop was on LVM2 when this change occurred.  It worked for a while, and then just totally borked... well not toally, but it was way inconsistent and super frusturating.  So I changed to btrfs.  There is a thread about luks and lvm2 not booting, but it is actually just about lvm2, as the luks part of it was just cioncidence.  You may want to ahve a look there because there is a slight change you can make in your lvm.conf that might help.  It helped in my case, but it only made it slightly less borked, which is why I eventually changed setups.
    Edit: I remember the edit having something to do with a filter... or global filter... something about having it not scan floppies and cdroms and whatnot.
    Last edited by WonderWoofy (2013-05-23 00:05:31)

  • HT5628 When I install Windows 8 on my MacBook Pro(13-inch,Early2011),the Super DVD Drive doesn't appear in Windows 8 and installing Boot Camp 5 drivers doesn't solve my problem,what can I do?

    When I install Windows 8 on my MacBook Pro(13-inch,Early2011),the Super DVD Drive doesn't appear in Windows 8 and installing Boot Camp 5 drivers doesn't solve my problem,what can I do?

    Go into your system preferences and click the startup disk icon then select your Mac HD. 

  • I want to install Photoshop but everytime I get an ERROR CODE: A12E1.How do I solve that and what is it?

    Hello,
    I want to install Photoshop but everytime I get an ERROR CODE: A12E1.How do I solve that and what is it?

    A12E1 error installing Creative Cloud products | CC
    Mylenium

  • Installer appears as "blank dos-box type", hangs, anti virus off, firewall off, system win xp 64 bit. all attempts to solve failed. What next?

    installer appears as "blank dos-box type", hangs, anti virus off, firewall off, system win xp 64 bit. all attempts to solve failed. What next?

    Jeff,
    after trying to find, and use screen shot, i tried to access reader
    downloader... instead, found an offline version of reader. after
    installation started getting false reports that appeared as avg pop-ups.
    Within task manager, was able to detect virus / worm running 6 - 8
    services. immediately disconnected my 'net connection. closed all active
    services being run by rogue process. determined it was using two files
    named "lastalive0.dat" and"lastalive1.dat" to determine it's own status...
    upon stopping it's services it controlled, it would soft re-boot to
    resurrect another hijack attempt. tried workaround using secondary boot
    (win 7) to no avail. after two days, i transferred personal data to
    removable media and am in process of installing debian version of linux.
    i thank you for reply and apologize for my tardy response, it was my first
    forum experience
    tim
    On Tue, Mar 31, 2015 at 10:32 AM, Jeff A Wright <[email protected]>

  • In making my apple id ready to using app store and itunes i tap on the none in the credit card but it say me contact itunes spport  to solve this problem what have I do ?

    In making my apple id ready to using app store and itunes i tap on the none in the credit card but it say me contact itunes spport  to solve this problem what have I do ?

    credit card it tells me my credit card is not valid for the store.
    Hi Don ...
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article
    The iTunes and Mac App Store are one in the same.
    And check out this support article here   >  iTunes Store: My credit card's security code or zip code does not match my bank's records

  • [SOLVED] Encrypt-Hook with LVM-on-Crypt fails to encrypt root part...

    Hi,
    I think that since the mkinitcpio (0.14.0-1) update (and the regeneration of the initramfs for my kernel) the encrypt hook doesn't work anymore. (At least for me)
    I have my root filesystem in a LVM, which physical volume is encrypted with luks.
    Here are my hooks from /etc/mkinitcpio.conf:
    HOOKS="base udev autodetect modconf block keyboard keymap encrypt lvm2 resume filesystems fsck shutdown"
    Output when I let it generate the initramfs:
    % mkinitcpio -p linux
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> Starting build: 3.9.7-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [autodetect]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    -> Running build hook: [keyboard]
    -> Running build hook: [keymap]
    -> Running build hook: [encrypt]
    -> Running build hook: [lvm2]
    -> Running build hook: [resume]
    -> Running build hook: [filesystems]
    -> Running build hook: [fsck]
    -> Running build hook: [shutdown]
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    ==> Image generation successful
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> Starting build: 3.9.7-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    ==> WARNING: Possibly missing firmware for module: bfa
    ==> WARNING: Possibly missing firmware for module: aic94xx
    -> Running build hook: [keyboard]
    -> Running build hook: [keymap]
    -> Running build hook: [encrypt]
    -> Running build hook: [lvm2]
    -> Running build hook: [resume]
    -> Running build hook: [filesystems]
    -> Running build hook: [fsck]
    -> Running build hook: [shutdown]
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
    ==> Image generation successful
    But I am able to mount in manually within the emergency shell by executing:
    $ cryptsetup luksOpen /dev/sda3 system
    Enter passphrase for /dev/sda3:
    $ lvm vgscan
    Reading all physical volumes. This may take a while...
    Found volume group "vg_system" using metadata type lvm2
    $ lvm vgchange -ay
    3 logical volume(s) in volume group "vg_system" now active
    $ exit
    Last edited by PyroDevil (2013-06-29 11:14:35)

    Thanks for the link.
    mdias wrote:
    ok, I found a temporary workaround that seems to work for me,
    I edited the file /usr/lib/initcpio/hooks/lvm2 to add this:
    run_hook() {
    lvm pvscan --cache --activate ay
    Now, this will activate all lvm volumes regardless of lvm.conf, but it suits my needs for now.
    This solution didn't work for me.
    On boot time I was not asked to enter a password for the encrypted partition.
    That's the reason I thought it was the encryption hook.

  • [solved] lvm fails at boot time / lvm pv scan hangs (often)

    Hi,
    I switched from ubuntu to Archlinux two weeks ago and  about half of my boot attempts fail because of some problems with my lvm-volumes
    My setup
    I have  my root partition on /dev/sda2 and an lvm partition /dev/sda3 containing logical volumes for /var /home and /boot
    If booting succeeds   these volumes appear as
    /dev/mapper/VolGroup01-varVol
    /dev/mapper/VolGroup01-homeVol
    /dev/mapper/VolGroup01-bootVol
    If my booting fails,  My screen shows
    startin version 218
    /dev/sda2: clean, blabla files, blabla blocks
    A start job is running for LVM PV scan on devices 8:3
    This last message (together with 3 start jobs for dev-disk-by-x2duuid-SOMENUMBERS) appears for 90 seconds and then emergency mode is started
    After logging in for maintenance   /dev/mapper only contains "control" but not my logical volumes
    module dm_mod is loaded
    dmesg does not seem to show anything related to lvm or sda3
    and /var/log contains only empty files (btmp, lastlog, wtmp)
    Where can I find informations about this problem?
    Any suggestions how to solve this problem?
    Last edited by DaAlx (2015-04-06 12:45:17)

    DaAlx wrote:
    Hi,
    I switched from ubuntu to Archlinux two weeks ago and  about half of my boot attempts fail because of some problems with my lvm-volumes
    My setup
    I have  my root partition on /dev/sda2 and an lvm partition /dev/sda3 containing logical volumes for /var /home and /boot
    If booting succeeds   these volumes appear as
    /dev/mapper/VolGroup01-varVol
    /dev/mapper/VolGroup01-homeVol
    /dev/mapper/VolGroup01-bootVol
    If my booting fails,  My screen shows
    startin version 218
    /dev/sda2: clean, blabla files, blabla blocks
    A start job is running for LVM PV scan on devices 8:3
    This last message (together with 3 start jobs for dev-disk-by-x2duuid-SOMENUMBERS) appears for 90 seconds and then emergency mode is started
    After logging in for maintenance   /dev/mapper only contains "control" but not my logical volumes
    module dm_mod is loaded
    dmesg does not seem to show anything related to lvm or sda3
    and /var/log contains only empty files (btmp, lastlog, wtmp)
    Where can I find informations about this problem?
    Any suggestions how to solve this problem?
    Hello,
    Disclaimer: Without any logs to see what is happening, this is just an educated guess because it sounds like what happened to me. Try getting the logs during the emergency shell process.
    I've run into an  issue myself with LVM. From what I understand, the pvscan processes get stuck waiting for a udev sync that no longer exists because udev is restarted while pvscan processes are running in the background. There hasn't been an official solution but I modified udev hook with this (can be found in /usr/lib/initcpio/hooks/udev):
    while [ "$(pgrep -f pvscan)" ]; do
    sleep 0.1
    done
    which forces udev to wait until the LVM processes finish before telling it to die. It is hacky and poor for a long term solution because we have lvm code in the udev hook is bad design but I haven't had that issue any more.
    You can also try
    In /etc/mkinitcpio.conf, you must change your HOOKS list:
    HOOKS="base udev autodetect modconf block lvm2 filesystems keyboard fsck" is a hook list for script
    HOOKS="base systemd autodetect modconf block sd-lvm2 filesystems keyboard fsck" is a hook list for systemd
    but that stopped working for a few people on 3.19.
    Here is the bug report to keep you up to date:
    https://bugs.archlinux.org/task/41833#comment133971
    Last edited by SirMyztiq (2015-04-06 00:36:46)

  • [SOLVED] Encryption hook doesn't prompt for key

    I'm trying to dual boot an encrypted arch (64bit luks encryption without lvm) and windows 8 on uefi. Everything installs pretty smoothly until it tries to decrypt the root partition, it doesn't prompt for the passphrase. Using a g55vw laptop, there's a wiki page for it apparently which I've been trying to follow. When I search for related problems most people solve it by moving the encrypt hook around but I've found that doesn't help
    (yes I run mkinitpio -p linux).
    My output when grub loads arch:
    :: running early hook [udev]
    :: running hook [udev]
    :: Triggering uevents...
    :: running hook [keymap]
    :: loading keymap . . . done
    :: running hook [encrypt]
    Waiting 10 seconds for device /dev/mapper/root ...
    Waiting 10 seconds for device /dev/mapper/root ...
    ERROR: device '/dev/mapper/root' not found. Skipping fsck
    ERROR: Unable to find root device '/dev/mapper/root'
    You are being dropped to a recovery shell
    Type 'exit' to try and continue booting
    sh: can't access tty: job control turned off
    /etc/default/grub
    GRUB_CMDLINE_LINUX_DEFAULT="quiet"
    GRUB_CMDLINE_LINUX="cryptsetup=/dev/sda2:root"
    GRUB_DISABLE_LINUX_UUID=true
    /etc/mkinitcpio.conf
    MODULES=""
    BINARIES=""
    FILES=""
    HOOKS="base udev autodetec modconf block keymap keyboard encrypt filesystems fsck"
    Last edited by DakotaTheGiraffe (2014-09-29 04:31:21)

    wow I tried that last install and it didn't work but it solved it this time. Thanks for your quick response

  • [SOLVED] [LVM over LUKS] TRIM forwarding doesn't work

    Recently I encrypted my SSD using LUKS and created three LVM volumes on top of it. Then I added "allow-discards" to the list of kernel parameters, here is the respective entry from grub.cfg:
    linux /vmlinuz-linux root=/dev/mapper/vgarch-root ro cryptdevice=/dev/sda2:vgarch:allow-discards cryptkey=/dev/disk/by-uuid/02F2-CDB8:vfat:/lukskey quiet logo.nologo loglevel=3 console=tty1 splash=silent,theme:arch-elegant elevator=noop transparent_hugepage=never radeon.modeset=1
    And an excerpt from fstab:
    /dev/mapper/vgarch-root / ext4 defaults,auto,noatime,discard 0 1
    UUID=e8ba294e-9621-422d-8f40-d9ffbc715484 /boot ext2 defaults 0 2
    /dev/mapper/vgarch-var /var ext4 defaults,auto,noatime,discard 0 2
    /dev/mapper/vgarch-home /home ext4 defaults,auto,noatime,discard 0 2
    When the system is booting up, "encrypt" hook prints the appropriate message ("Enabling TRIM/discard support."), so everything seems to work fine. But when I check for TRIM support using the following method, the last command doesn't print zeroes as expected.
    [root@archhost /]# dd if=/dev/urandom of=tempfile count=100 bs=512k oflag=direct
    100+0 records in
    100+0 records out
    52428800 bytes (52 MB) copied, 5.66872 s, 9.2 MB/s
    [root@archhost /]# hdparm --fibmap tempfile
    tempfile:
    filesystem blocksize 4096, begins at LBA 0; assuming 512 byte sectors.
    byte_offset begin_LBA end_LBA sectors
    0 13969408 13970431 1024
    524288 13986816 13987839 1024
    1048576 14026752 14127103 100352
    [root@archhost /]# hdparm --read-sector 13969408 /dev/sda
    /dev/sda:
    reading sector 13969408: succeeded
    bc43 41aa 82eb 4200 438a 6151 cbbd 0842
    4014 cfa4 17e7 b2ca 7c92 ec35 9fe3 0089
    206c beba c33d 5876 89e7 0d9c 1fc7 b122
    801e bdb9 82af 8885 add9 7b17 7aa4 4c69
    d4c1 da55 2029 bd05 d0f0 cd22 a944 b27b
    ffa7 9c29 ad4a 9292 7f3a 9e4d 9040 f135
    f507 3d8b c142 6ac2 da83 167a c40e 1be4
    2c58 f7b6 fb50 2ce7 c7d2 6f70 ce45 be87
    bfe4 2755 4795 10ee e1e1 1362 d078 a8ac
    0754 8663 6881 12e4 fe8c c1c1 795f 7617
    0423 1abf eade 31d1 4bfc e7a0 5fbc 36cd
    af25 febe 374a bef1 eb3b 2b73 df5c a5fe
    9dc3 d5e9 e31c 97ec 35ca 4002 4beb 0917
    2d72 d0e3 f0ab 8d75 0fcf ce97 500f e869
    875b 7866 1528 7148 99d0 6369 3369 a639
    cb39 f552 a277 62c3 1ba8 bdb3 4127 a6ca
    5cdd d934 5f5b a434 a20e 980c 7bfd 6f40
    7029 d9aa 294f 321e 4eab 8130 adf3 140a
    5352 328b 6713 25ac c37a d33a 2be9 3699
    459c fc7a 1b10 7e99 8b74 cc60 e5b9 3a85
    edbb 7baf 2205 34a4 c10e 6d79 1e44 239f
    dad3 ee10 b76f 76fa 569c 3b73 81e0 0848
    db89 4efd c520 163e af72 b83b ff3b a924
    d2f1 120d 75df f7ae 3922 1b2a ee39 5efd
    3ade 6a0e f24e f14d 7444 d7b6 3c3a 5ab6
    2345 420d e9a4 1811 807e 9c29 5da3 f9a0
    f7cb ba53 b3f1 69c4 b76d fa9d 6a0a 0184
    a69c fe16 42d9 71a9 85b9 1b01 8870 40b1
    585a c191 a101 39b4 2203 b662 2a17 50fc
    93ac 3a2d 2b27 22f4 ff60 f7d1 fd59 feda
    1477 c56f 816a 0199 34b7 ba4c 4950 6af8
    b7bf c409 d48a e701 2894 1be1 3ac9 d4b1
    [root@archhost /]# rm tempfile
    [root@archhost /]# sync
    [root@archhost /]# hdparm --read-sector 13969408 /dev/sda
    /dev/sda:
    reading sector 13969408: succeeded
    bc43 41aa 82eb 4200 438a 6151 cbbd 0842
    4014 cfa4 17e7 b2ca 7c92 ec35 9fe3 0089
    206c beba c33d 5876 89e7 0d9c 1fc7 b122
    801e bdb9 82af 8885 add9 7b17 7aa4 4c69
    d4c1 da55 2029 bd05 d0f0 cd22 a944 b27b
    ffa7 9c29 ad4a 9292 7f3a 9e4d 9040 f135
    f507 3d8b c142 6ac2 da83 167a c40e 1be4
    2c58 f7b6 fb50 2ce7 c7d2 6f70 ce45 be87
    bfe4 2755 4795 10ee e1e1 1362 d078 a8ac
    0754 8663 6881 12e4 fe8c c1c1 795f 7617
    0423 1abf eade 31d1 4bfc e7a0 5fbc 36cd
    af25 febe 374a bef1 eb3b 2b73 df5c a5fe
    9dc3 d5e9 e31c 97ec 35ca 4002 4beb 0917
    2d72 d0e3 f0ab 8d75 0fcf ce97 500f e869
    875b 7866 1528 7148 99d0 6369 3369 a639
    cb39 f552 a277 62c3 1ba8 bdb3 4127 a6ca
    5cdd d934 5f5b a434 a20e 980c 7bfd 6f40
    7029 d9aa 294f 321e 4eab 8130 adf3 140a
    5352 328b 6713 25ac c37a d33a 2be9 3699
    459c fc7a 1b10 7e99 8b74 cc60 e5b9 3a85
    edbb 7baf 2205 34a4 c10e 6d79 1e44 239f
    dad3 ee10 b76f 76fa 569c 3b73 81e0 0848
    db89 4efd c520 163e af72 b83b ff3b a924
    d2f1 120d 75df f7ae 3922 1b2a ee39 5efd
    3ade 6a0e f24e f14d 7444 d7b6 3c3a 5ab6
    2345 420d e9a4 1811 807e 9c29 5da3 f9a0
    f7cb ba53 b3f1 69c4 b76d fa9d 6a0a 0184
    a69c fe16 42d9 71a9 85b9 1b01 8870 40b1
    585a c191 a101 39b4 2203 b662 2a17 50fc
    93ac 3a2d 2b27 22f4 ff60 f7d1 fd59 feda
    1477 c56f 816a 0199 34b7 ba4c 4950 6af8
    b7bf c409 d48a e701 2894 1be1 3ac9 d4b1
    Is it possible at all to enable TRIM support in this case? And if yes, what did I miss?
    Last edited by Atragor (2012-07-01 19:19:14)

    Good, my guess then would be that your trim is working already and you should be able to invoke it also with fstrim manually to get a positive confirmation in bash.
    The reason you don't see the zeros in your check should be that the hdparm reports back the wrong starting sector of the file due to offsets. See here for a thorough explanation by the developer and here another summary.

  • [SOLVED] LVM GRUB2 no volume groups found?

    Hi.
    I have installed Arch with LVM on a macbook pro. Since I installed /boot inside the LVM, I had to install GRUB2-efi also (the mac uses EFI).
    When I boot, I am able to get to the GRUB2 menu but when I try to start Arch, I get this error:
    No volume groups found
    ERROR: Unable to determine major/minor number of root device '(Arch_Linux-boot)'
    And right before the GRUB2 menu appears, an error message flashes so quickly I can only make out the word "failed".
    Arch is in an extended partition (/dev/sda3) with root, boot, var, home and swap on their own separate partitions.
    In /etc/default/grub (NOT on the CD), I added "lvm2" to GRUB_PRELOAD_MODULES and added "root=(Arch_Linux-boot)" to GRUB_CMDLINE_LINUX. Arch_Linux is the volume group and boot is the boot partition. During installation, I set USELVM="yes" (in the first configuration file in the configure system phase) and added an lvm2 hook in the mkinitcpio configuration file (during installation also).
    Also, when I try to boot OS X (using GRUB2), it seems to boot (spits out some console stuff) then gets stuck. By holding Option at startup and selecting the OS X partition, I can boot into OS X. The same doesn't work with Arch.
    My guess is that it's not finding the volume group (Arch_Linux) because I got the configuration file wrong or something.
    So is
    #Settings I added in /etc/default/grub
    GRUB_CMDLINE_LINUX="root=(Arch_Linux-boot)"
    GRUB_PRELOAD_MODULES="lvm2"
    valid? Or is something wrong here?
    Last edited by Splooshie123 (2012-04-03 02:35:54)

    Lennie wrote:In your other thread you used the words 'extended partition' and 'LVM' as if they mean the same thing, but they are actually two different thing. So which of them did you use? If you just installed Arch on logical partitions, then you don't need to do any special configuration because of that. Linux doesn't care if it's installed on primary or logical partition(s).
    Sorry if I wasn't clear. I installed Arch in several logical partitions within an extended partition.
    I believe I'm close to figuring out what's wrong. Apparently I am able to access the logical partitions by using the fallback image.
    Because the fallback image works but the other one doesn't, it might be the hooks.
    I read that the fallback image doesn't load the autodetect hook. I also know that putting a hook before autodetect has the effect of sort of "exempting" the hook from autodetect.
    I recall getting a 'no controller found' error when booting the image with autodetect so I'm guessing it might be the sata hook.
    I'll try regenerating the images with sata before the autodetect hook.
    PS: If my post looks a bit "unformatted" with no spaces between paragraphs, its because I'm typing this from lynx, a text-based web browser, and I'm not that familiar with it yet.

  • [SOLVED] LVM Volume Groups Not Found

    Hi,
    I'm installing Arch on my desktop following the installation in the software raid and LVM section (https://wiki.archlinux.org/index.php/So … ID_and_LVM). I'm using RAID1. I've followed the important instructions on the LVM page (https://wiki.archlinux.org/index.php/LVM#Important). I have a UEFI motherboard so I created a separate boot partition and installed grub2 as my bootloader based on the instructions on the UEFI page (https://wiki.archlinux.org/index.php/Un … _Interface).
    After a few hiccups, I think I have the system installed properly on my hard drive. Since the root partition is on the LVM, it needs to be loaded up pretty early in the boot process and this is where I'm getting a really strange issue. I have my motherboard configured to boot straight into the built-in UEFI shell. From here, I select the filesystem for my hard drive and launch grubx64.efi. So far so good. Now here's the weird part - if the LiveCD I used to install Arch is in the optical drive then everything boots up just fine, I get a prompt and I can log in and generally do as I see fit. But if the LiveCD isn't in the drive, then after I select the Arch Linux option in GRUB I get a message that says No Volume Groups found and dumps me into the rootfs shell.
    As far as I can tell the LiveCD isn't actually being used during boot, but I don't understand why taking it out stops my logical volumes from loading =_=. Does anyone have some idea what's wrong / what I can do to fix it? Is there some config file that has been messed up? This is my second time trying this installation, if it doesn't work I'm just going to drop LVM and stick to just the software RAID. I'm not particularly attached to LVM, I decided to use it mainly because I could (or at least I thought I could).
    Any help would be much appreciated. If there is any extra information I need to post, I can do that as well.
    Update: It doesn't seem like the Arch LiveCD itself has anything to do with this. I inserted a blank CD and was able to boot up just fine but as soon as I took it out, I got the No volume groups found error again. This makes me think that it is a timing issue. Maybe one of the modules is not fully loaded before it is needed? Where can I go to find out what modules those are? Is there any way to force the boot process to wait until all the necessary modules are loaded?
    SOLUTION: https://bbs.archlinux.org/viewtopic.php?id=145714
    Last edited by jynnantonix (2012-09-07 19:30:01)

    What you did has zero effect on the runtime order of the hooks (lsinitcpio would have shown you this).
    https://bbs.archlinux.org/viewtopic.php?id=145714

  • [solved] LVM extend over multiple hard drives

    I have a 500GB hard drive with several  LVM logical volumes on it.
    A couple of these partitions are getting full and I want to know if I bought another hard drive can I extend a partition across from one hard drive to another?
    I hope that makes sense.
    edit:
    Even if that's not possible, I suppose I can just move the whole partition over to the new hard drive and extend one of the other volumes on the old one to fill up the rest of the space.
    edit again:
    Sorry I just answered my own question.
    # pvcreate /dev/sdb1
    # vgextend VolGroup00 /dev/sdb1
    Last edited by sand_man (2009-08-12 05:43:21)

    Yay for self-solving!
    cat /dev/taco | sand_man
    (sorry, couldn't leave it as a 0-reply thread. That and I'm bored at work!)
    Last edited by fukawi2 (2009-08-12 07:16:01)

  • [SOLVED] Catalyst-hook won't build kernel module

    I HAVE SOLVED THE PROBLEM. I WAS MISSING /usr/lib/modules/extramodules-3.11-ARCH/version !
    Hello, I got a problem with my Arch Linux install. Today I got a new kernel update (Linux-3.11.1-2-ARCH) and catalyst-hook attemptet to rebuild the fglrx kernel module, but failed.
    This is my /var/log/catalyst-install.log:
    2013-09-25 13:09:13
    Building fglrx module for 3.11.1-2-ARCH kernel ...
    OsVersion says: SMP=1
    file /proc/kallsyms says: SMP=1
    file /usr/lib/modules/3.11.1-2-ARCH/build/include/generated/autoconf.h says: SMP=1
    file /usr/lib/modules/3.11.1-2-ARCH/build/include/generated/autoconf.h says: MODVERSIONS=1
    file /usr/lib/modules/3.11.1-2-ARCH/build/arch/x86/include/asm/compat.h says: COMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_sp$
    make: Entering directory `/usr/src/linux-3.11.1-2-ARCH'
    CC [M] /tmp/catalyst.H8Xs1y/firegl_public.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_acpi.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_agp.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_debug.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_ioctl.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_io.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_pci.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_str.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_iommu.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_wait.o
    LD [M] /tmp/catalyst.H8Xs1y/fglrx.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /tmp/catalyst.H8Xs1y/fglrx.mod.o
    LD [M] /tmp/catalyst.H8Xs1y/fglrx.ko
    make: Leaving directory `/usr/src/linux-3.11.1-2-ARCH'
    install: missing destination file operand after ‘fglrx.ko.gz’
    Try 'install --help' for more information.
    Please let me know if you need more information, and where/how I can get it.
    Last edited by xeekei (2013-09-25 21:30:35)

    Hey man have had the same issue.
    How did you go about solving it?

  • Solving equations from a String

    How could I could a value from a String(lets say the value is"1+1"), then convert this value to a double, and solve it so that the result is 2?
    I tried this but it did not work:
    double equation = Double.parseDouble((resultField.getText()));
    double result = Math.abs(equation);
    resultField.setText(String.valueOf(result));

    By the way, if this is a homework assignment (say, to take a string holding a mathematical expression, and then parse the string and evaluate the resulting expression), then just delegating to a scripting language will probably be a fail.
    If it's not a homework assignment...then you can probably google for a mathematical library for Java and get another reasonable solution. Which you choose depends a lot on why you're doing this.

Maybe you are looking for