You are not logged in.
Day two of the fight...
I am trying to install BL on the mentioned laptop with a nvme disk.
I knew there would be a small problem with the installation of GRUB (I am waiting for BL - Helium;))
I used some commands to install BL from here.
System is installed, but each boot only the GRUB console is loaded.
I have to load it manually.
I know that the grub configuration file is missing, but I tried various commands to create grub.cfg and none of them worked.
UEFI for me is new and it's possible that I did not quite understand what to do correctly.
Now I installed the fresh system to not mix anything, maybe some of You would be able to help me.
Thank You very much in advance
What I've done so far:
fdisk -l
isk /dev/nvme0n1: 238,5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E50F7D7A-0B86-4F37-A516-9D06A0A538DB
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p2 1050624 31324159 30273536 14,4G Linux filesystem
/dev/nvme0n1p3 31324160 500117503 468793344 223,6G Linux filesystem
Disk /dev/sda: 3,6 GiB, 3878043648 bytes, 7574304 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000334a6
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 238,5G 0 disk
├─nvme0n1p3 259:3 0 223,6G 0 part /home
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
└─nvme0n1p2 259:2 0 14,4G 0 part /
During the system installation:
cd /target
mount --bind /dev /target/dev
mount --bind /dev/pts /target/dev/pts
mount --bind /proc /target/proc
mount --bind /sys /target/sys
cp /etc/resolv.conf /target/etc
chroot /target /bin/bash
...
apt-get update
apt-get install grub-efi-amd64
apt-get install -t jessie-backports linux-image-amd64
update-grub
grub-install --target=x86_64-efi /dev/nvme0n1
nano /etc/initramfs-tools/modules
-add line: nvme
update-initramfs -u
apt-get install -t jessie-backports xserver-xorg-video-intel
apt-get install -t jessie-backports firmware-iwlwifi
Last edited by Head_on_a_Stick (2018-03-17 00:00:37)
Offline
Offline
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001,2001,2002,2003
Boot0001* bl ACPI(a0341d0,0)PCI(1c,4)PCI(0,0)NVME(1,0)HD(1,800,100000,6724ebdb-d69f-4808-9b66-fbca3ba16718)File(\EFI\bunsenlabs\grubx64.efi)A01 ..
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
Offline
Offline
Not help
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Znaleziono obraz Linuksa: /boot/vmlinuz-4.9.0-0.bpo.5-amd64
Znaleziono obraz initrd: /boot/initrd.img-4.9.0-0.bpo.5-amd64
Znaleziono obraz Linuksa: /boot/vmlinuz-3.16.0-4-amd64
Znaleziono obraz initrd: /boot/initrd.img-3.16.0-4-amd64
/etc/grub.d/30_uefi-firmware: 34: /etc/grub.d/30_uefi-firmware: arithmetic expression: expecting EOF: " 1f & 1 "
Last edited by Bury (2018-03-15 16:21:24)
Offline
^ I read about the Acer computers once:
You have to set a supervisor password in the "BIOS" of the Acer Aspire ES17, otherwise you will not get the options necessary to activate a new operating system.
Look for "Linux and Acer"
Offline
Can we please see the output of
sudo grub-mkconfig
find /boot/grub/grub.cfg
/etc/grub.d/30_uefi-firmware: 34: /etc/grub.d/30_uefi-firmware: arithmetic expression: expecting EOF: " 1f & 1 "
/etc/grub.d/30_uefi-firmware is supplied by the grub-common package so try re-installing that:
sudo aptitude reinstall grub-common
Offline
sudo grub-mkconfig
find /boot/grub/grub.cfg
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Znaleziono obraz Linuksa: /boot/vmlinuz-4.9.0-0.bpo.5-amd64
Znaleziono obraz initrd: /boot/initrd.img-4.9.0-0.bpo.5-amd64
Znaleziono obraz Linuksa: /boot/vmlinuz-3.16.0-4-amd64
Znaleziono obraz initrd: /boot/initrd.img-3.16.0-4-amd64
/etc/grub.d/30_uefi-firmware: 34: /etc/grub.d/30_uefi-firmware: arithmetic expression: expecting EOF: " 1f & 1 "
find: in Polish: Not found file or directory
But i have in /boot/grub/ file: grub.cfg.new
with:
#
# 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 ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
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_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 82d8d64f-9175-44af-94ce-3d06d6ebbe4a
else
search --no-floppy --fs-uuid --set=root 82d8d64f-9175-44af-94ce-3d06d6ebbe4a
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=pl_PL
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=-1
else
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
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 82d8d64f-9175-44af-94ce-3d06d6ebbe4a
else
search --no-floppy --fs-uuid --set=root 82d8d64f-9175-44af-94ce-3d06d6ebbe4a
fi
insmod png
if background_image /usr/share/images/bunsen/grub/default.png; then
true
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'BunsenLabs GNU/Linux' --class bunsenlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-82d8d64f-9175-44af-94ce-3d06d6ebbe4a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 82d8d64f-9175-44af-94ce-3d06d6ebbe4a
else
search --no-floppy --fs-uuid --set=root 82d8d64f-9175-44af-94ce-3d06d6ebbe4a
fi
echo 'Wczytywanie systemu Linux 4.9.0-0.bpo.5-amd64...'
linux /boot/vmlinuz-4.9.0-0.bpo.5-amd64 root=UUID=82d8d64f-9175-44af-94ce-3d06d6ebbe4a ro quiett
echo 'Wczytywanie początkowego dysku RAM...'
initrd /boot/initrd.img-4.9.0-0.bpo.5-amd64
}
submenu 'Opcje zaawansowane dla systemu BunsenLabs GNU/Linux' $menuentry_id_option 'gnulinux-advanced-82d8d64f-9175-44af-94ce-3d06d6ebbe4a' {
menuentry 'BunsenLabs GNU/Linux, za pomocą systemu Linux 4.9.0-0.bpo.5-amd64' --class bunsenlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-0.bpo.5-amd64-advanced-82d8d64f-9175-44af-94ce-3d06d6ebbe4a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 82d8d64f-9175-44af-94ce-3d06d6ebbe4a
else
search --no-floppy --fs-uuid --set=root 82d8d64f-9175-44af-94ce-3d06d6ebbe4a
fi
echo 'Wczytywanie systemu Linux 4.9.0-0.bpo.5-amd64...'
linux /boot/vmlinuz-4.9.0-0.bpo.5-amd64 root=UUID=82d8d64f-9175-44af-94ce-3d06d6ebbe4a ro quiett
echo 'Wczytywanie początkowego dysku RAM...'
initrd /boot/initrd.img-4.9.0-0.bpo.5-amd64
}
menuentry 'BunsenLabs GNU/Linux, with Linux 4.9.0-0.bpo.5-amd64 (recovery mode)' --class bunsenlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-0.bpo.5-amd64-recovery-82d8d64f-9175-44af-94ce-3d06d6ebbe4a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 82d8d64f-9175-44af-94ce-3d06d6ebbe4a
else
search --no-floppy --fs-uuid --set=root 82d8d64f-9175-44af-94ce-3d06d6ebbe4a
fi
echo 'Wczytywanie systemu Linux 4.9.0-0.bpo.5-amd64...'
linux /boot/vmlinuz-4.9.0-0.bpo.5-amd64 root=UUID=82d8d64f-9175-44af-94ce-3d06d6ebbe4a ro single
echo 'Wczytywanie początkowego dysku RAM...'
initrd /boot/initrd.img-4.9.0-0.bpo.5-amd64
}
menuentry 'BunsenLabs GNU/Linux, za pomocą systemu Linux 3.16.0-4-amd64' --class bunsenlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-82d8d64f-9175-44af-94ce-3d06d6ebbe4a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 82d8d64f-9175-44af-94ce-3d06d6ebbe4a
else
search --no-floppy --fs-uuid --set=root 82d8d64f-9175-44af-94ce-3d06d6ebbe4a
fi
echo 'Wczytywanie systemu Linux 3.16.0-4-amd64...'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=82d8d64f-9175-44af-94ce-3d06d6ebbe4a ro quiett
echo 'Wczytywanie początkowego dysku RAM...'
initrd /boot/initrd.img-3.16.0-4-amd64
}
menuentry 'BunsenLabs GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class bunsenlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-82d8d64f-9175-44af-94ce-3d06d6ebbe4a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 82d8d64f-9175-44af-94ce-3d06d6ebbe4a
else
search --no-floppy --fs-uuid --set=root 82d8d64f-9175-44af-94ce-3d06d6ebbe4a
fi
echo 'Wczytywanie systemu Linux 3.16.0-4-amd64...'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=82d8d64f-9175-44af-94ce-3d06d6ebbe4a ro single
echo 'Wczytywanie początkowego dysku RAM...'
initrd /boot/initrd.img-3.16.0-4-amd64
}
}
### 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/30_uefi-firmware ###
and
/etc/grub.d/30_uefi-firmware is supplied by the grub-common package so try re-installing that:
sudo aptitude reinstall grub-common
I just now find this and I try it
https://bugs.launchpad.net/ubuntu/+sour … ug/1456911
EDIT:
grub-common not work but... I rename grub.cfg.new to simply grub.cfg and now it works!
I knew its issue of config, but each time was created grub.cfg.new, not grub.cfg It was my fault,
I not checked witch file is in /boot/grub/
Thank You so much for help!
Last edited by Bury (2018-03-15 22:31:47)
Offline
each time was created grub.cfg.new, not grub.cfg
Looks like the Arch method for updating GRUB is more correct than the silly Debian abstraction then:
# grub-mkconfig -o /boot/grub/grub.cfg
^ That would have worked.
EDIT: corrected typo.
Last edited by Head_on_a_Stick (2018-03-16 21:26:22)
Offline
/etc/grub.d/30_uefi-firmware: 34: /etc/grub.d/30_uefi-firmware: arithmetic expression: expecting EOF: " 1f & 1 "
The grub script is exiting with an error. That is why there is a file grub.cfg.new remaining - this is created during the running of the script, and renamed at the end.
As HoaS has already suggested, I would reinstall grub-common before doing anything else.
update-grub is a tiny script:
john@helium-dev:~$ cat /usr/sbin/update-grub
#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"
So the silly Debian abstraction is doing exactly the same thing as Arch, and the correct Arch Way will have no more success than the silly Debian way till the source of the error is fixed.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
the correct Arch Way will have no more success than the silly Debian way
If that was true then why did copying grub.cfg.new to grub.cfg get the system booting?
EDIT: and even if the actual command had failed then at least the OP would have known which file was needed by GRUB.
EDIT2: to finish up here: the `grub-mkconfig` command generates the grub.cfg.new file and if it fails then grub.cfg is not created but the grub.cfg.new file is still functional (as we have found) so the Arch Way would not have got the system booting directly (sorry John) but as I said the lack of abstraction means that the user can see exactly what is happening and thus has a much better chance of finding out what has gone wrong and what needs to be done to fix it.
Last edited by Head_on_a_Stick (2018-03-16 20:40:23)
Offline
Looks like the Arch method for updating GRUB is more correct than the silly Debian abstraction then:
# grub-mkconfig -o /boot/grub/grub/cfg
^ That would have worked.
I tried it on the new system and unfortunately it does not work.
Look at .cfg name file.
mkconfig trying create grub.cfg adding ".new".
This is probably problem.
I received a message:
/usr/sbin/grub-mkconfig: 250: /usr/sbin/grub-mkconfig: cannot create /boot/grub/grub/cfg.new: Directory nonexistent
And when I typed:
grub-mkconfig -o /boot/grub/grub.cfg
I received this:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Znaleziono obraz Linuksa: /boot/vmlinuz-4.9.0-0.bpo.5-amd64
Znaleziono obraz initrd: /boot/initrd.img-4.9.0-0.bpo.5-amd64
Znaleziono obraz Linuksa: /boot/vmlinuz-3.16.0-4-amd64
Znaleziono obraz initrd: /boot/initrd.img-3.16.0-4-amd64
/etc/grub.d/30_uefi-firmware: 34: /etc/grub.d/30_uefi-firmware: arithmetic expression: expecting EOF: " 1f & 1 "
But still without grub.cfg
Offline
^ Yes, see my edit above, I just checked that myself.
Have you re-installed grub-common?
Offline
Head_on_a_Stick wrote:# grub-mkconfig -o /boot/grub/grub/cfg
Sorry, there was a typo in that post, I have edited it now.
The command would not have output a grub.cfg file anyway, johnraff was right.
Offline
^ Yes, see my edit above, I just checked that myself.
Yes, I saw it after I clicked "Submit"
Have you re-installed grub-common?
I try it before. Not work.
Offline
OK, we have two ways of making this work:
Correct /etc/grub.d/30_uefi-firmware as per https://bugs.launchpad.net/ubuntu/+sour … comments/2.
Create a custom grub.cfg that will continue to boot BL even after a kernel upgrade.
I think the first option is best.
We should probably also consider an upstream bug report.
Offline
There seem to be no bug reports in silly Debian about this, but /etc/grub.d/30_uefi-firmware changed slightly between Jessie and Stretch. That line, from:
[ "$(( $(printf %x \'"$(cat $OsIndications | cut -b1)") & 1 ))" = 1 ]; then
to:
[ "$(( $(printf 0x%x \'"$(cat $OsIndications | cut -b1)") & 1 ))" = 1 ]; then
I don't know how the 0x prefix would affect this issue, but @Bury, I wonder if you could post the result of
cat /etc/grub.d/30_uefi-firmware
(If you're installing BunsenLabs Deuterium then the newer Helium alpha iso might possibly work.)
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
silly Debian
I've obviously ruffled your feathers here but please go back and read what I actually posted (emphasis added):
the silly Debian abstraction
My insult was not intended against Debian itself but rather the ridiculous `update-grub` abstraction to which I have always objected.
I hold Debian itself in the highest regard.
Shame about those stupid auto-enabled services though...
Damn, I did it again
Offline
johnraff wrote:silly Debian
I've obviously ruffled your feathers here but please go back and read what I actually posted
I read what you posted before you deleted it. There's no secrecy on the internet.
To find out, I'd have to spend time on research that I'd rather use for more urgent things, but there is probably a reason Debian introduced the update-grub wrapper. It's a tiny thing anyway, and runs the same grub-mkconfig script that correct Arch does. It all comes from the same Grub upstream developers.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline