From mboxrd@z Thu Jan 1 00:00:00 1970 X-Received: by 10.42.187.198 with SMTP id cx6mr17866336icb.28.1421516699115; Sat, 17 Jan 2015 09:44:59 -0800 (PST) X-BeenThere: voidlinux@googlegroups.com Received: by 10.50.153.9 with SMTP id vc9ls826214igb.29.canary; Sat, 17 Jan 2015 09:44:58 -0800 (PST) X-Received: by 10.50.7.100 with SMTP id i4mr143130iga.11.1421516698376; Sat, 17 Jan 2015 09:44:58 -0800 (PST) Date: Sat, 17 Jan 2015 09:44:56 -0800 (PST) From: Antonio Malcolm To: voidlinux@googlegroups.com Message-Id: <28993ed0-596f-4b40-99c4-d665e6dead8e@googlegroups.com> Subject: Can't Achieve A Bootable Void Install On UEFI + BIOS RAID + mdadm MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_23_407113136.1421516696951" ------=_Part_23_407113136.1421516696951 Content-Type: multipart/alternative; boundary="----=_Part_24_467577410.1421516696951" ------=_Part_24_467577410.1421516696951 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit SORRY, for the double-post, but I had left some info out in the original, and it doesn't appear that Google was going to allow me to edit, so let's try it again... Combining my own experience with installing Linux with your LVM + GPT + UEFI Wiki, I have been unable to build a Void installation which boots. I'm able to install both Void and GRUB,successfully, but my machine does not recognize the OS, and GRUB doesn't load. I've successfully installed and booted Manjaro in a way similar to that which I've installed Void, and it boots. Below, are steps I took for install, with details: RAID 0 configured in BIOS, using Intel Hybrid... $ sudo su # xbps-install mdadm gptfdisk # mdadm --assemble --scan mdadm: Container /dev/md/imsm0 has been assembled with 2 drives mdadm: Started /dev/md/Loki_0 with 2 devices # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 238.5G 0 disk md126 9:126 0 477G 0 raid0 sdb 8:16 0 238.5G 0 disk md126 9:126 0 477G 0 raid0 # fdisk /dev/md126 > g > w # cgdisk /dev/md126 Part. # Size Partition Type Partition Name ---------------------------------------------------------------- 1 200.0 MiB EFI System EFI 2 550.0 MiB Linux filesystem GRUB 3 2.0 GiB Linux swap swap 4 2.0 GiB Linux filesystem tmp 5 6.0 GiB Linux filesystem var 6 12.0 GiB Linux filesystem Void 7 454.2 GiB Linux filesystem The Big Box # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 238.5G 0 disk md126 9:126 0 477G 0 raid0 md126p1 259:0 0 200M 0 md md126p2 259:1 0 550M 0 md md126p3 259:2 0 2G 0 md md126p4 259:3 0 2G 0 md md126p5 259:4 0 6G 0 md md126p6 259:5 0 12G 0 md md126p7 259:6 0 454.2G 0 md sdb 8:16 0 238.5G 0 disk md126 9:126 0 477G 0 raid0 md126p1 259:0 0 200M 0 md md126p2 259:1 0 550M 0 md md126p3 259:2 0 2G 0 md md126p4 259:3 0 2G 0 md md126p5 259:4 0 6G 0 md md126p6 259:5 0 12G 0 md md126p7 259:6 0 454.2G 0 md # mkfs.vfat -F32 /dev/md126p1 # mkfs.xfs /dev/md126p2 # mkfs.xfs /dev/md126p4 # mkfs.xfs /dev/md126p5 # mkfs.xfs /dev/md126p6 # mkfs.xfs /dev/md126p7 # mkdir /mnt/void # mount /dev/md126p6 /mnt/void # mkdir /mnt/void/boot # mkdir /mnt/void/tmp # mkdir /mnt/void/var # mount /dev/md126p2 /mnt/void/boot # mount /dev/md126p4 /mnt/void/tmp # mount /dev/md126p5 /mnt/void/var # mkdir /mnt/void/boot/grub # mkdir /mnt/void/boot/efi # mount /dev/md126p1 /mnt/void/boot/efi # xbps-install -S -R http://repo3.voidlinux.eu/current -r /mnt/void base-system grub-x86_64-efi mdadm 107 downloaded, 107 installed, 0 updated, 107 configured, 0 removed. #cd /mnt/void # ls -la total 12 drwxr-xr-x 16 root root 4096 Jan 17 15:27 . drwxr-xr-x 3 root root 4096 Jan 17 15:16 .. lrwxrwxrwx 1 root root 7 Jan 17 15:26 bin -> usr/bin drwxr-xr-x 4 root root 127 Jan 17 15:37 boot drwxr-xr-x 2 root root 17 Jan 17 15:26 dev drwxr-xr-x 26 root root 4096 Jan 17 15:27 etc drwxr-xr-x 2 root root 6 Jan 17 15:26 home lrwxrwxrwx 1 root root 7 Jan 17 15:26 lib -> usr/lib lrwxrwxrwx 1 root root 9 Jan 17 15:26 lib32 -> usr/lib32 lrwxrwxrwx 1 root root 7 Jan 17 15:26 lib64 -> usr/lib drwxr-xr-x 2 root root 6 Jan 17 15:26 media drwxr-xr-x 2 root root 6 Jan 17 15:26 mnt drwxr-xr-x 2 root root 6 Jan 17 15:26 opt drwxr-xr-x 2 root root 6 Jan 17 15:26 proc drwxr-x--- 2 root root 26 Jan 17 15:39 root drwxr-xr-x 3 root root 17 Jan 17 15:26 run lrwxrwxrwx 1 root root 8 Jan 17 15:26 sbin -> usr/sbin drwxr-xr-x 2 root root 6 Jan 17 15:26 sys drwxrwxrwt 2 root root 6 Jan 17 15:15 tmp drwxr-xr-x 11 root root 123 Jan 17 15:26 usr drwxr-xr-x 11 root root 150 Jan 17 15:26 var # chroot /mnt/void /bin/bash bash-4.3# bash-4.3# passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully bash-4.3# chown root:root / bash-4.3# chmod 755 / bash-4.3# echo Loki >> /etc/hostname bash-4.3# vi /etc/rc.conf # /etc/rc.conf - system configuration for void # Set RTC to UTC or localtime. HARDWARECLOCK="UTC" # Set timezone, availables timezones at /usr/share/zoneinfo. TIMEZONE="America/Los_Angeles" # Keymap to load, see loadkeys(8). KEYMAP="en_us" # Console font to load, see setfont(8). #FONT="lat9w-16" # Console map to load, see setfont(8). #FONT_MAP= # Font unimap to load, see setfont(8). #FONT_UNIMAP= # Kernel modules to load, delimited by blanks. #MODULES="" DAEMONS="mdadm" bash-4.3# vi /etc/fstab # # See fstab(5). # # tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0 UUID=dcdd0c5a-020b-4167-a10d-cb81d71e2ae6 / xfs rw,noatime,nodiratime,discard 0 1 UUID=d7d2ddae-cb94-4aea-bc4f-4784d6b3cc8e /boot xfs rw,noatime,nodiratime,discard 0 2 UUID=C071-6887 /boot/efi xfs rw,noatime,nodiratime,discard 0 2 UUID=97060d6a-039e-469f-b0aa-2fca2e33f464 /tmp xfs rw,noatime,nodiratime,discardi,nosui,nodev 0 2 UUID=4fb9395f-42c2-4b27-8545-1e9c1703c94d /var xfs rw,noatime,nodiratime,discardi,nosui,nodev 0 2 UUID=4a24a9e9-3c04-4aa5-826b-da2122347094 /home xfs rw,noatime,nodiratime,discard 0 2 PARTUUID=cfb8be30-1866-44a6-bdf5-60ced2a454f4 swap swap rw,noatime,nodiratime,discard 0 0v bash-4.3# mkdir /etc/mdadm bash-4.3# vi /etc/mdadm/mdadm.conf # mdadm.conf # # Please refer to mdadm.conf(5) for information about this file. # DEVICE partitions # auto-create devices with Debian standard permissions CREATE owner=root group=disk mode=0660 auto=yes # automatically tag new arrays as belonging to the local system HOMEHOST # instruct the monitoring daemon where to send mail alerts MAILADDR root # definitions of existing MD arrays ARRAY /dev/md/imsm0 metadata=imsm UUID=2ebff534:aa39707f:f7345046:da660d4e ARRAY /dev/md/Loki_0 container=/dev/md/imsm0 member=0 UUID=181551c2:a1fd1572:1afd7303:91031415 bash-4.3# vi /etc/dracut.conf # PUT YOUR CONFIG HERE OR IN separate files named *.conf # in /etc/dracut.conf.d # SEE man dracut.conf(5) # Sample dracut config file #logfile=/var/log/dracut.log #fileloglvl=6 # Exact list of dracut modules to use. Modules not listed here are not going # to be included. If you only want to add some optional modules use # add_dracutmodules option instead. #dracutmodules+="" # dracut modules to omit #omit_dracutmodules+="" # dracut modules to add to the default #add_dracutmodules+="" # additional kernel modules to the default #add_drivers+="" # list of kernel filesystem modules to be included in the generic initramfs #filesystems+="" # build initrd only to boot current hardware hostonly="yes" # install local /etc/mdadm.conf mdadmconf="yes" # install local /etc/lvm/lvm.conf #lvmconf="no" # A list of fsck tools to install. If it's not specified, module's hardcoded # default is used, currently: "umount mount /sbin/fsck* xfs_db xfs_check # xfs_repair e2fsck jfs_fsck reiserfsck btrfsck". The installation is # opportunistic, so non-existing tools are just ignored. #fscks="" # inhibit installation of any fsck tools #nofscks="yes" # mount / and /usr read-only by default #ro_mnt="no" # set the directory for temporary files # default: /var/tmp tmpdir=/tmp bash-4.3# exit # mount --rbind /dev /mnt/void/dev # mount -t proc /proc /mnt/void/proc # mount --rbind /sys /mnt/void/sys # chroot /mnt/void /bin/bash bash-4.3# grub-mkconfig -o /boot/grub/grub.cfg Generating grub.cfg ... Found background: /usr/share/void-artwork/splash.png Found linux image: /boot/vmlinuz-3.18.3_1 Found initrd image: /boot/initramfs-3.18.3_1.img done bash-4.3# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id="Void Linux [GRUB]" --boot-directory=/boot --recheck --debug ... Installation finished. No error reported.+ echo bash-4.3# xbps-reconfigure -f linux3.18 linux3.18: configuring ... Executing post-install kernel hook: 10-dracut ... /bin/dracut: line 638: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory /bin/dracut: line 639: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory Executing post-install kernel hook: 50-grub ... Generating grub.cfg ... Found background: /usr/share/void-artwork/splash.png Found linux image: /boot/vmlinuz-3.18.3_1 Found initrd image: /boot/initramfs-3.18.3_1.img done linux3.18: configured successfully. bash-4.3# exit exit # umount -R /mnt umount: /mnt: not mounted # umount -R /mnt/void umount: /mnt/void: target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).) # ------=_Part_24_467577410.1421516696951 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
SORRY, for the double-post, but I had left some info out i= n the original, and it doesn't appear that Google was going to allow me to = edit, so let's try it again...

Combining my own experience with inst= alling Linux with your  LVM + GPT + UEFI Wiki, I have been unable to b= uild a Void installation which boots.
I'm able to install both Void and = GRUB,successfully, but my machine does not recognize the OS, and GRUB doesn= 't load.

I've successfully installed and booted Manjaro in a way sim= ilar to that which I've installed Void, and it boots.

Below, are ste= ps I took for install, with details:

RAID 0 configured in BIOS, usin= g Intel Hybrid...

$ sudo su
# xbps-install mdadm gptfdisk
# md= adm --assemble --scan

mdadm: Container /dev/md/imsm0 has been assemb= led with 2 drives
mdadm: Started /dev/md/Loki_0 with 2 devices

# = lsblk

NAME        MAJ:MIN RM = ;  SIZE RO TYPE  MOUNTPOINT
sda     &= nbsp;     8:0    0 238.5G  0 disk <= br>  md126       9:126  0 &nbs= p; 477G  0 raid0
sdb        = ;   8:16   0 238.5G  0 disk
  md126 =       9:126  0   477G  0 raid0=

# fdisk /dev/md126
  > g
  > w

# cgdi= sk /dev/md126

Part. #     Size   =      Partition Type      =       Partition Name
--------------------------= --------------------------------------
   1   &= nbsp;    200.0 MiB   EFI System   &= nbsp;            EFI=                 2        550.0 MiB &= nbsp; Linux filesystem         GRUB=
   3        2.0 GiB &= nbsp;     Linux swap      = ;          swap
  = ; 4        2.0 GiB   &nbs= p;   Linux filesystem       &n= bsp;  tmp
   5        = 6.0 GiB       Linux filesystem  &nb= sp;       var
   6  &n= bsp;     12.0 GiB     Linux filesys= tem          Void
 &nb= sp; 7        454.2 GiB   Linux= filesystem          The Big B= ox

