You are not logged in.

#1 2014-10-16 22:32:21

robin_m
Member
Registered: 2013-12-11
Posts: 17

[solved] get only minimal system after fresh install

Hi everyone,

I've just install arch on my new laptop, and after reboot, I only get a minimal system (for exemple, pacman is not available, but vi, grep or sed are).

It is a 64 bits instalation.

My laptop have only a ssd. The partition scheme is (it use mbr, not gpt) :
/dev/sda1 : /boot : ext2
/dev/sda2 : lvm partition
Inside the lvm partition, I have two logical volume: root and home.

I use grub, and install it using:
grub-install /dev/sda --recheck --target=i386-pc
I'm not shure of what was needed to do with grub-mkconfig, I've test differents things, but they didn't work (maybe because I get an error about /run/lvm/lvmetad.sockt : connect faitd: no such file or directory, even if dm-mod is loaded).

I do not use secure boot or efi, (I had the choise in my bios to not use them)

When I boot from the usb key, and arch-chroot inside the ssd, everyting seems ok (I have vim, zsh, …). However, when I reboot (on the real system on the ssd), I only have a minimal system like I said.

I have found nothing on the web that can help me. You're my last hope smile

edit: solution

The problem was that I had not had the lvm2 hooks before using mkinitcpio. When grub was starting, it gave me a fallback environnement with a minimal shell, because it cannot load the / partition (since / was in lvm).

Last edited by robin_m (2014-10-23 17:47:12)

Offline

#2 2014-10-16 22:54:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,827
Website

Re: [solved] get only minimal system after fresh install

It sounds like you are in the initramfs/emergency shell.  But before you are dropped to that, there would have been some error messages.  What were they?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-10-17 08:42:04

robin_m
Member
Registered: 2013-12-11
Posts: 17

Re: [solved] get only minimal system after fresh install

I get som error with my usb, but it's not related, i have the same when i'm booting with a usb key, that's why I've not seen :

ERROR: device 'UID=6D9…' not found. Skipping fsck.
ERROR: Unable to find root device 'UUID=6d9…'.
You are being dropped to a recovery shell
sh: can't access tty; job control turned off.

And the partition with UUID 6d9… is the UUID of my root filesystem inside lvm. So I think their is a problem to access lvm partition.

Offline

#4 2014-10-17 10:45:24

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [solved] get only minimal system after fresh install

Please post the errrors you got when running grub-mkconfig, and the file grub.cfg .

Offline

#5 2014-10-17 10:47:54

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [solved] get only minimal system after fresh install

When you're in the emergency-shell what does this output?

ls -l /dev/disk/by-uuid/

Offline

#6 2014-10-17 11:52:48

robin_m
Member
Registered: 2013-12-11
Posts: 17

Re: [solved] get only minimal system after fresh install

@spider.007: I get

lrwxrwxrwx 1 0 0 10 oct 17 11:35 2014-10-01-05-00-04-00 -> ../../sdb1
lrwxrwxrwx 1 0 0 10 oct 17 11:34 34ee0c2-c659-4541-989e-0942ce807839 -> ../../sda1
lrwxrwxrwx 1 0 0 10 oct 17 11:35 AO5B-32C8 -> ../../sdb2

@teateawhy: In short (I have not the time to found how to post a  file from a tty to archlinux forum, I will search this afternoon for posting full output of grub-mkconfig and grub.cfg).

/run/lvm/lvmetad.socket: connection failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.

Offline

#7 2014-10-17 15:22:24

robin_m
Member
Registered: 2013-12-11
Posts: 17

Re: [solved] get only minimal system after fresh install

So, what I get with grub-mkconfig is :

