GRUB Configuration
I'm installing Arch on an HP Vectra with a single 4 GB Hard drive. I edited the GRUB configuration file, and tried to boot the computer to Arch. After the BIOS splash screen, the screen goes black, and then the word GRUB appears at the top left of the screen, and won't change from then on. Is this an obvious problem? What am I doing wrong?
You may try lilo, first, and later replace it with grub.
Similar Messages
-
New kernel and GRUB configuration
I recently downloaded and installed from the AUR the maxim patch to fix the mon0 problem with aircrack-ng.
Both makepkg and pacman -U finish without any issues.
The problem comes in when I try to set my system up to use the 2.6.8 kernel which is created by the process.
When it first finished, the new kernel was created on my "/" partition. I got them moved "/boot" partition in order to get my system set up.
The current files in my "/boot" are:
grub (folder)
lost+found (folder)
9a97750b-6285-42a6-9712-877d9ef12eca (uuid of the drive)
kernel26-img
kernel26-fallback.img
vmlinuz26
System.map26
kernel26-nx.img
kernel26-nx-fallback.img
vmlinuz26-nx
System.map26-nx
My /grub/menu.lst says:
# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/842288ba-e9a8-4a6e-8e60-4a54e4844dcd ro
initrd /kernel26-fallback.img
# (1) Arch Linux
title Arch Linux Fallback
root (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/842288ba-e9a8-4a6e-8e60-4a54e4844dcd ro
initrd /kernel26-fallback.img
Under this configuration is works fine. When I switch it to:
# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /vmlinuz26-nx root=/dev/disk/by-uuid/842288ba-e9a8-4a6e-8e60-4a54e4844dcd ro
initrd /kernel26-nx-.img
# (1) Arch Linux
title Arch Linux Fallback
root (hd0,0)
kernel /vmlinuz26-nx root=/dev/disk/by-uuid/842288ba-e9a8-4a6e-8e60-4a54e4844dcd ro
initrd /kernel26-nx-fallback.img
It boots to "Waiting 10 seconds for drive..." Then puts me in to the ramfs because the drive does not respond. I am sure I am doing something wrong, I just don't know what.
Last edited by reddae (2011-04-06 05:13:19)I changed the boot string to:
root (hd0,0)
kernel /vmlinuz26-nx root=/dev/sda3 ro
initrd /kernel26-nx.img
Waiting 10 seconds for device /dev/sda3
ERROR: Unable to determine major/minor number of root device '/dev/sda3'
You are being dropped to a recovery shell
EDIT: I just tried with all of the drives, sda1,sda2,sda3,sda4 all with the same result.
Last edited by reddae (2011-04-06 06:03:38) -
[Solved] Grub configuration (grub.cfg) no Windows 8 menuentry
Hi! How should one generage grub.cfg for Windows 8 on old hardware? A PC is over 4 years old. Grub-mkconfig gives nothing for a ntfs partition with Windows 8.
Last edited by marko90 (2014-11-24 21:01:26)marko90 wrote:
Thanks a lot for the replies. Here they are:
[root@localhost ~]# parted -l
Model: ATA WDC WD1600BEVT-6 (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 21.0GB 21.0GB primary ext4
2 21.0GB 157GB 136GB primary ntfs boot
3 157GB 160GB 2625MB primary linux-swap(v1)
You do not have the main Windows partition on your system, just the boot partition.
There should be a second ntfs partition with no boot flag...
EDIT: I think so anyway -- that's how my Windows partitions show up on an MBR BIOS system.
Last edited by Head_on_a_Stick (2014-11-24 20:58:54) -
Install on mdadm-raid1 / cryptsetup home - GRUB-Problems
I try to install arch-linux on some lvl1-raids done with mdadm and a home-partition encrypted with cryptsetup.
I dont want an lvm, just some lvl1 raids.
I've added encrypt and mdadm_udev to the kernel-image.
I've got two harddisks in my laptop, one is filled with fedora-stuff which I want to copy to the new system. So I created the raids with /dev/sdbX and missing.
/dev/md0 - /dev/sdb1 & missing is swap
/dev/md1 - /dev/sdb2 & missing is root (ext4)
/dev/md2 - /dev/sdb3 & missing is /boot (ext4)
/dev/md3 - /dev/sdb4 & missing is /dev/mapper/home (luks) is /home (ext4)
I tried to install grub as boot-manager, grub-mkconfig fail:
sh-4.2# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
/usr/bin/grub-probe: warning: Couldn't find physical volume '(null)'. Some modules may be missing from core image...
/usr/bin/grub-probe: warning: Couldn't find physical volume '(null)'. Some modules may be missing from core image...
/usr/bin/grub-probe: warning: Couldn't find physical volume '(null)'. Some modules may be missing from core image...
/usr/bin/grub-probe: warning: Couldn't find physical volume '(null)'. Some modules may be missing from core image...
/usr/bin/grub-probe: warning: Couldn't find physical volume '(null)'. Some modules may be missing from core image...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
/usr/bin/grub-probe: warning: Couldn't find physical volume '(null)'. Some modules may be missing from core image...
/usr/bin/grub-probe: warning: Couldn't find physical volume '(null)'. Some modules may be missing from core image...
/usr/bin/grub-probe: warning: Couldn't find physical volume '(null)'. Some modules may be missing from core image...
/usr/bin/grub-probe: warning: Couldn't find physical volume '(null)'. Some modules may be missing from core image...
error: out of memory
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 168
Syntax error detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.done
I didn't touched /etc/default/grub nor any file of /etc/grub.d/*. Just added my home-partition to /etc/crypttab and my raids to /etc/mdadm.conf ... else I let genfstab generate my /etc/fstab.
My /boot/grub/grub.cfg.new:
http://pastebin.com/PXGY6GrN
Hope you might help me
Best Regards
RubenThanks for your hint, the line with "out of memory" and following are gone now.
The "grub-install --target=i386-pc --recheck /dev/sdb" outputs the following:
grub-install: warning: Couldn't find physical volume '(null)'. Some modules may be missing from core image...
grub-install: warning: Couldn't find physical volume '(null)'. Some modules may be missing from core image...
grub-install: error: cannot open '/usr/lib/grub/i386-pc/msdos.mod': No such file or directory. -
Grub cannot detect Windows 8 partition (Yields error)
Hi! I have installed Archlinux in my Samsung ATIV Book 4.
sudo blkid
yields,
/dev/sda2: LABEL="Recovery" UUID="648265F58265CBDC" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="594f6bb6-b7f3-4663-8f77-f9473da45702"
/dev/sda5: UUID="30D66A21D669E814" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="df174719-57b3-4d9b-982c-536f33faac55"
/dev/sda8: LABEL="Metanoia" UUID="1c886c4c-d6f4-4a9f-8f42-082abb95dccd" TYPE="xfs" PARTUUID="8b16bd95-1858-4395-a92a-69817e318469"
/dev/sda1: PARTLABEL="Basic data partition" PARTUUID="067cfb82-ff81-4398-9b66-09821a442c0f"
/dev/sda3: UUID="7467-9968" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="ba5109ac-f01c-4838-9334-0ef9c667cb2f"
/dev/sda4: PARTLABEL="Microsoft reserved partition" PARTUUID="1de2e683-b553-4bba-99b9-b67350177d3d"
/dev/sda6: UUID="b1554842-1ae8-40bc-8422-abe9a412ce95" TYPE="ext4" PARTLABEL="Anoia" PARTUUID="19a1c96d-f1ed-4d43-ba39-b7227503d3cf"
/dev/sda7: UUID="2d51872f-57af-4523-bd9a-c42b2f25eeec" TYPE="jfs" PARTLABEL="Pronoia" PARTUUID="704783d2-0630-4297-83fa-da9daef22dfc"
I have disabled secure/fast boot. Have installed dosfstools, mtools, and ntfs-3g.
My fstab is
UUID=b1554842-1ae8-40bc-8422-abe9a412ce95 / ext4 rw,relatime,data=ordered 0 1
# /dev/sda7
UUID=2d51872f-57af-4523-bd9a-c42b2f25eeec /home jfs rw,relatime 0 2
# /dev/sda3
UUID=7467-9968 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
bootmgfw.efi is at /boot/EFI/Microsoft/Boot/bootmgfw.efi
I have installed both archlinux and Windows in UEFI-GPT mode.
When I followed Wiki instructions, and tried to regenerate grub, I receive
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initramfs image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
No volume groups found
Found Windows Boot Manager on /dev/sda3@/EFI/Microsoft/Boot/bootmgfw.efi
error: out of memory.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 216
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
done
What should I do to dual boot with Windows?
My /etc/grub.d/40-custom file is
#!/bin/sh
exec tail -n +3 $0
# 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.
if [ "${grub_platform}" == "efi" ]; then
menuentry "Microsoft Windows Vista/7/8/8.1 UEFI-GPT" {
insmod part_gpt
insmod fat
insmod search_fs_uuid
insmod chain
search --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 7467-9968
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
fi
/boot/grub/grub.cfg is this
When I select give Windows the highest priority, I receive a grub error. (When I manually try to load Windows from UEFI shell using fs0:\EFI\Microsoft\Boot\bootmgfw.efi or bootx64.efi, I receive "error: file '/boot/grub/x86_64-efi/normal.mod' not found. Entering rescue mode...
grub rescue >")
I know I the Windows 8 bootloader is there because I can boot into Windows from Grub if I install Ubuntu and run boot-repair.
Tried this as well but nothing changes.
Here is my /etc/default/grub
Last edited by celebrimbor (2014-04-17 12:10:27)Thanks Visruth. I managed to get the Windows 8.1 up and running without the the recovery partition.
On another topic, on the previous Windows 8.1 system. (before I deleted and reinstalled it, I downloaded recovery to a usb flash drive. THe RECOVERYflash drive contains 3 foldes named boot, efi and sources and also two files in the root diectory of the RECOVERYusb flash drive named bootmgr and bootmgr.efi. How would I use these files and folders, (for future reference)? -
[Unsolved, closed] Grub not showing other kernel (linux-lts)
Hi,
Stuck with Grub not showing other kernel, started with willing to keep two kernels.
grub config file shows both kernels correctly but still not appearing at boot (it's like pale black/blue, seems I am stuck with grub legacy? tried reinstallation etc but didn't work):
Boot menu
Arch Linux
Arch Linux Fallback
HDT
Reboot
Power
Sorry can't produce screenshot.
Disk info
Device Type
/dev/sda1 Linux filesystem
/dev/sda2 Linux swap
/dev/sda3 Linux home
Note: gparted shows 'legacy_boot' flag on /sda1
Config/files/output are:
# update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/initramfs-linux-lts.img
Found fallback initramfs image: /boot/initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
No volume groups found
done
# 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_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 c5349960-1eb2-4af6-a5c0-6b4356da4ae1
else
search --no-floppy --fs-uuid --set=root c5349960-1eb2-4af6-a5c0-6b4356da4ae1
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/01_grub-customizer_menu_color_helper ###
### END /etc/grub.d/01_grub-customizer_menu_color_helper ###
### BEGIN /etc/grub.d/10_linux_proxy ###
menuentry "Arch Linux" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c5349960-1eb2-4af6-a5c0-6b4356da4ae1' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 c5349960-1eb2-4af6-a5c0-6b4356da4ae1
else
search --no-floppy --fs-uuid --set=root c5349960-1eb2-4af6-a5c0-6b4356da4ae1
fi
echo 'Loading Linux linux-lts ...'
linux /boot/vmlinuz-linux-lts root=UUID=c5349960-1eb2-4af6-a5c0-6b4356da4ae1 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-lts.img
menuentry "Arch Linux, with Linux linux-lts" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-c5349960-1eb2-4af6-a5c0-6b4356da4ae1' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 c5349960-1eb2-4af6-a5c0-6b4356da4ae1
else
search --no-floppy --fs-uuid --set=root c5349960-1eb2-4af6-a5c0-6b4356da4ae1
fi
echo 'Loading Linux linux-lts ...'
linux /boot/vmlinuz-linux-lts root=UUID=c5349960-1eb2-4af6-a5c0-6b4356da4ae1 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-lts.img
menuentry "Arch Linux, with Linux linux-lts (fallback initramfs)" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-fallback-c5349960-1eb2-4af6-a5c0-6b4356da4ae1' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 c5349960-1eb2-4af6-a5c0-6b4356da4ae1
else
search --no-floppy --fs-uuid --set=root c5349960-1eb2-4af6-a5c0-6b4356da4ae1
fi
echo 'Loading Linux linux-lts ...'
linux /boot/vmlinuz-linux-lts root=UUID=c5349960-1eb2-4af6-a5c0-6b4356da4ae1 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-lts-fallback.img
submenu "Advanced options for Arch Linux"{
menuentry "Arch Linux, with Linux linux" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-c5349960-1eb2-4af6-a5c0-6b4356da4ae1' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 c5349960-1eb2-4af6-a5c0-6b4356da4ae1
else
search --no-floppy --fs-uuid --set=root c5349960-1eb2-4af6-a5c0-6b4356da4ae1
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=c5349960-1eb2-4af6-a5c0-6b4356da4ae1 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/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-c5349960-1eb2-4af6-a5c0-6b4356da4ae1' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 c5349960-1eb2-4af6-a5c0-6b4356da4ae1
else
search --no-floppy --fs-uuid --set=root c5349960-1eb2-4af6-a5c0-6b4356da4ae1
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=c5349960-1eb2-4af6-a5c0-6b4356da4ae1 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-fallback.img
### END /etc/grub.d/10_linux_proxy ###
### 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+ ###
cat /etc/default/grub shows:
GRUB_DEFAULT="0"
GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
# 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"
Last edited by jackpot (2014-08-20 07:53:27)clfarron4 wrote:Did you install os-prober? Try running that and then running the other commands.
Yes, did. Same result.
Sanity Check: Is it booting from LiveUSB/CD? I would not expect HDT/Reboot or Power Off entries from a generated grub config. I would expect those entries from a LiveUSB/CD.
From system itself, but tried all options (I knew) like 1) using fallback to install LTS and run commands, 2) live-CD, 3) kernel parameter systemd.unit etc
No worries, I am giving up on issue for some time.
EDIT:
Thanks
Last edited by jackpot (2014-08-20 11:14:32) -
Update-grub (grub-mkconfig -o /boot/grub/grub.cfg)
okay so i use a bash script to generate my grub config its just an alias to grub-mkconfig -o /boot/grub/grub.cfg but with the last update (today) i am now getting this
[fennectech@FennecNET_Mobile ~]$ sudo update-grub
Generating grub configuration file ...
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
done
i am really worried not sure what this means
EDIT______
[fennectech@FennecNET_Mobile ~]$ sudo update-grub
[sudo] password for fennectech:
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
done
[fennectech@FennecNET_Mobile ~]$
now this is after a reboot
Last edited by fennectech (2014-07-08 18:27:09)Not a Sysadmin issue, moving to NC...
-
Grub uses wrong UUID and cannot create config file
I've tried performing an installation to a USB drive as per the wiki. Everything works up until I try to boot and grub tries to load the wrong UUID for my / filesystem.
My next step was to chroot back into the USB install and manually change the UUID to the correct one. Odd, as others have pointed out in this thread
the grub-mkconfig command should detect the correct UUID if run from within arch-chroot.
Anyway, after changing the UUID in /boot/grub/grub.cfg and trying to regenerate the config file with `grub-mkconfig -o /boot/grub/grub.cfg` I noticed the file had not changed. This is because the command is exiting successfully, but isn't actually writing any file. I deleted the file and tried the command again to be sure. No new file.
Next I booted into grub, using the config generated with the wrong UUID, and dropped to the shell using `c` -- I was able to load my install just fine using
set root=(hd0,gpt2)
linux /vmlinuz-linux root=/dev/sdb3 ro
initrd /initramfs-linux.img
boot
From there I tried removing the bad config file and recreating it using the `grub-mkconfig -o /boot/grub/grub.cfg` command... no dice. Does anyone know what is going on? At the least the command should tell me that it is failing, no?Attached is the output of `grub-mkconfig` running from the chroot.
root@myhost# 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
if loadfont unicode ; 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_archlinux ### -
[SOLVED] Generated grub file contains syntax error
I haven't touched any of /etc/default/grub and /etc/grub.d/*
Here's generated file containing syntax errors:
http://pastebin.kde.org/p39g742cg/kn73gf
Last edited by dlh (2013-12-09 18:59:57)Well the errors show up when:
grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux-ck
Found initrd image: /boot/initramfs-linux-ck.img
Found Windows 8 (loader) on /dev/sda1
error: out of memory.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 159
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.done -
Can't chainload GRUB core.img from syslinux
Hello everybody,
I am trying to chainload GRUB core.img from Syslinux. When I select the entry from the Syslinux menu, it says: core.img: invalid argument. I have not yet edited the GRUB configurations to my likings. My arguments are:
LABEL grub
MENU LABEL GRUB 2
LINUX /boot/grub/i386-pc/core.img
APPEND root=/dev/sda1 rw
What am I doing wrong?Please read the wiki article, it has an example for chainloading GRUB
https://wiki.archlinux.org/index.php?ti … ainloading -
[SOLVED] Grub boots to rescue mode err: unknown filesystem every drive
So I installed Arch and it all seemed to go reasonably well (well, had a little trouble installing GRUB to begin with, but I think that's just because I needed a BIOS boot partition at the start of the drive). I installed it onto a 4TB I have, which due to its size has a GPT partition table even though my mobo (Gigabyte GA-P67A-UD4-B3, don't think it matters though) uses a regular old BIOS. Initially it was two partitions, the Microsoft reserved partition then a big NTFS data partition. I shrunk the NTFS partition and then made (in this order on the disk, starting at third) an ext4 partition for /boot, a swap partition, and a big btrfs partition (in which I created subvolumes for /, /etc, /home and /var). GRUB wouldn't install (I forgot the exact error) but what I could find suggested it was because there needed to be room for it at the start of the disk, so I deleted the Microsoft reserved partition (Windows is installed on an SSD, and its bootloader is on another hard drive entirely, so I didn't think I needed it) and created an empty partition with the right code using gdisk, then I could install GRUB to the 4TB HDD.
Unfortunately, when I try to boot into GRUB it immediately comes up with error: unknown filesystem and dumps me at the GRUB rescue prompt. Using ls, I can see my HDDs and their partitions, but whenever I try to use (for example) ls (hd0,gpt3)/ - which I think should probably be the ext4 boot partition, but it does this for everything - it just says error: unknown filesystem again.
This seems pretty close to (if not exactly the same as) my problem, so I tried what he suggested, but when I tried to run the command he says worked, (grub-install --recheck --disk-module=native /dev/sda) - and don't worry, I didn't do that blindly, I know /dev/sda is my 4TB HDD - I just get the error grub-install: --disk-module: (PROGRAM ERROR) Option should have been recognized!?. So I'm all out of ideas and I've been trying for a few hours. Please help me, before I go insane... more insane. I can boot the USB drive I used to install Arch and chroot into my installation, but I haven't found a way to actually boot the installation yet.
SOLVED: Apparently the partition I was using for /boot was too far back on the drive (past the first 2TB). When I shuffled partitions around so that the /boot partition was near the start of the drive (it starts at sector 2048 now!) that seemed to fix it.
Last edited by Slashee the Cow (2015-04-12 15:36:51)Tried using insmod btrfs in the grub rescue shell last night. Didn't work, can't remember if the insmod command itself gave me an error or whether it still couldn't see any files or anything. Tried it again today, but that was after I converted /dev/sda3 back to ext4 and mounted it at /boot (since it being ext2 wasn't working, and not using it wasn't working, so I figure what's the harm) and I just got error: unknown filesystem.
Anyway: using grub-install from outside chroot seems to work (still can't use --disk-module), but grub-mkconfig just generates this:
# 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 ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root ec4cf3cd-d72d-4988-a2ce-421f45d52824
else
search --no-floppy --fs-uuid --set=root ec4cf3cd-d72d-4988-a2ce-421f45d52824
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 ###
### 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+ ###
if [ "${grub_platform}" == "pc" ]; then
menuentry "Memory Tester (memtest86+)" --class memtest86 --class gnu --class tool {
search --fs-uuid --no-floppy --set=root ec4cf3cd-d72d-4988-a2ce-421f45d52824
linux16 /boot/memtest86+/memtest.bin
fi
### END /etc/grub.d/60_memtest86+ ###
I'm not an expert on GRUB configuration files, but I figured that even if that didn't just boot me straight to the rescue shell, it wasn't going to boot anything... other than memtest86+ maybe. So I went back into chroot and run grub-mkconfig and it generated this:
# 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_gpt
insmod btrfs
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 b21e6211-5e7a-4769-9f53-b9b5d554a242
else
search --no-floppy --fs-uuid --set=root b21e6211-5e7a-4769-9f53-b9b5d554a242
fi
font="/root/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-b21e6211-5e7a-4769-9f53-b9b5d554a242' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 184916fd-57a7-48cf-858e-93a5d339ade2
else
search --no-floppy --fs-uuid --set=root 184916fd-57a7-48cf-858e-93a5d339ade2
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=b21e6211-5e7a-4769-9f53-b9b5d554a242 rw rootflags=subvol=root quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-b21e6211-5e7a-4769-9f53-b9b5d554a242' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-b21e6211-5e7a-4769-9f53-b9b5d554a242' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 184916fd-57a7-48cf-858e-93a5d339ade2
else
search --no-floppy --fs-uuid --set=root 184916fd-57a7-48cf-858e-93a5d339ade2
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=b21e6211-5e7a-4769-9f53-b9b5d554a242 rw rootflags=subvol=root 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-b21e6211-5e7a-4769-9f53-b9b5d554a242' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 184916fd-57a7-48cf-858e-93a5d339ade2
else
search --no-floppy --fs-uuid --set=root 184916fd-57a7-48cf-858e-93a5d339ade2
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=b21e6211-5e7a-4769-9f53-b9b5d554a242 rw rootflags=subvol=root 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 ###
menuentry 'Windows Vista (loader) (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-4E94BAB294BA9C41' {
insmod part_gpt
insmod ntfs
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 4E94BAB294BA9C41
else
search --no-floppy --fs-uuid --set=root 4E94BAB294BA9C41
fi
chainloader +1
menuentry 'Windows Vista (loader) (on /dev/sde1)' --class windows --class os $menuentry_id_option 'osprober-chain-CEF01053F010445D' {
insmod part_msdos
insmod ntfs
set root='hd4,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos1 --hint-efi=hd4,msdos1 --hint-baremetal=ahci4,msdos1 CEF01053F010445D
else
search --no-floppy --fs-uuid --set=root CEF01053F010445D
fi
chainloader +1
menuentry 'Windows Vista (loader) (on /dev/sde5)' --class windows --class os $menuentry_id_option 'osprober-chain-4E94BAB294BA9C41' {
insmod part_msdos
insmod ntfs
set root='hd4,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos5 --hint-efi=hd4,msdos5 --hint-baremetal=ahci4,msdos5 4E94BAB294BA9C41
else
search --no-floppy --fs-uuid --set=root 4E94BAB294BA9C41
fi
chainloader +1
### 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+ ###
Still didn't work though.
I don't know grub config, but is the UUID specified in
linux /vmlinuz-linux root=UUID=b21e6211-5e7a-4769-9f53-b9b5d554a242 rw rootflags=subvol=root quiet
supposed to be the UUID for /boot or /? Because the UUID there is for the btrfs partition being mounted at / (which I guess would explain why it has the correct subvol listed, which I'm not sure if it's necessary, given that should be the default subvolume). So... that's probably alright (just something that stood out to me).
As for installing grub on another disk: I suppose I could try, though I'd rather keep it on one drive if I can (sometimes it gets complicated enough having Windows and my Windows bootloader on different drives... I should probably try moving the Windows bootloader to the SSD where Windows is installed. Would it matter which drive? The options are:
sda: 4TB, GPT table, the one I'm having problems with now
sdb: 2TB, MBR table, nothing in boot sector AFAIK
sdc: 240GB SSD, GPT table, would rather not use it since Windows is installed on there, even if its bootloader isn't
sdd: 1TB, MBR table, nothing in boot sector AFAIK
sde: 500GB, MBR table, has the Windows bootloader so I'd rather not mess that up (although given it's the smallest and I have no free SATA ports, it'll be next to go when I need more space, so I might want to move the bootloader)
(sdf and sdg which appear in lsblk earlier are just USB flash drives, and I'd rather not have to rely on having to use one of them to boot Linux).
As for repartitioning /dev/sda: as long as I can do it non-destructively, sure. Well I mean non-destructively for the NTFS partition, which is mostly full of Steam games (and I might have enough room on other drives and portable drives to keep the rest safe), but on my crappy Australian internet connection (aren't they all) it'd probably take me a couple of weeks to redownload them. I don't mind if I have to get rid of the Linux partitions, I already tried going through the install again once before to try to get it to work, another time isn't going to matter. So I guess I could try using gparted to delete the Linux partitions, move the NTFS partition to the end of the disk, and recreate the Linux partitions in front of it (although moving that much data might take a while, so I'd probably want to do it overnight). For reference, right now it's:
128MB of unformatted space (where the Microsoft reserved partition was, but now it's flagged as a BIOS boot partition, even though it's far bigger than it needs to be for that, I didn't feel like moving the other partitions back just to claim less than 128MB)
~2.7TB NTFS data partition (important)
~1GB ext4 /boot partition
8GB swap partition
~1TB btrfs partition with subvolumes mounted at /, /home, /etc and /var -
New Install Won't boot after GRUB
I have been using ArchBang for the past year and a half so I finally thought that I knew enough about Linux to try installing a true Arch Linux system.
I followed the beginner instructions carefully and was able to successfully install my system (or at least I thought) and GRUB. I am currently running my system on a Dell inspiron with two separate hard drives. The primary drive is the one I am trying to install Arch on while I have Windows 7 installed on the second drive.
The drive I installed Arch on is /dev/sde. I think that I successfully installed GRUB given that when I boot my computer it goes into GRUB and shows both my Arch Linux install and my Windows 7 system and when I select Windows 7 in GRUB it successfully boots.
But when I selected my Arch install in GRUB the system does not boot. It just shows:
/dev/sda1: clean, 31087/3751936 files, 478966/15000685 blocks
and then I am left with a blinking cursor and after a few minutes I get:
Welcome to emergency mode. Use "systemctl default" or ^D to enter default mode.
Give root password for maintance:
Anyone one how I fix this? Do I need to reinstall? As I said before I didn't receive any errors during the install and GRUB seems to be working correctly. Please remember that I am a newbie but please help!Trilby wrote:
No you don't need to reinstall, you do need to fix your grub configuration though. It sounds like it is not properly pointing to the root partition.
Post your grub config and your partitioning scheme.
Partition Scheme from lsblk output:
Name MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931G 0 disk
sda1 8:1 0 57G 0 disk /
sda2 8:2 0 7G 0 disk
sda3 8:3 0 866G 0 disk
sdb 8:16 0 111G 0 disk
sdb 1 8:17 0 111G 0 disk
sr0 11:0 1 1024M 0 disk
I don't now if this output of the partition table is what you want given that the lsblk is the only command I am familiar with. The sdb disk is where the windows install is.
Here is the /boot/grub/grub.cfg file:
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
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}"
saved_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 ext2
set root='hd4,msdos1'
if [x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos1 --hint-efi=hd4,msdos1 --hint-baremetal=ahci4, msdos1 9fd0e01-89b1-494c-908f-e89db34d80e0
else
search --no-floppy --fs-uuid --set=root 9fd0e01-89b1-494c-908f-e89db34d80e0
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
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch GNU/Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-9fd0e01-89b1-494c-908f-e89db34d80e0' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd4,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos1 --hint-efi=hd4,msdos1 --hint-baremetal=ahci4, msdos1 9fd0e01-89b1-494c-908f-e89db34d80e0
else
search --no-floppy --fs-uuid --set=root 9fd0e01-89b1-494c-908f-e89db34d80e0
fi
echo 'Loading Linux core repo kernel ...'
linux /boot/vmlinux-linux root=UUID=9fd0e01-89b1-494c-908f-e89db34d80e0 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/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/20_memtext86+ ###
### END /etc/grub.d/20_memtext86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sdf1)' --class windows --class os $menuentry_id_option 'osprober-chain-44F084A6F0849FB2' {
insmod part_msdos
insmod ntfs
set root="hd5,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos1 --hint-efi=hd4,msdos1 --hint-baremetal=ahci4, msdos1 44F084A6F0849FB2
else
search --no-floppy --fs-uuid --set=root 44F084A6F0849FB2
fi
chainloader +1
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This files 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 ###
Last edited by johnnymike (2012-10-15 01:52:09) -
I tried to install archlinux and almost everything went fine , until the moment i rebooted and was unable to access the new installation. Actually grub didn't install at all, during the installation i was presented with the grub configuration file, which i edited, but when i closed it threw me back to the install screen without any more questions. So i tried again, but the same thing happened it did not ask where to install it (mbr or elsewhere) so i had no other option but to reboot. Apparantely grub was not installed, so i booted from the CD and tried the arch root=/dev/sdb7 but at the end of the boot process it gives an error message: Kernel panic: not syncing or something like that. And just a few lines before that bash reported that root=/dev/sb7 is an unknown command. The strange thing is that during booting i saw a message saying that the partition i installed arch on was successfully mounted. I'm a bit confused, why grub refuses to install , and beyond that why i'm unable to boot even from the CD. With the old releases (7, 7.2) arch detected my hdd's as hda and hdb, now they are sda and sdb is this related to the problem ( i have ide drives) ? Theres is something more, when i try to setup the root pass from the install menu, i get stuck in an endless loop, and the screen is flooded with the message "there is no such user" (smth like that) .
Well, i thought about installing an older release of Arch (Ark ), but i would be trading one problem for another, because i had some problems with grub, which installed , but i was unable to boot because of the change between the booting images from kernel 2.4 to 2.6. Anyway i'm not giving up Noriko, thanks for your advice
-
Hi. just recently I decided to try out arch linux. I have heard great things about this distribution, but havent been able to try it out. several times i have followed extensive guides on installing arch linux but have always gotten stuck at installing the grub boot loader. it gives an error mesage saying that embedding isnt possible with ext2 filesystem, at no instance have i used the ext2 filesystem. what am i missing? any help willl be greatly appreciated.
dgre6133, you should chroot into the system and check the logs. It is better to provide actual error output. Are you sure it was hex?
You need to boot back into the install medium. Then, mount the partitions and chroot in, similar to what you did during install. Read up on chroot in the wiki if you have questions. Once you do this, check the logs and give us the actual error messages. Also, post /etc/fstab and the output of
lsblk -f
edit: post the grub configuration as well, grub.cfg (post 420.....smirk)
Edit2: Also, you've managed to install Grub, so you might want to end this thread as solved and split this new error off into its own thread. Report the new problem post to a moderator with this request if you want to do that.
Last edited by nullified (2015-03-27 05:08:43) -
Boot Error with grub installed...no debug instructions
* Quick Intro / About *
Hello everybody... im new to linux in general and arch caught my eye since i have an interest in learning programming... i figured arch's documentation was better than that supplied for ubuntu since it's more in depth and has the core utilities needed to get a base system running with in-depth explanations (which i like). trust me when i say, i have read almost all of the arch documentation more than
a few dozen times and have completed this successfully before...
* My Problem *
I installed my copy of Arch with the Core Utilities package and followed the wiki guides to the tee. i've done several test installations with VMware and Virtualbox OSE and decided to do it for real on my Toshiba Laptop Satellite l305d-s5895... all my hardware is currently supported by the majority of the Linux Distro's (i did my homework). I am attempting to do a dual boot with Arch and Windows
the "/etc/rc.conf" file
Localization -> default
Hardware -> default
Network ->
HOSTNAME="myhostname"
the "/etc/hosts" file is automatically adjusted during install
eth0="dhcp"
INTERFACES=(eth0)
gateway="dhcp"
ROUTES=(!gateway)
Deamons -> default
filesystem setup
win7 -> hd0,0 sda1 primary
arch -> hd0,1 sda2 primary
swap -> hd0,1 sda5 logical
cdrom -> sbd (device is auto-mounted)
/dev/sda (MBR / Single HDD Device)
After Grub Configuration ...these are my options to select for grub mount point
/dev/sda
/dev/sbd
/dev/sda
/dev/sda1
/dev/sda2
/dev/sda5
/dev/sbd
I always select /dev/sda at the very top of the list...
the "/boot/grub/menu.lst" file
Gen Config ->
timeout 5
default 0
color light-blue/black light-cyan/blue
Boot sections ->
# (0) Arch Linux
title KDM
root (hd0,1)
kernel /boot/vmlinuz26 root=/dev/sda2 ro vga=ask
initrd /boot/kernel26.img
# (1) Fallback (default settings)
# (2) Windows
title Windows 7
rootnoverify (hd0,0)
#makeactive #win7 does not require this
chainloader +1
* the Error I recieve *
At boot and during reboot, unless i have a boot medium, this is what i am prompted with...
Intel UNDI, PXE-2.1 (build 082)
Copyright (C) '97 - '00 Intel Corp.
For Realtek RTL8101E/8102E PCI-E Ethernet Controller v1.05 (071227)
PXE-E61: Media test failure, check cable
PXE-M0F: Exiting PXE ROM.
No bootable device -- insert boot disk and press any key
any help would be amazing! i have no idea why at boot the computer searches for a network connection
instead of the GRUB! >.<
i am able to boot however with the Arch Live Disc and access my filesystem for both Arch and Windows 7
and resume normal use!well, just as an update... i believe it is a software issue... i wiped my whole HDD with gparted and set the partitions with Arch Live Core Install medium and GRUB worked perfectly... i created an NTFS partition as well for Win 7... hopefully the Win Installer wont overwrite GRUB and use its own bootloader. i was re-reading an area of the wiki and found...
- GRUB must be installed on the MBR (first sector of the hard disk), or the first partition of the first storage device to be recognized by most BIOS's.
source: https://wiki.archlinux.org/index.php/Gr … stallation
hopefully i can just reinstall GRUB if needed with the Live Disc and i can boot win7 and arch like that...
if an suggestions, or comments, please...would be nice.
Last edited by xovertheyearsx (2011-03-11 05:23:05)
Maybe you are looking for
-
Table Names for the Contract Budget(PO value) and Invoiced Budget
Hello Team, Can you please share your ides on the below two queries 1. How can we Identify the Contract Budget from the P.O Number 2. How can we know how much of it has been Invoiced Please provide the Table Names also if you know, where these values
-
RSS Reader With JDeveloper 11.1.1.3
Hi All, I am developing an application which requires to read rss feeds from selected sites and display on . I went through this link http://www.oracle.com/technetwork/developer-tools/jdev/urldatacontrol-099677.html without much success. Anyone who k
-
hi folks, can u share the TABLE NAME FOR ASSET MASTER Thanks in Adv Regards, Varma
-
Using an output statement for a delete w/o affecting any oracle error msg
Dear all; I have a delete statement similar to this below delete from tbl_one t where t.tbl_one_location = location and location not in (select distinct p.issuearea from tbl_two p);the delete statement is within a package, however what i would
-
I am using time capusle and have my husbands Windows 7 PC and my MacBook Pro connected to it. I just purchased a HP LaserJet P1606dn and have connected and printed to it succesfully using Bonjour on my MacBook. I have connected through Bonjour to the