# lsblk

NAME        MAJ= :MIN RM   SIZE RO TYPE  MOUNTPOINT
sda   &= nbsp;       8:0    0 238.5G&nb= sp; 0 disk
  md126       9:126 = 0   477G  0 raid0
    md126p1 259:0 =    0   200M  0 md  
  &nbs= p; md126p2 259:1    0   550M  0 md  = ;
    md126p3 259:2    0   = ;  2G  0 md  
    md126p4 259:3 = ;   0     2G  0 md  
 = ;   md126p5 259:4    0     6G&= nbsp; 0 md  
    md126p6 259:5  &nbs= p; 0    12G  0 md  
    md= 126p7 259:6    0 454.2G  0 md  
sdb =           8:16   0 2= 38.5G  0 disk
  md126       9:1= 26  0   477G  0 raid0
    md126p1 259= :0    0   200M  0 md  
 &n= bsp;  md126p2 259:1    0   550M  0 md&nb= sp; 
    md126p3 259:2    0 &nb= sp;   2G  0 md  
    md126p4 25= 9:3    0     2G  0 md   <= br>    md126p5 259:4    0   &n= bsp; 6G  0 md  
    md126p6 259:5 &n= bsp;  0    12G  0 md  
  &= nbsp; md126p7 259:6    0 454.2G  0 md  