[root@archiso /]# grub-mkconfig
Generating grub configuration file ...
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
insmod part_msdos
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
insmod lvm
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
insmod ext2
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
set root='lvmid/6TqT3O-0MiX-VCtE-fgJx-EstG-CyoP-X6oMaz/M90cqA-BJ47-vUD0-S7BY-T9Zj-H28Y-fMcjUU'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/6TqT3O-0MiX-VCtE-fgJx-EstG-CyoP-X6oMaz/M90cqA-BJ47-vUD0-S7BY-T9Zj-H28Y-fMcjUU'  6d9b1011-4b42-4e64-8593-685a2db18436
else
  search --no-floppy --fs-uuid --set=root 6d9b1011-4b42-4e64-8593-685a2db18436
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6d9b1011-4b42-4e64-8593-685a2db18436' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  344ee0c2-c659-4541-989e-0942ce807839
        else
          search --no-floppy --fs-uuid --set=root 344ee0c2-c659-4541-989e-0942ce807839
        fi
        echo    'Loading Linux linux ...'
        linux   /vmlinuz-linux root=UUID=6d9b1011-4b42-4e64-8593-685a2db18436 rw  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-6d9b1011-4b42-4e64-8593-685a2db18436' {
        menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-6d9b1011-4b42-4e64-8593-685a2db18436' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  344ee0c2-c659-4541-989e-0942ce807839
                else
                  search --no-floppy --fs-uuid --set=root 344ee0c2-c659-4541-989e-0942ce807839
                fi
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=UUID=6d9b1011-4b42-4e64-8593-685a2db18436 rw  quiet
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-linux.img
        }
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
        menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-6d9b1011-4b42-4e64-8593-685a2db18436' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  344ee0c2-c659-4541-989e-0942ce807839
                else
                  search --no-floppy --fs-uuid --set=root 344ee0c2-c659-4541-989e-0942ce807839
                fi
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=UUID=6d9b1011-4b42-4e64-8593-685a2db18436 rw  quiet
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-linux-fallback.img
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###
done
[root@archiso /]# vi
[root@archiso /]# [root@archiso /]# grub-mkconfig
-sh: [root@archiso: command not found
[root@archiso /]# Generating grub configuration file ...
-sh: Generating: command not found
[root@archiso /]# #
[root@archiso /]# # DO NOT EDIT THIS FILE
[root@archiso /]# #
[root@archiso /]# # It is automatically generated by grub-mkconfig using templates
[root@archiso /]# # from /etc/grub.d and settings from /etc/default/grub
[root@archiso /]# #
[root@archiso /]#
[root@archiso /]# ### BEGIN /etc/grub.d/00_header ###
[root@archiso /]# insmod part_gpt
insmod: ERROR: could not load module part_gpt: No such file or directory
[root@archiso /]# insmod part_msdos
insmod: ERROR: could not load module part_msdos: No such file or directory
[root@archiso /]# if [ -s $prefix/grubenv ]; then
>   load_env
> fi
[root@archiso /]# if [ "${next_entry}" ] ; then
>    set default="${next_entry}"
>    set next_entry=
>    save_env next_entry
>    set boot_once=true
> else
>    set default="0"
> fi
[root@archiso /]#
[root@archiso /]# if [ x"${feature_menuentry_id}" = xy ]; then
>   menuentry_id_option="--id"
> else
>   menuentry_id_option=""
> fi
[root@archiso /]#
[root@archiso /]# export menuentry_id_option
[root@archiso /]#
[root@archiso /]# if [ "${prev_saved_entry}" ]; then
>   set saved_entry="${prev_saved_entry}"
>   save_env saved_entry
>   set prev_saved_entry=
>   save_env prev_saved_entry
>   set boot_once=true
> fi
[root@archiso /]#
[root@archiso /]# function savedefault {
>   if [ -z "${boot_once}" ]; then
>     saved_entry="${chosen}"
>     save_env saved_entry
>   fi
> }
[root@archiso /]#
[root@archiso /]# function load_video {
>   if [ x$feature_all_video_module = xy ]; then
>     insmod all_video
>   else
>     insmod efi_gop
>     insmod efi_uga
>     insmod ieee1275_fb
>     insmod vbe
>     insmod vga
>     insmod video_bochs
>     insmod video_cirrus
>   fi
> }
[root@archiso /]#
[root@archiso /]#   /run/lvm/lvmetad.socket: connect failed: No such file or directory
-sh: /run/lvm/lvmetad.socket:: No such file or directory
[root@archiso /]#   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
-sh: WARNING:: command not found
[root@archiso /]#   /run/lvm/lvmetad.socket: connect failed: No such file or directory
-sh: /run/lvm/lvmetad.socket:: No such file or directory
[root@archiso /]#   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
-sh: WARNING:: command not found
[root@archiso /]# if [ x$feature_default_font_path = xy ] ; then
>    font=unicode
> else
>   /run/lvm/lvmetad.socket: connect failed: No such file or directory
>   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
>   /run/lvm/lvmetad.socket: connect failed: No such file or directory
>   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
> insmod part_msdos
>   /run/lvm/lvmetad.socket: connect failed: No such file or directory
>   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
>   /run/lvm/lvmetad.socket: connect failed: No such file or directory
>   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
> insmod lvm
>   /run/lvm/lvmetad.socket: connect failed: No such file or directory
>   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
>   /run/lvm/lvmetad.socket: connect failed: No such file or directory
>   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
> insmod ext2
>   /run/lvm/lvmetad.socket: connect failed: No such file or directory
>   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
>   /run/lvm/lvmetad.socket: connect failed: No such file or directory
>   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
> set root='lvmid/6TqT3O-0MiX-VCtE-fgJx-EstG-CyoP-X6oMaz/M90cqA-BJ47-vUD0-S7BY-T9Zj-H28Y-fMcjUU'
> if [ x$feature_platform_search_hint = xy ]; then
>   search --no-floppy --fs-uuid --set=root --hint='lvmid/6TqT3O-0MiX-VCtE-fgJx-EstG-CyoP-X6oMaz/M90cqA-BJ47-vUD0-S7BY-T9Zj-H28Y-fMcjUU'  6d9b1011-4b42-4e64-8593-685a2db18436
> else
>   search --no-floppy --fs-uuid --set=root 6d9b1011-4b42-4e64-8593-685a2db18436
> fi
>     font="/usr/share/grub/unicode.pf2"
> fi
-sh: /run/lvm/lvmetad.socket:: No such file or directory
-sh: WARNING:: command not found
-sh: /run/lvm/lvmetad.socket:: No such file or directory
-sh: WARNING:: command not found
insmod: ERROR: could not load module part_msdos: No such file or directory
-sh: /run/lvm/lvmetad.socket:: No such file or directory
-sh: WARNING:: command not found
-sh: /run/lvm/lvmetad.socket:: No such file or directory
-sh: WARNING:: command not found
insmod: ERROR: could not load module lvm: No such file or directory
-sh: /run/lvm/lvmetad.socket:: No such file or directory
-sh: WARNING:: command not found
-sh: /run/lvm/lvmetad.socket:: No such file or directory
-sh: WARNING:: command not found
insmod: ERROR: could not load module ext2: No such file or directory
-sh: /run/lvm/lvmetad.socket:: No such file or directory
-sh: WARNING:: command not found
-sh: /run/lvm/lvmetad.socket:: No such file or directory
-sh: WARNING:: command not found
-sh: search: command not found
[root@archiso /]#
 [root@archiso /]# if loadfont $font ; then
