0 Mitglieder und 1 Gast betrachten dieses Thema.
GRUB_DEFAULT=savedGRUB_SAVEDEFAULT=true
Es will nur die zwei ZeilenCode: [Auswählen]GRUB_DEFAULT=savedGRUB_SAVEDEFAULT=trueaus der /etc/default/grub nicht umsetzen.
/etc/default/grub
GRUB_DEFAULT=savedGRUB_SAVEDEFAULT=trueGRUB_TIMEOUT=20GRUB_DISTRIBUTOR='Debian'GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"GRUB_CMDLINE_LINUX=""
cat /etc/default/grub
lsb_release -i -s 2> /dev/null || echo Debian
# If you change this file, run 'update-grub' afterwards to update# /boot/grub/grub.cfg.# For full documentation of the options in this file, see:# info -f grub -n 'Simple configuration'GRUB_DEFAULT=savedGRUB_SAVEDEFAULT=trueGRUB_TIMEOUT=20GRUB_DISTRIBUTOR='Debian'GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"GRUB_CMDLINE_LINUX=""# Uncomment to enable BadRAM filtering, modify to suit your needs# This works with Linux (no patch required) and with any kernel that obtains# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"# Uncomment to disable graphical terminal (grub-pc only)#GRUB_TERMINAL=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=640x480# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux#GRUB_DISABLE_LINUX_UUID=true# Uncomment to disable generation of recovery mode menu entries#GRUB_DISABLE_RECOVERY="true"# Uncomment to get a beep at grub start#GRUB_INIT_TUNE="480 440 1"
Debian
kuehhe1@lm20-test:~$ lsb_release -i -s 2> /dev/null || echo DebianLinuxmint
in den Daphile-Anleitungen steht was von "nicht multiboot" aber andererseits wird genau gesagt, dass wenn man zwei Partitionen mit den Namen "DaphileBoot" und "DaphileData" vorbereitet es sich dann als Chainload einrichtet. Das klappt ja auch ohne Probleme auf meinem neu Aufgesetzten System mit einem Haupt-Linux und Daphile.
9 Multiboot-KonfigurationDas Daphile-Installationstool unterstützt keine Multiboot-Konfigurationen. Mit ein wenig Fachwissen und manueller Arbeit ist es jedoch möglich, auch Daphile für die Einrichtung mehrerer Betriebssysteme zu installieren und zu konfigurieren.9.1 BIOS-BootloaderDie GRUB-Installation im Master Boot Record (MBR) des Laufwerks erfolgt nur, wenn die Daphile-Installation die automatische Partitionierung verwendet und der Benutzer die Option BIOS-Bootloader ausgewählt hat. Daphile installiert jedoch immer den GRUB-Bootloader in der DaphileBoot-Partition, und Sie können Ihren Haupt-Bootloader manuell so konfigurieren, dass der GRUB von der DaphileBoot-Partition kettengeladen wird. Wenn Ihr Haupt-Bootloader beispielsweise auch GRUB ist, lautet der Menüeintrag zum Starten von Daphile über die DaphileBoot-Partition wie folgt: Code: [Auswählen]menuentry "Daphile" {insmod chaininsmod ext2set root=(hd1,3) # 2nd HDD, 3rd partitionchainloader +1}
menuentry "Daphile" {insmod chaininsmod ext2set root=(hd1,3) # 2nd HDD, 3rd partitionchainloader +1}
lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTsda 8:0 0 232,9G 0 disk ├─sda1 8:1 0 500M 0 part ├─sda2 8:2 0 45,2G 0 part ├─sda3 8:3 0 1K 0 part ├─sda4 8:4 0 173,5G 0 part /├─sda5 8:5 0 3,7G 0 part [SWAP]├─sda6 8:6 0 2G 0 part └─sda7 8:7 0 8G 0 part
## DO NOT EDIT THIS FILE## It is automatically generated by grub-mkconfig using templates# from /etc/grub.d and settings from /etc/default/grub#### BEGIN /etc/grub.d/00_header ###if [ -s $prefix/grubenv ]; then set have_grubenv=true load_envfiif [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=trueelse set default="${saved_entry}"fiif [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id"else menuentry_id_option=""fiexport menuentry_id_optionif [ "${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=truefifunction 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=unicodeelseinsmod part_msdosinsmod ext2set 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 0e97f9a5-96ed-4007-9143-569dcf42a9e1else search --no-floppy --fs-uuid --set=root 0e97f9a5-96ed-4007-9143-569dcf42a9e1fi font="/usr/share/grub/unicode.pf2"fiif loadfont $font ; then set gfxmode=auto load_video insmod gfxterm set locale_dir=$prefix/locale set lang=de_DE insmod gettextfiterminal_output gfxtermif [ "${recordfail}" = 1 ] ; then set timeout=30else if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=11 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=11 fifi### END /etc/grub.d/00_header ###### BEGIN /etc/grub.d/05_debian_theme ###insmod part_msdosinsmod ext2set 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 0e97f9a5-96ed-4007-9143-569dcf42a9e1else search --no-floppy --fs-uuid --set=root 0e97f9a5-96ed-4007-9143-569dcf42a9e1fiinsmod pngif background_image /usr/share/desktop-base/futureprototype-theme/grub/grub-4x3.png; then set color_normal=white/black set color_highlight=black/whiteelse set menu_color_normal=cyan/blue set menu_color_highlight=white/bluefi### END /etc/grub.d/05_debian_theme ###### BEGIN /etc/grub.d/10_linux ###function gfxmode { set gfxpayload="${1}"}set linux_gfx_mode=export linux_gfx_modemenuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0e97f9a5-96ed-4007-9143-569dcf42a9e1' { savedefault load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi 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 0e97f9a5-96ed-4007-9143-569dcf42a9e1 else search --no-floppy --fs-uuid --set=root 0e97f9a5-96ed-4007-9143-569dcf42a9e1 fi echo 'Linux 4.19.0-13-amd64 wird geladen …' linux /boot/vmlinuz-4.19.0-13-amd64 root=UUID=0e97f9a5-96ed-4007-9143-569dcf42a9e1 ro quiet echo 'Initiale Ramdisk wird geladen …' initrd /boot/initrd.img-4.19.0-13-amd64}submenu 'Erweiterte Optionen für Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-0e97f9a5-96ed-4007-9143-569dcf42a9e1' { menuentry 'Debian GNU/Linux, mit Linux 4.19.0-13-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-13-amd64-advanced-0e97f9a5-96ed-4007-9143-569dcf42a9e1' { savedefault load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi 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 0e97f9a5-96ed-4007-9143-569dcf42a9e1 else search --no-floppy --fs-uuid --set=root 0e97f9a5-96ed-4007-9143-569dcf42a9e1 fi echo 'Linux 4.19.0-13-amd64 wird geladen …' linux /boot/vmlinuz-4.19.0-13-amd64 root=UUID=0e97f9a5-96ed-4007-9143-569dcf42a9e1 ro quiet echo 'Initiale Ramdisk wird geladen …' initrd /boot/initrd.img-4.19.0-13-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.19.0-13-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-13-amd64-recovery-0e97f9a5-96ed-4007-9143-569dcf42a9e1' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi 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 0e97f9a5-96ed-4007-9143-569dcf42a9e1 else search --no-floppy --fs-uuid --set=root 0e97f9a5-96ed-4007-9143-569dcf42a9e1 fi echo 'Linux 4.19.0-13-amd64 wird geladen …' linux /boot/vmlinuz-4.19.0-13-amd64 root=UUID=0e97f9a5-96ed-4007-9143-569dcf42a9e1 ro single echo 'Initiale Ramdisk wird geladen …' initrd /boot/initrd.img-4.19.0-13-amd64 } menuentry 'Debian GNU/Linux, mit Linux 4.19.0-11-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-11-amd64-advanced-0e97f9a5-96ed-4007-9143-569dcf42a9e1' { savedefault load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi 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 0e97f9a5-96ed-4007-9143-569dcf42a9e1 else search --no-floppy --fs-uuid --set=root 0e97f9a5-96ed-4007-9143-569dcf42a9e1 fi echo 'Linux 4.19.0-11-amd64 wird geladen …' linux /boot/vmlinuz-4.19.0-11-amd64 root=UUID=0e97f9a5-96ed-4007-9143-569dcf42a9e1 ro quiet echo 'Initiale Ramdisk wird geladen …' initrd /boot/initrd.img-4.19.0-11-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.19.0-11-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-11-amd64-recovery-0e97f9a5-96ed-4007-9143-569dcf42a9e1' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi 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 0e97f9a5-96ed-4007-9143-569dcf42a9e1 else search --no-floppy --fs-uuid --set=root 0e97f9a5-96ed-4007-9143-569dcf42a9e1 fi echo 'Linux 4.19.0-11-amd64 wird geladen …' linux /boot/vmlinuz-4.19.0-11-amd64 root=UUID=0e97f9a5-96ed-4007-9143-569dcf42a9e1 ro single echo 'Initiale Ramdisk wird geladen …' initrd /boot/initrd.img-4.19.0-11-amd64 }}### END /etc/grub.d/10_linux ###### BEGIN /etc/grub.d/20_linux_xen ###### END /etc/grub.d/20_linux_xen ###### BEGIN /etc/grub.d/30_os-prober ###menuentry 'Windows 7 (auf /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-CA1C5D941C5D7BFF' { savedefault 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 CA1C5D941C5D7BFF else search --no-floppy --fs-uuid --set=root CA1C5D941C5D7BFF fi parttool ${root} hidden- chainloader +1}### END /etc/grub.d/30_os-prober ###### BEGIN /etc/grub.d/30_uefi-firmware ###### 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.## Menu entry Daphile-hifimenuentry "Daphile-hifi" { insmod chain insmod ext2 set root=(hd0,6) chainloader +1}### END /etc/grub.d/40_custom ###### BEGIN /etc/grub.d/41_custom ###if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfgelif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg;fi### END /etc/grub.d/41_custom ###
#!/bin/shexec 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.## Menu entry Daphile-hifimenuentry "Daphile-hifi" { insmod chain insmod ext2 set root=(hd0,6) chainloader +1}
cat /etc/dafault/grub
# If you change this file, run 'update-grub' afterwards to update# /boot/grub/grub.cfg.# For full documentation of the options in this file, see:# info -f grub -n 'Simple configuration'GRUB_DEFAULT=savedGRUB_SAVEDEFAULT=trueGRUB_TIMEOUT=11GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`GRUB_CMDLINE_LINUX_DEFAULT="quiet"GRUB_CMDLINE_LINUX=""# Uncomment to enable BadRAM filtering, modify to suit your needs# This works with Linux (no patch required) and with any kernel that obtains# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"# Uncomment to disable graphical terminal (grub-pc only)#GRUB_TERMINAL=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=640x480# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux#GRUB_DISABLE_LINUX_UUID=true# Uncomment to disable generation of recovery mode menu entries#GRUB_DISABLE_RECOVERY="true"# Uncomment to get a beep at grub start#GRUB_INIT_TUNE="480 440 1"
sudo update-grub
lsblk:Code: [Auswählen]lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTsda 8:0 0 232,9G 0 disk ├─sda1 8:1 0 500M 0 part ├─sda2 8:2 0 45,2G 0 part ├─sda3 8:3 0 1K 0 part ├─sda4 8:4 0 173,5G 0 part /├─sda5 8:5 0 3,7G 0 part [SWAP]├─sda6 8:6 0 2G 0 part └─sda7 8:7 0 8G 0 part sda2 ist Win7, sda4 ist Linux1, sda6 ist Linux2.
Grub gefunden: /dev/sdaKein Grub: /dev/sda1Kein Grub: /dev/sda2Kein Grub: /dev/sda3Kein Grub: /dev/sda4Kein Grub: /dev/sda5Grub gefunden: /dev/sda6Kein Grub: /dev/sda7
├─sda6 8:6 0 2G 0 part
da ich auf sda6 aber kein / erkenne