<= br># mkfs.vfat -F32 /dev/md126p1
# mkfs.xfs /dev/md126p2
# mkfs.xfs /= dev/md126p4
# mkfs.xfs /dev/md126p5
# mkfs.xfs /dev/md126p6
# mkfs= .xfs /dev/md126p7

# mkdir /mnt/void
# mount /dev/md126p6 /mnt/voi= d

# mkdir /mnt/void/boot
# mkdir /mnt/void/tmp
# mkdir /mnt/vo= id/var

# mount /dev/md126p2 /mnt/void/boot
# mount /dev/md126p4 /= mnt/void/tmp
# mount /dev/md126p5 /mnt/void/var

# mkdir /mnt/void= /boot/grub
# mkdir /mnt/void/boot/efi
# mount /dev/md126p1 /mnt/void/= boot/efi

# xbps-install -S -R http://repo3.voidlinux.eu/current -r /= mnt/void base-system grub-x86_64-efi mdadm
107 downloaded, 107 installed= , 0 updated, 107 configured, 0 removed.

#cd /mnt/void
# ls -latotal 12
drwxr-xr-x 16 root root 4096 Jan 17 15:27 .
drwxr-xr-x = ; 3 root root 4096 Jan 17 15:16 ..
lrwxrwxrwx  1 root root &nb= sp;  7 Jan 17 15:26 bin -> usr/bin
drwxr-xr-x  4 root root&= nbsp; 127 Jan 17 15:37 boot
drwxr-xr-x  2 root root   17 = Jan 17 15:26 dev
drwxr-xr-x 26 root root 4096 Jan 17 15:27 etc
drwxr-= xr-x  2 root root    6 Jan 17 15:26 home
lrwxrwxrwx&= nbsp; 1 root root    7 Jan 17 15:26 lib -> usr/lib
lrw= xrwxrwx  1 root root    9 Jan 17 15:26 lib32 -> usr/= lib32
lrwxrwxrwx  1 root root    7 Jan 17 15:26 lib6= 4 -> usr/lib
drwxr-xr-x  2 root root    6 Jan 17 = 15:26 media
drwxr-xr-x  2 root root    6 Jan 17 15:2= 6 mnt
drwxr-xr-x  2 root root    6 Jan 17 15:26 opt<= br>drwxr-xr-x  2 root root    6 Jan 17 15:26 proc
dr= wxr-x---  2 root root   26 Jan 17 15:39 root
drwxr-xr-x&n= bsp; 3 root root   17 Jan 17 15:26 run
lrwxrwxrwx  1 root= root    8 Jan 17 15:26 sbin -> usr/sbin
drwxr-xr-x&nb= sp; 2 root root    6 Jan 17 15:26 sys
drwxrwxrwt  2 = root root    6 Jan 17 15:15 tmp
drwxr-xr-x 11 root root&n= bsp; 123 Jan 17 15:26 usr
drwxr-xr-x 11 root root  150 Jan 17 15:26= var