>   set gfxmode=auto
>   load_video
>   insmod gfxterm
>   set locale_dir=$prefix/locale
>   set lang=en_US
>   insmod gettext
> fi
-sh: loadfont: command not found
[root@archiso /]# terminal_input console
-sh: terminal_input: command not found
[root@archiso /]# terminal_output gfxterm
-sh: terminal_output: command not found
[root@archiso /]# if [ x$feature_timeout_style = xy ] ; then
>   set timeout_style=menu
>   set timeout=5
> # Fallback normal timeout code in case the timeout_style feature is
> # unavailable.
> else
>   set timeout=5
> fi
[root@archiso /]# ### END /etc/grub.d/00_header ###
[root@archiso /]#
[root@archiso /]# ### BEGIN /etc/grub.d/10_linux ###
[root@archiso /]#   /run/lvm/lvmetad.socket: connect failed: No such file or directory
-sh: /run/lvm/lvmetad.socket:: No such file or directory
[root@archiso /]#   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
-sh: WARNING:: command not found
[root@archiso /]#   /run/lvm/lvmetad.socket: connect failed: No such file or directory
-sh: /run/lvm/lvmetad.socket:: No such file or directory
[root@archiso /]#   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
-sh: WARNING:: command not found
[root@archiso /]# Found linux image: /boot/vmlinuz-linux
-sh: Found: command not found
[root@archiso /]# Found initrd image: /boot/initramfs-linux.img
-sh: Found: command not found
[root@archiso /]# menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6d9b1011-4b42-4e64-8593-685a2db18436' {
-sh: menuentry: command not found
[root@archiso /]#         load_video
insmod: ERROR: could not load module efi_gop: No such file or directory
insmod: ERROR: could not load module efi_uga: No such file or directory
insmod: ERROR: could not load module ieee1275_fb: No such file or directory
insmod: ERROR: could not load module vbe: No such file or directory
insmod: ERROR: could not load module vga: No such file or directory
insmod: ERROR: could not load module video_bochs: No such file or directory
insmod: ERROR: could not load module video_cirrus: No such file or directory
[root@archiso /]#         set gfxpayload=keep
[root@archiso /]#         insmod gzio
insmod: ERROR: could not load module gzio: No such file or directory
[root@archiso /]#         insmod part_msdos
insmod: ERROR: could not load module part_msdos: No such file or directory
[root@archiso /]#         insmod ext2
insmod: ERROR: could not load module ext2: No such file or directory
[root@archiso /]#         set root='hd0,msdos1'
[root@archiso /]#         if [ x$feature_platform_search_hint = xy ]; then
>           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  344ee0c2-c659-4541-989e-0942ce807839
>         else
>           search --no-floppy --fs-uuid --set=root 344ee0c2-c659-4541-989e-0942ce807839
>         fi
-sh: search: command not found
[root@archiso /]#         echo    'Loading Linux linux ...'
Loading Linux linux ...
[root@archiso /]#         linux   /vmlinuz-linux root=UUID=6d9b1011-4b42-4e64-8593-685a2db18436 rw  quiet
-sh: linux: command not found
[root@archiso /]#         echo    'Loading initial ramdisk ...'
Loading initial ramdisk ...
[root@archiso /]#         initrd  /initramfs-linux.img
-sh: initrd: command not found
[root@archiso /]# }
-sh: syntax error near unexpected token `}'
[root@archiso /]# submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-6d9b1011-4b42-4e64-8593-685a2db18436' {
-sh: submenu: command not found
[root@archiso /]#         menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-6d9b1011-4b42-4e64-8593-685a2db18436' {
-sh: menuentry: command not found
[root@archiso /]#                 load_video
insmod: ERROR: could not load module efi_gop: No such file or directory
insmod: ERROR: could not load module efi_uga: No such file or directory
insmod: ERROR: could not load module ieee1275_fb: No such file or directory
insmod: ERROR: could not load module vbe: No such file or directory
insmod: ERROR: could not load module vga: No such file or directory
insmod: ERROR: could not load module video_bochs: No such file or directory
insmod: ERROR: could not load module video_cirrus: No such file or directory
[root@archiso /]#                 set gfxpayload=keep
[root@archiso /]#                 insmod gzio
insmod: ERROR: could not load module gzio: No such file or directory
[root@archiso /]#                 insmod part_msdos
insmod: ERROR: could not load module part_msdos: No such file or directory
[root@archiso /]#                 insmod ext2
insmod: ERROR: could not load module ext2: No such file or directory
[root@archiso /]#                 set root='hd0,msdos1'
[root@archiso /]#                 if [ x$feature_platform_search_hint = xy ]; then
>                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  344ee0c2-c659-4541-989e-0942ce807839
>                 else
>                   search --no-floppy --fs-uuid --set=root 344ee0c2-c659-4541-989e-0942ce807839
>                 fi
-sh: search: command not found
[root@archiso /]#                 echo    'Loading Linux linux ...'
Loading Linux linux ...
[root@archiso /]#                 linux   /vmlinuz-linux root=UUID=6d9b1011-4b42-4e64-8593-685a2db18436 rw  quiet
-sh: linux: command not found
[root@archiso /]#                 echo    'Loading initial ramdisk ...'
Loading initial ramdisk ...
[root@archiso /]#                 initrd  /initramfs-linux.img
-sh: initrd: command not found
[root@archiso /]#         }
-sh: syntax error near unexpected token `}'
[root@archiso /]# Found fallback initramfs image: /boot/initramfs-linux-fallback.img
-sh: Found: command not found
[root@archiso /]#         menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-6d9b1011-4b42-4e64-8593-685a2db18436' {
-sh: menuentry: command not found
[root@archiso /]#                 load_video
insmod: ERROR: could not load module efi_gop: No such file or directory
insmod: ERROR: could not load module efi_uga: No such file or directory
insmod: ERROR: could not load module ieee1275_fb: No such file or directory
insmod: ERROR: could not load module vbe: No such file or directory
insmod: ERROR: could not load module vga: No such file or directory
insmod: ERROR: could not load module video_bochs: No such file or directory
insmod: ERROR: could not load module video_cirrus: No such file or directory
[root@archiso /]#                 set gfxpayload=keep
[root@archiso /]#                 insmod gzio
insmod: ERROR: could not load module gzio: No such file or directory
[root@archiso /]#                 insmod part_msdos
insmod: ERROR: could not load module part_msdos: No such file or directory
[root@archiso /]#                 insmod ext2
insmod: ERROR: could not load module ext2: No such file or directory
[root@archiso /]#                 set root='hd0,msdos1'
[root@archiso /]#                 if [ x$feature_platform_search_hint = xy ]; then
>                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  344ee0c2-c659-4541-989e-0942ce807839
>                 else
>                   search --no-floppy --fs-uuid --set=root 344ee0c2-c659-4541-989e-0942ce807839
>                 fi
-sh: search: command not found
[root@archiso /]#                 echo    'Loading Linux linux ...'
Loading Linux linux ...
[root@archiso /]#                 linux   /vmlinuz-linux root=UUID=6d9b1011-4b42-4e64-8593-685a2db18436 rw  quiet
-sh: linux: command not found
[root@archiso /]#                 echo    'Loading initial ramdisk ...'
Loading initial ramdisk ...
[root@archiso /]#                 initrd  /initramfs-linux-fallback.img
-sh: initrd: command not found
[root@archiso /]#         }
-sh: syntax error near unexpected token `}'
[root@archiso /]# }
-sh: syntax error near unexpected token `}'
[root@archiso /]#
[root@archiso /]# ### END /etc/grub.d/10_linux ###
[root@archiso /]#
[root@archiso /]# ### BEGIN /etc/grub.d/20_linux_xen ###
[root@archiso /]#   /run/lvm/lvmetad.socket: connect failed: No such file or directory
-sh: /run/lvm/lvmetad.socket:: No such file or directory
[root@archiso /]#   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
-sh: WARNING:: command not found
[root@archiso /]#   /run/lvm/lvmetad.socket: connect failed: No such file or directory
-sh: /run/lvm/lvmetad.socket:: No such file or directory
[root@archiso /]#   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
-sh: WARNING:: command not found
[root@archiso /]# ### END /etc/grub.d/20_linux_xen ###
[root@archiso /]#
[root@archiso /]# ### BEGIN /etc/grub.d/30_os-prober ###
[root@archiso /]#   /run/lvm/lvmetad.socket: connect failed: No such file or directory
-sh: /run/lvm/lvmetad.socket:: No such file or directory
[root@archiso /]#   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
-sh: WARNING:: command not found
[root@archiso /]# ### END /etc/grub.d/30_os-prober ###
[root@archiso /]#
[root@archiso /]# ### BEGIN /etc/grub.d/40_custom ###
[root@archiso /]# # This file provides an easy way to add custom menu entries.  Simply type the
[root@archiso /]# # menu entries you want to add after this comment.  Be careful not to change
[root@archiso /]# # the 'exec tail' line above.
[root@archiso /]# ### END /etc/grub.d/40_custom ###
[root@archiso /]#
[root@archiso /]# ### BEGIN /etc/grub.d/41_custom ###
[root@archiso /]# if [ -f  ${config_directory}/custom.cfg ]; then
>   source ${config_directory}/custom.cfg
> elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
>   source $prefix/custom.cfg;
> fi
[root@archiso /]# ### END /etc/grub.d/41_custom ###

