通过现有安装在第二个硬盘驱动器上安装 Arch Linux 后
Arch 维基,我在步骤 2.1,它告诉我遵循常规安装指导。从那里,我完成了基本软件包的安装,并能够arch-chroot
进入新的安装。
来自GRUB 维基页面,我安装了os-prober
,运行了grub-mkconfig -o /boot/grub/grub.cfg
,它能够在日志中检测到新的 Arch 安装。
然后,我重新启动并能够在 GRUB 菜单中看到新安装。然而,再次重新启动后,我被放入错误屏幕并grub_calloc not found
给出grub_rescue
控制台。
从 Arch 安装 USB 启动后,我可以发布以下信息:
> fdisk -l
Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Disk model: KINGSTON SA400S3
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: 0x24c99faf
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 104859647 104857600 50G 83 Linux
/dev/sda2 104859648 138414079 33554432 16G 83 Linux
/dev/sda3 138414080 468862127 330448048 157.6G 83 Linux
Disk /dev/sdb: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Disk model: KINGSTON SA400S3
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: C9F905D1-9A58-4E1E-8114-E7446C863C95
Device Start End Sectors Size Type
/dev/sdb1 2048 1023999 1021952 499M Windows recovery environment
/dev/sdb2 1024000 1228799 204800 100M EFI System
/dev/sdb3 1228800 1261567 32768 16M Microsoft reserved
/dev/sdb4 1261568 468860927 467599360 223G Microsoft basic data
Disk /dev/sdc: 447.1 GiB, 480103981056 bytes, 937703088 sectors
Disk model: KINGSTON SA400S3
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: 0xed8d6cb0
Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 314574847 314572800 150G 83 Linux
/dev/sdc2 314574848 381683711 67108864 32G 83 Linux
/dev/sdc3 381683712 937703087 556019376 265.1G 83 Linux
/dev/sda
是我原来的 Arch 安装所在的位置,也是/dev/sdc1
我新安装的所在。是位于sdx1
哪里。/mnt
grub.cfg
这是通过新的 Arch 安装新生成的。
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
else
search --no-floppy --fs-uuid --set=root 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
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=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux linux-nzxt' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-nzxt-advanced-82c7a2ef-a680-4300-b9b3-67a9df9c5e5e' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
else
search --no-floppy --fs-uuid --set=root 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
fi
echo 'Loading Linux linux-nzxt ...'
linux /boot/vmlinuz-linux-nzxt root=UUID=82c7a2ef-a680-4300-b9b3-67a9df9c5e5e rw cgroup_memory=1 cgroup_enable=memory swapaccount=1 quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-nzxt.img
}
menuentry 'Arch Linux, with Linux linux-nzxt (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-nzxt-fallback-82c7a2ef-a680-4300-b9b3-67a9df9c5e5e' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
else
search --no-floppy --fs-uuid --set=root 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
fi
echo 'Loading Linux linux-nzxt ...'
linux /boot/vmlinuz-linux-nzxt root=UUID=82c7a2ef-a680-4300-b9b3-67a9df9c5e5e rw cgroup_memory=1 cgroup_enable=memory swapaccount=1 quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-nzxt-fallback.img
}
menuentry 'Arch Linux, with Linux linux-lts' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-82c7a2ef-a680-4300-b9b3-67a9df9c5e5e' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
else
search --no-floppy --fs-uuid --set=root 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
fi
echo 'Loading Linux linux-lts ...'
linux /boot/vmlinuz-linux-lts root=UUID=82c7a2ef-a680-4300-b9b3-67a9df9c5e5e rw cgroup_memory=1 cgroup_enable=memory swapaccount=1 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-82c7a2ef-a680-4300-b9b3-67a9df9c5e5e' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
else
search --no-floppy --fs-uuid --set=root 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
fi
echo 'Loading Linux linux-lts ...'
linux /boot/vmlinuz-linux-lts root=UUID=82c7a2ef-a680-4300-b9b3-67a9df9c5e5e rw cgroup_memory=1 cgroup_enable=memory swapaccount=1 quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-lts-fallback.img
}
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-82c7a2ef-a680-4300-b9b3-67a9df9c5e5e' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
else
search --no-floppy --fs-uuid --set=root 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=82c7a2ef-a680-4300-b9b3-67a9df9c5e5e rw cgroup_memory=1 cgroup_enable=memory swapaccount=1 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-82c7a2ef-a680-4300-b9b3-67a9df9c5e5e' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
else
search --no-floppy --fs-uuid --set=root 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=82c7a2ef-a680-4300-b9b3-67a9df9c5e5e rw cgroup_memory=1 cgroup_enable=memory swapaccount=1 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/25_bli ###
if [ "$grub_platform" = "efi" ]; then
insmod bli
fi
### END /etc/grub.d/25_bli ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Arch Linux (on /dev/sdc1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux-lts--35cf6588-879a-44c9-a971-2b113ddf3f3a' {
savedefault
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 35cf6588-879a-44c9-a971-2b113ddf3f3a
else
search --no-floppy --fs-uuid --set=root 35cf6588-879a-44c9-a971-2b113ddf3f3a
fi
linux /boot/vmlinuz-linux-lts root=UUID=35cf6588-879a-44c9-a971-2b113ddf3f3a rw loglevel=3 quiet
initrd /boot/initramfs-linux-lts.img
}
menuentry 'Arch Linux, with Linux linux-lts (on /dev/sdc1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux-lts--35cf6588-879a-44c9-a971-2b113ddf3f3a' {
savedefault
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 35cf6588-879a-44c9-a971-2b113ddf3f3a
else
search --no-floppy --fs-uuid --set=root 35cf6588-879a-44c9-a971-2b113ddf3f3a
fi
linux /boot/vmlinuz-linux-lts root=UUID=35cf6588-879a-44c9-a971-2b113ddf3f3a rw loglevel=3 quiet
initrd /boot/initramfs-linux-lts.img
}
menuentry 'Arch Linux, with Linux linux-lts (fallback initramfs) (on /dev/sdc1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux-lts--35cf6588-879a-44c9-a971-2b113ddf3f3a' {
savedefault
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 35cf6588-879a-44c9-a971-2b113ddf3f3a
else
search --no-floppy --fs-uuid --set=root 35cf6588-879a-44c9-a971-2b113ddf3f3a
fi
linux /boot/vmlinuz-linux-lts root=UUID=35cf6588-879a-44c9-a971-2b113ddf3f3a rw loglevel=3 quiet
initrd /boot/initramfs-linux-lts-fallback.img
}
menuentry 'Arch Linux, with Linux linux (on /dev/sdc1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--35cf6588-879a-44c9-a971-2b113ddf3f3a' {
savedefault
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 35cf6588-879a-44c9-a971-2b113ddf3f3a
else
search --no-floppy --fs-uuid --set=root 35cf6588-879a-44c9-a971-2b113ddf3f3a
fi
linux /boot/vmlinuz-linux root=UUID=35cf6588-879a-44c9-a971-2b113ddf3f3a rw loglevel=3 quiet
initrd /boot/initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs) (on /dev/sdc1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--35cf6588-879a-44c9-a971-2b113ddf3f3a' {
savedefault
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 35cf6588-879a-44c9-a971-2b113ddf3f3a
else
search --no-floppy --fs-uuid --set=root 35cf6588-879a-44c9-a971-2b113ddf3f3a
fi
linux /boot/vmlinuz-linux root=UUID=35cf6588-879a-44c9-a971-2b113ddf3f3a rw loglevel=3 quiet
initrd /boot/initramfs-linux-fallback.img
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
fwsetup --is-supported
if [ "$?" = 0 ]; then
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
fi
fi
### END /etc/grub.d/30_uefi-firmware ###
### 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 ###
我尝试恢复到它grub.cfg
检测到新 Arch 安装之前的状态,但是也不起作用。
#
# 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="${saved_entry}"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
else
search --no-floppy --fs-uuid --set=root 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
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=0
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=0
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux linux-nzxt' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-nzxt-advanced-82c7a2ef-a680-4300-b9b3-67a9df9c5e5e' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
else
search --no-floppy --fs-uuid --set=root 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
fi
echo 'Loading Linux linux-nzxt ...'
linux /boot/vmlinuz-linux-nzxt root=UUID=82c7a2ef-a680-4300-b9b3-67a9df9c5e5e rw cgroup_memory=1 cgroup_enable=memory swapaccount=1 quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-nzxt.img
}
menuentry 'Arch Linux, with Linux linux-nzxt (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-nzxt-fallback-82c7a2ef-a680-4300-b9b3-67a9df9c5e5e' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
else
search --no-floppy --fs-uuid --set=root 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
fi
echo 'Loading Linux linux-nzxt ...'
linux /boot/vmlinuz-linux-nzxt root=UUID=82c7a2ef-a680-4300-b9b3-67a9df9c5e5e rw cgroup_memory=1 cgroup_enable=memory swapaccount=1 quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-nzxt-fallback.img
}
menuentry 'Arch Linux, with Linux linux-lts' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-82c7a2ef-a680-4300-b9b3-67a9df9c5e5e' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
else
search --no-floppy --fs-uuid --set=root 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
fi
echo 'Loading Linux linux-lts ...'
linux /boot/vmlinuz-linux-lts root=UUID=82c7a2ef-a680-4300-b9b3-67a9df9c5e5e rw cgroup_memory=1 cgroup_enable=memory swapaccount=1 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-82c7a2ef-a680-4300-b9b3-67a9df9c5e5e' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
else
search --no-floppy --fs-uuid --set=root 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
fi
echo 'Loading Linux linux-lts ...'
linux /boot/vmlinuz-linux-lts root=UUID=82c7a2ef-a680-4300-b9b3-67a9df9c5e5e rw cgroup_memory=1 cgroup_enable=memory swapaccount=1 quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-lts-fallback.img
}
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-82c7a2ef-a680-4300-b9b3-67a9df9c5e5e' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
else
search --no-floppy --fs-uuid --set=root 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=82c7a2ef-a680-4300-b9b3-67a9df9c5e5e rw cgroup_memory=1 cgroup_enable=memory swapaccount=1 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-82c7a2ef-a680-4300-b9b3-67a9df9c5e5e' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
else
search --no-floppy --fs-uuid --set=root 82c7a2ef-a680-4300-b9b3-67a9df9c5e5e
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=82c7a2ef-a680-4300-b9b3-67a9df9c5e5e rw cgroup_memory=1 cgroup_enable=memory swapaccount=1 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/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 ###
我也尝试grub-install --removable
过本论坛评论,但这会导致install device isn't specified
.
有谁知道如何解决这个问题?
答案1
我grub-install --target=i386-pc /dev/sda
按照这个论坛帖子,它又起作用了。