# chroot /mnt/void /bin/bash
bash-4.3#

bash-4.3# pass= wd root
Enter new UNIX password:
Retype new UNIX password:
passwd:= password updated successfully
bash-4.3# chown root:root /
bash-4.3# = chmod 755 /

bash-4.3# echo Loki >> /etc/hostname
bash-4.3# = vi /etc/rc.conf

# /etc/rc.conf - system configuration for void
# Set RTC to UTC or localtime.
HARDWARECLOCK=3D"UTC"

# Set time= zone, availables timezones at /usr/share/zoneinfo.
TIMEZONE=3D"America/L= os_Angeles"

# Keymap to load, see loadkeys(8).
KEYMAP=3D"en_us"
# Console font to load, see setfont(8).
#FONT=3D"lat9w-16"

= # Console map to load, see setfont(8).
#FONT_MAP=3D

# Font unimap= to load, see setfont(8).
#FONT_UNIMAP=3D

# Kernel modules to loa= d, delimited by blanks.
#MODULES=3D""

DAEMONS=3D"mdadm"

ba= sh-4.3# vi /etc/fstab

#
# See fstab(5).
#
# <file system= > <dir>   <type>  <options>  =              &l= t;dump>  <pass>
tmpfs      &= nbsp;    /tmp    tmpfs   defaults,n= osuid,nodev   0       0
UUID=3Dd= cdd0c5a-020b-4167-a10d-cb81d71e2ae6 / xfs rw,noatime,nodiratime,discard 0 1=
UUID=3Dd7d2ddae-cb94-4aea-bc4f-4784d6b3cc8e /boot xfs rw,noatime,nodira= time,discard 0 2
UUID=3DC071-6887 /boot/efi xfs rw,noatime,nodiratime,di= scard 0 2
UUID=3D97060d6a-039e-469f-b0aa-2fca2e33f464 /tmp xfs rw,noatim= e,nodiratime,discardi,nosui,nodev 0 2
UUID=3D4fb9395f-42c2-4b27-8545-1e9= c1703c94d /var xfs rw,noatime,nodiratime,discardi,nosui,nodev 0 2
UUID= =3D4a24a9e9-3c04-4aa5-826b-da2122347094 /home xfs rw,noatime,nodiratime,dis= card 0 2
PARTUUID=3Dcfb8be30-1866-44a6-bdf5-60ced2a454f4 swap swap rw,no= atime,nodiratime,discard 0 0v

bash-4.3# mkdir /etc/mdadm
bash-4.3= # vi /etc/mdadm/mdadm.conf

# mdadm.conf
#
# Please refer to md= adm.conf(5) for information about this file.
#