and grub.cfg file is :

[root@archiso /]# cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod lvm
insmod ext2
set root='lvmid/6TqT3O-0MiX-VCtE-fgJx-EstG-CyoP-X6oMaz/M90cqA-BJ47-vUD0-S7BY-T9Zj-H28Y-fMcjUU'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/6TqT3O-0MiX-VCtE-fgJx-EstG-CyoP-X6oMaz/M90cqA-BJ47-vUD0-S7BY-T9Zj-H28Y-fMcjUU'  6d9b1011-4b42-4e64-8593-685a2db18436
else
  search --no-floppy --fs-uuid --set=root 6d9b1011-4b42-4e64-8593-685a2db18436
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6d9b1011-4b42-4e64-8593-685a2db18436' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  344ee0c2-c659-4541-989e-0942ce807839
        else
          search --no-floppy --fs-uuid --set=root 344ee0c2-c659-4541-989e-0942ce807839
        fi
        echo    'Loading Linux linux ...'
        linux   /vmlinuz-linux root=UUID=6d9b1011-4b42-4e64-8593-685a2db18436 rw  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-6d9b1011-4b42-4e64-8593-685a2db18436' {
        menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-6d9b1011-4b42-4e64-8593-685a2db18436' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  344ee0c2-c659-4541-989e-0942ce807839
                else
                  search --no-floppy --fs-uuid --set=root 344ee0c2-c659-4541-989e-0942ce807839
                fi
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=UUID=6d9b1011-4b42-4e64-8593-685a2db18436 rw  quiet
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-linux.img
        }
        menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-6d9b1011-4b42-4e64-8593-685a2db18436' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  344ee0c2-c659-4541-989e-0942ce807839
                else
                  search --no-floppy --fs-uuid --set=root 344ee0c2-c659-4541-989e-0942ce807839
                fi
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=UUID=6d9b1011-4b42-4e64-8593-685a2db18436 rw  quiet
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-linux-fallback.img
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###

Offline

#8 2014-10-22 06:01:06

robin_m
Member
Registered: 2013-12-11
Posts: 17

Re: [solved] get only minimal system after fresh install

it's[solved].
I will explain it later if it can help anyone later. In short, I have forgotten to add the lvm2 hooks in grub config.

Offline

#9 2014-10-23 09:18:30

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [solved] get only minimal system after fresh install

Yeah, that'll do it. Can you edit your first post and tag this topic as '[SOLVED] '?

Offline

Board footer

Powered by FluxBB