You are not logged in.

#1 2016-12-25 18:01:43

bitwise
Member
Registered: 2016-12-21
Posts: 7

Grub not showing up

I want to install arch linux with luks and lvm and followed this wiki article: https://wiki.archlinux.de/title/Systemv … t_dm-crypt

but when i boot from the ssd grub is not even showing up, just skipping to usb/lan-boot (boot-order is correct)



fstab

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# /dev/mapper/main-root LABEL=root
UUID=ac46d027-314d-4f84-9818-48ed5268626c	/         	ext4      	rw,defaults,noatime,discard	0 1

# /dev/mapper/main-home LABEL=home
UUID=53295330-c8f5-4907-8a7d-6e0d66adf60f	/home     	ext4      	rw,defaults,noatime,discard	0 2

# /dev/sdb1 LABEL=boot
UUID=79a6bb0e-d996-4cd9-a7dd-15f89545aaaa	/boot     	ext4      	rw,relatime,stripe=4,data=ordered	0 2

# /dev/mapper/main-swap LABEL=swap
UUID=4cd91de4-4785-4e1b-b0b5-915a5d031863	none      	swap      	defaults,noatime,discard  	0 0


grub

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="cryptdevice=/dev/sdb2:main root=/dev/mapper/main-root lang=de locale=de_DE.UTF-8"
GRUB_ENABLE_CRYPTODISK_ENABLE=y
GRUB_PRELOAD_MODULES="lvm cryptodisk"
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter 
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx" 
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper 
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

#GRUB_SAVEDEFAULT="true"

mkinitcpio.conf

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES="ext4"

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS="base udev autodetect block filesystems"
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS="base udev block filesystems"
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS="base udev block mdadm encrypt filesystems"
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev block lvm2 filesystems"
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS="base udev autodetect modconf block keyboard keymap encrypt lvm2 filesystems fsck shutdown"

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""

Last edited by bitwise (2016-12-25 19:34:19)

Offline

#2 2016-12-25 19:14:47

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Grub not showing up

Is the boot partition also encrypted? What is sda? How did you install grub? Is this a legacy BIOS system or EFI?


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2016-12-25 19:30:55

bitwise
Member
Registered: 2016-12-21
Posts: 7

Re: Grub not showing up

fsckd wrote:

Is the boot partition also encrypted? What is sda? How did you install grub? Is this a legacy BIOS system or EFI?


No, only encrypted  /dev/sdb2, but /dev/sdb1 is mounted as /boot in /dev/sdb2.

sda is the hdd (want to install system on ssd)

installed grub with

grub-install --target=i386-pc /dev/sdb1 --force

I have both on my laptop but would like to run it with legacy bios. if it works easier with efi iam down for it


thanks for your help

Offline

#4 2016-12-25 20:49:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Grub not showing up

Let's start with the obvious:
1. why is there "--force" in that line? Which error did you attempt to "cover" by this?
2. Do you *really* want to install grub into the partition? Is that why you used the force flag? Did you read https://wiki.archlinux.org/index.php/GRUB#Installation ?

Offline

#5 2016-12-25 21:08:45

bitwise
Member
Registered: 2016-12-21
Posts: 7

Re: Grub not showing up

seth wrote:

Let's start with the obvious:
1. why is there "--force" in that line? Which error did you attempt to "cover" by this?
2. Do you *really* want to install grub into the partition? Is that why you used the force flag? Did you read https://wiki.archlinux.org/index.php/GRUB#Installation ?


i used the force flag because i got the "error: will not proceed with blocklists." message during setup

i followed the wiki article so i cant really give a reason why i installed it in that partition

Offline

#6 2016-12-25 21:18:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Grub not showing up

Sorry, where does the linked german wiki say it's a good idea to install grub into a partition?
It's actually promoting syslinux as bootloader.

Offline

#7 2016-12-25 22:36:21

bitwise
Member
Registered: 2016-12-21
Posts: 7

Re: Grub not showing up

seth wrote:

Sorry, where does the linked german wiki say it's a good idea to install grub into a partition?
It's actually promoting syslinux as bootloader.

yeah but syslinux is not working on all 64 bit hardware and i found online that grub works otherwise.

Offline

#8 2016-12-25 22:47:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Grub not showing up

That does not explain the attempt to install grub into a partition (if you missed the hint: very bad idea and likely the cause of your problem)

Offline

#9 2016-12-25 22:50:10

bitwise
Member
Registered: 2016-12-21
Posts: 7

Re: Grub not showing up

seth wrote:

That does not explain the attempt to install grub into a partition (if you missed the hint: very bad idea and likely the cause of your problem)


okay, and what would you suggest i shall do?

Offline

#10 2016-12-25 22:51:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Grub not showing up

Did you look at the wiki link I provided in comment #4?

Offline

#11 2016-12-26 00:29:07

bitwise
Member
Registered: 2016-12-21
Posts: 7

Re: Grub not showing up

after installing syslinux and grub again on sdb it worked, thanks guys

Offline

Board footer

Powered by FluxBB