DEVICE partitions<= br>
# auto-create devices with Debian standard permissions
CREATE own= er=3Droot group=3Ddisk mode=3D0660 auto=3Dyes

# automatically tag ne= w arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR roo= t

# definitions of existing MD arrays
ARRAY /dev/md/imsm0 metadat= a=3Dimsm UUID=3D2ebff534:aa39707f:f7345046:da660d4e
ARRAY /dev/md/Loki_0= container=3D/dev/md/imsm0 member=3D0 UUID=3D181551c2:a1fd1572:1afd7303:910= 31415

bash-4.3# vi /etc/dracut.conf

# PUT YOUR CONFIG HERE OR= IN separate files named *.conf
# in /etc/dracut.conf.d
# SEE man dra= cut.conf(5)

# Sample dracut config file

#logfile=3D/var/log/d= racut.log
#fileloglvl=3D6

# Exact list of dracut modules to use.&= nbsp; Modules not listed here are not going
# to be included.  If y= ou only want to add some optional modules use
# add_dracutmodules option= instead.
#dracutmodules+=3D""

# dracut modules to omit
#omit_= dracutmodules+=3D""

# dracut modules to add to the default
#add_d= racutmodules+=3D""

# additional kernel modules to the default
#ad= d_drivers+=3D""

# list of kernel filesystem modules to be included i= n the generic initramfs
#filesystems+=3D""

# build initrd only to= boot current hardware
hostonly=3D"yes"


# install local /etc/= mdadm.conf
mdadmconf=3D"yes"

# install local /etc/lvm/lvm.conf#lvmconf=3D"no"

# A list of fsck tools to install. If it's not spec= ified, module's hardcoded
# default is used, currently: "umount mount /s= bin/fsck* xfs_db xfs_check
# xfs_repair e2fsck jfs_fsck reiserfsck btrfs= ck". The installation is
# opportunistic, so non-existing tools are just= ignored.
#fscks=3D""

# inhibit installation of any fsck tools#nofscks=3D"yes"

# mount / and /usr read-only by default
#ro_mnt= =3D"no"

# set the directory for temporary files
# default: /var/t= mp
tmpdir=3D/tmp

bash-4.3# exit

# mount --rbind /dev /mnt/= void/dev
# mount -t proc /proc /mnt/void/proc
# mount --rbind /sys /m= nt/void/sys

# chroot /mnt/void /bin/bash
bash-4.3#

grub-mk= config -o /boot/grub/grub.cfg

Generating grub.cfg ...
Found backg= round: /usr/share/void-artwork/splash.png
Found linux image: /boot/vmlin= uz-3.18.3_1
Found initrd image: /boot/initramfs-3.18.3_1.img
done
=
bash-4.3# grub-install --target=3Dx86_64-efi --efi-directory=3D/boot/ef= i --bootloader-id=3D"Void Linux [GRUB]" --boot-directory=3D/boot --recheck = --debug
...
Installation finished. No error reported.+ echo

ba= sh-4.3# xbps-reconfigure -f linux3.18

linux3.18: configuring ...
= Executing post-install kernel hook: 10-dracut ...
/bin/dracut: line 638:= warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No su= ch file or directory
/bin/dracut: line 639: warning: setlocale: LC_CTYPE= : cannot change locale (en_US.UTF-8): No such file or directory
Executin= g post-install kernel hook: 50-grub ...
Generating grub.cfg ...
Found= background: /usr/share/void-artwork/splash.png
Found linux image: /boot= /vmlinuz-3.18.3_1
Found initrd image: /boot/initramfs-3.18.3_1.img
do= ne
linux3.18: configured successfully.

bash-4.3# exit
exit
= # umount -R /mnt
umount: /mnt: not mounted
# umount -R /mnt/void
u= mount: /mnt/void: target is busy
      &nb= sp; (In some cases useful info about processes that
   &n= bsp;     use the device is found by lsof(8) or fuser(1)= .)
#

------=_Part_24_467577410.1421516696951-- ------=_Part_23_407113136.1421516696951--