You are not logged in.
Pages: 1
So I have a fresh installation of the November Arch Linux. The install was done via a USB stick on a HP Pavillion dm4. I re-sized the parent partition which has W7 using the windows tool. I then formatted the partition using the steps listed in the beginners guide. The install seemed fine. Upon booting the new installation on its own it typically hangs at this line:
/dev/sda4: clean, 31593/6406144 files, 648979/25600000
Sometimes if I boot using the fallback option I will get a few more lines commenting that it cannot write the logs, "filesystem read only" "chmod failed"
I tried checking the btmp and wtmp log files and they are empty. There is no boot log file. I presume this is because my system is read only.
My system:
HP Pavillion dm4
Dual booting W7 and Arch. Arch on sda4 partition.
Grub2, auto generated .cfg with a nomodeset option due to the Intel chip-set described in the beginner's guide, otherwise it boots a blank screen
VT turned on in BIOS, otherwise it says KVM is disabled by BIOS
W7 still boots fine. My opinion is the read-only issue is the thing to investigate. What other things should I look into to try and solve this? I am still trying to figure out the easiest way to get the necessary files to post here as well. Any tips are appreciated.
“Man is least himself when he talks in his own person. Give him a mask, and he will tell you the truth.” - Oscar Wilde
Offline
Looking into this issue further it appears that the root directory should be read only during fsck. So the next step is to check my grub install and configuration.
I know that when I installed grub i did not use the --target= option.
“Man is least himself when he talks in his own person. Give him a mask, and he will tell you the truth.” - Oscar Wilde
Offline
The ro kernel parameter is a legacy thing, and is no longer required. In fact, it is actually faster to mount it rw or leave it out entirely. This is because the initramfs actually fscks the filesystem while not even mounted, so if you specify ro, it then mounts the filesystem ro after fsck and then has to remount it rw (though this takes a split second really).
Why don't you boot from the install disc and then fsck the partitions from there to make sure they pass. That can be one of the most basic reasons why a partition will not be able to mount rw. In any case, the installer disc is basically a tool that you will probably continually come back to if you eventually succeed in installing arch.
Offline
So I followed your advice and checked the disks. I fsck the partitions and they were fine.
With the help of a friend, we booted the live disk and connected to the box via ssh. We then mounted the installed system:
mount /dev/sda4 /mnt
After which we used:
systemd nspawn -b -d /mnt
to boot the system. It booted just fine which suggested the issue lies within grub. Checking the grub.cfg file my friend recommended specifically identifying the path to my system rather than using grub's auto-generated config file method which searches for it. <---- I do not completely understand the command issued by grubs generated .cfg file
I edited grub.cfg. Upon booting I lost the GUI for grub. I manually entered the commands from my grub.cfg file and successfully booted the system. I will try to post the comparison of the two different grub.cfg files later. I now am trying to understand why the auto-generated script did not work versus a simple manual change.
EDIT: Here are the files. .auto is the original that did not boot, .cfg boots, but manually only (no GUI). diff output is the difference between the two. Also please excuse my immaturity for renaming the menu entries if you actually read this. I am curious why the auto generated one fails. I am going to look them over line by line myself and see what I can learn.
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
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}"
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,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
else
search --no-floppy --fs-uuid --set=root 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
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 'ryan loves fat cock' {
insmod ext2
insmod gzio
set root='hd0,msdos4'
#set root='ahci0,msdos4'
echo 'core ...' ; sleep 3
linux /boot/vmlinuz-linux root=/dev/sda4 ro loglevel=4
#
#
# ^^^^^^^ without prepended (root-dev) , grub evaluates as follows ...
# first) linux ($root)/boot/vmlinuz-linux root=/dev/sda4 ro loglevel=4
# then) linux (hd0,msdos4)/boot/vmlinuz-linux root=/dev/sda4 ro loglevel=4
# ^^^^^^^^^ this is the line that gets executed from the implicit path above
#
echo 'it workie' ; sleep 3
echo 'initramfs ...'
initrd /boot/initramfs-linux-fallback.img
echo 'Nope, I'm booting now'
}
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-7d418981-2696-4a83-9c8d-d0bddfe3a8cb' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
else
search --no-floppy --fs-uuid --set=root 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
fi
echo 'Loading Linux core repo kernel ...'
linux /boot/vmlinuz-linux root=UUID=7d418981-2696-4a83-9c8d-d0bddfe3a8cb ro quiet nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
menuentry 'Arch GNU/Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-7d418981-2696-4a83-9c8d-d0bddfe3a8cb' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
else
search --no-floppy --fs-uuid --set=root 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
fi
echo 'Loading Linux core repo kernel ...'
linux /boot/vmlinuz-linux root=UUID=7d418981-2696-4a83-9c8d-d0bddfe3a8cb ro quiet nomodeset
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_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-6CEC228CEC22509E' {
insmod part_msdos
insmod ntfs
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 6CEC228CEC22509E
else
search --no-floppy --fs-uuid --set=root 6CEC228CEC22509E
fi
chainloader +1
}
menuentry 'Windows Recovery Environment (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-5EAA7E1DAA7DF1BF' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 5EAA7E1DAA7DF1BF
else
search --no-floppy --fs-uuid --set=root 5EAA7E1DAA7DF1BF
fi
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry 'Windows Recovery Environment (loader) (on /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-chain-4C5C8ED95C8EBD68' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 4C5C8ED95C8EBD68
else
search --no-floppy --fs-uuid --set=root 4C5C8ED95C8EBD68
fi
drivemap -s (hd0) ${root}
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 ###
grub.cfg.auto
#
# 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
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}"
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,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
else
search --no-floppy --fs-uuid --set=root 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
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-7d418981-2696-4a83-9c8d-d0bddfe3a8cb' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
else
search --no-floppy --fs-uuid --set=root 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
fi
echo 'Loading Linux core repo kernel ...'
linux /boot/vmlinuz-linux root=UUID=7d418981-2696-4a83-9c8d-d0bddfe3a8cb ro quiet nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
menuentry 'Arch GNU/Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-7d418981-2696-4a83-9c8d-d0bddfe3a8cb' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
else
search --no-floppy --fs-uuid --set=root 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
fi
echo 'Loading Linux core repo kernel ...'
linux /boot/vmlinuz-linux root=UUID=7d418981-2696-4a83-9c8d-d0bddfe3a8cb ro quiet nomodeset
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_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-6CEC228CEC22509E' {
insmod part_msdos
insmod ntfs
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 6CEC228CEC22509E
else
search --no-floppy --fs-uuid --set=root 6CEC228CEC22509E
fi
chainloader +1
}
menuentry 'Windows Recovery Environment (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-5EAA7E1DAA7DF1BF' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 5EAA7E1DAA7DF1BF
else
search --no-floppy --fs-uuid --set=root 5EAA7E1DAA7DF1BF
fi
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry 'Windows Recovery Environment (loader) (on /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-chain-4C5C8ED95C8EBD68' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 4C5C8ED95C8EBD68
else
search --no-floppy --fs-uuid --set=root 4C5C8ED95C8EBD68
fi
drivemap -s (hd0) ${root}
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 ###
diff output
root@archiso /mnt/boot/grub # diff grub.cfg grub.cfg.alex
81,109d80
<
<
<
< menuentry 'ryan loves fat cock' {
< insmod ext2
< insmod gzio
<
< set root='hd0,msdos4'
< #set root='ahci0,msdos4'
<
< echo 'core ...' ; sleep 3
< linux /boot/vmlinuz-linux root=/dev/sda4 ro loglevel=4
< #
< #
< # ^^^^^^^ without prepended (root-dev) , grub evaluates as follows ...
< # first) linux ($root)/boot/vmlinuz-linux root=/dev/sda4 ro loglevel=4
< # then) linux (hd0,msdos4)/boot/vmlinuz-linux root=/dev/sda4 ro loglevel=4
< # ^^^^^^^^^ this is the line that gets executed from the implicit path above
< #
< echo 'it workie' ; sleep 3
< echo 'initramfs ...'
< initrd /boot/initramfs-linux-fallback.img
<
< echo 'Nope, I'm booting now'
< }
<
<
<
<
Last edited by kd_alex (2012-11-17 00:06:01)
“Man is least himself when he talks in his own person. Give him a mask, and he will tell you the truth.” - Oscar Wilde
Offline
I found a configuration that works. Honestly I still do not understand why, but I am happy to be booting with no issues now. Thanks for the suggestion Woofy. BTW I explicitly stat rw option for booting, otherwise it mounts root as ro. Here is the config that worked for me:
#
# 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
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}"
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,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
else
search --no-floppy --fs-uuid --set=root 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
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-7d418981-2696-4a83-9c8d-d0bddfe3a8cb' {
# load_video
# set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos4'
# if [ x$feature_platform_search_hint = xy ]; then
# search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
# else
# search --no-floppy --fs-uuid --set=root 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
# fi
echo 'Loading Linux core repo kernel ...'
linux /boot/vmlinuz-linux root=/dev/sda4 rw quiet nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
menuentry 'Arch GNU/Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-7d418981-2696-4a83-9c8d-d0bddfe3a8cb' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
else
search --no-floppy --fs-uuid --set=root 7d418981-2696-4a83-9c8d-d0bddfe3a8cb
fi
echo 'Loading Linux core repo kernel ...'
linux /boot/vmlinuz-linux root=UUID=7d418981-2696-4a83-9c8d-d0bddfe3a8cb ro quiet nomodeset
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_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-6CEC228CEC22509E' {
insmod part_msdos
insmod ntfs
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 6CEC228CEC22509E
else
search --no-floppy --fs-uuid --set=root 6CEC228CEC22509E
fi
chainloader +1
}
menuentry 'Windows Recovery Environment (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-5EAA7E1DAA7DF1BF' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 5EAA7E1DAA7DF1BF
else
search --no-floppy --fs-uuid --set=root 5EAA7E1DAA7DF1BF
fi
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry 'Windows Recovery Environment (loader) (on /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-chain-4C5C8ED95C8EBD68' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 4C5C8ED95C8EBD68
else
search --no-floppy --fs-uuid --set=root 4C5C8ED95C8EBD68
fi
drivemap -s (hd0) ${root}
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 ###
“Man is least himself when he talks in his own person. Give him a mask, and he will tell you the truth.” - Oscar Wilde
Offline
Pages: 1