0 Mitglieder und 2 Gäste betrachten dieses Thema.
hagbard@hagbard-desktop ~ $ uname -r3.2.0-32-generic
cat /boot/grub/grub.cfg
sudo parted -l
hagbard@hagbard-desktop ~ $ 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 ###if [ -s $prefix/grubenv ]; then set have_grubenv=true load_envfiset default="0"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=truefifunction savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi}function recordfail { set recordfail=1 if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi}function load_video { insmod efi_gop insmod efi_uga insmod video_bochs insmod video_cirrus}insmod part_gptinsmod ext2set root='(hd0,gpt2)'search --no-floppy --fs-uuid --set=root 71b3f059-0757-4730-ad41-1c89893b4d2dif loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=auto load_video insmod gfxterm insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root 71b3f059-0757-4730-ad41-1c89893b4d2d set locale_dir=($root)/boot/grub/locale set lang=de_DE insmod gettextfiterminal_output gfxtermif [ "${recordfail}" = 1 ]; then set timeout=-1else set timeout=10fi### END /etc/grub.d/00_header ###### BEGIN /etc/grub.d/05_debian_theme ###set menu_color_normal=white/blackset menu_color_highlight=black/light-gray### END /etc/grub.d/05_debian_theme ###### BEGIN /etc/grub.d/06_mint_theme ###set menu_color_normal=white/blackset menu_color_highlight=white/light-gray### END /etc/grub.d/06_mint_theme ###### BEGIN /etc/grub.d/10_linux ###function gfxmode { set gfxpayload="$1" if [ "$1" = "keep" ]; then set vt_handoff=vt.handoff=7 else set vt_handoff= fi}if [ ${recordfail} != 1 ]; then if [ -e ${prefix}/gfxblacklist.txt ]; then if hwmatch ${prefix}/gfxblacklist.txt 3; then if [ ${match} = 0 ]; then set linux_gfx_mode=keep else set linux_gfx_mode=text fi else set linux_gfx_mode=text fi else set linux_gfx_mode=keep fielse set linux_gfx_mode=textfiexport linux_gfx_modeif [ "$linux_gfx_mode" != "text" ]; then load_video; fimenuentry 'Linux Mint 13 Cinnamon 64-bit, 3.2.0-32-generic (/dev/sda2)' --class linuxmint --class gnu-linux --class gnu --class os { recordfail gfxmode $linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root 71b3f059-0757-4730-ad41-1c89893b4d2d linux /boot/vmlinuz-3.2.0-32-generic root=UUID=71b3f059-0757-4730-ad41-1c89893b4d2d ro quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-32-generic}menuentry 'Linux Mint 13 Cinnamon 64-bit, 3.2.0-32-generic (/dev/sda2) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root 71b3f059-0757-4730-ad41-1c89893b4d2d echo 'Loading Linux 3.2.0-32-generic ...' linux /boot/vmlinuz-3.2.0-32-generic root=UUID=71b3f059-0757-4730-ad41-1c89893b4d2d ro recovery nomodeset echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.2.0-32-generic}submenu "Previous Linux versions" {menuentry 'Linux Mint 13 Cinnamon 64-bit, 3.2.0-23-generic (/dev/sda2)' --class linuxmint --class gnu-linux --class gnu --class os { recordfail gfxmode $linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root 71b3f059-0757-4730-ad41-1c89893b4d2d linux /boot/vmlinuz-3.2.0-23-generic root=UUID=71b3f059-0757-4730-ad41-1c89893b4d2d ro quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-23-generic}menuentry 'Linux Mint 13 Cinnamon 64-bit, 3.2.0-23-generic (/dev/sda2) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root 71b3f059-0757-4730-ad41-1c89893b4d2d echo 'Loading Linux 3.2.0-23-generic ...' linux /boot/vmlinuz-3.2.0-23-generic root=UUID=71b3f059-0757-4730-ad41-1c89893b4d2d ro recovery nomodeset echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.2.0-23-generic}}### END /etc/grub.d/10_linux ###### BEGIN /etc/grub.d/10_lupin ###### END /etc/grub.d/10_lupin ###### BEGIN /etc/grub.d/20_linux_xen ###### END /etc/grub.d/20_linux_xen ###### BEGIN /etc/grub.d/20_memtest86+ ###menuentry "Memory test (memtest86+)" { insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root 71b3f059-0757-4730-ad41-1c89893b4d2d linux16 /boot/memtest86+.bin}menuentry "Memory test (memtest86+, serial console 115200)" { insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root 71b3f059-0757-4730-ad41-1c89893b4d2d linux16 /boot/memtest86+.bin console=ttyS0,115200n8}### END /etc/grub.d/20_memtest86+ ###### BEGIN /etc/grub.d/30_os-prober ###menuentry "Windows 8 (loader) (on /dev/sdc1)" --class windows --class os { insmod part_msdos insmod ntfs set root='(hd2,msdos1)' search --no-floppy --fs-uuid --set=root 068E932F8E931671 drivemap -s (hd0) ${root} chainloader +1}menuentry "Windows Recovery Environment (loader) (on /dev/sde4)" --class windows --class os { insmod part_msdos insmod fat set root='(hd4,msdos4)' search --no-floppy --fs-uuid --set=root B4FE-5315 drivemap -s (hd0) ${root} chainloader +1}menuentry "Windows Recovery Environment (loader) (on /dev/sdf4)" --class windows --class os { insmod part_msdos insmod fat set root='(hd5,msdos4)' search --no-floppy --fs-uuid --set=root B4FE-5315 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 $prefix/custom.cfg ]; then source $prefix/custom.cfg;fi### END /etc/grub.d/41_custom ###
hagbard@hagbard-desktop ~ $ sudo parted -l[sudo] password for hagbard: Model: ATA MCBQE64GBMPP (scsi)Disk /dev/sda: 64,0GBSector size (logical/physical): 512B/512BPartition Table: gptNumber Start End Size File system Name Flags 1 17,4kB 2048MB 2048MB linux-swap(v1) 3 2048MB 2583MB 535MB fat32 boot 2 2583MB 64,0GB 61,4GB ext4Model: ATA SAMSUNG SSD 830 (scsi)Disk /dev/sdb: 128GBSector size (logical/physical): 512B/512BPartition Table: gptNumber Start End Size File system Name Flags 1 1049kB 128GB 128GB ntfs Basic data partitionModel: ATA SAMSUNG HD103SJ (scsi)Disk /dev/sdc: 1000GBSector size (logical/physical): 512B/512BPartition Table: msdosNumber Start End Size Type File system Flags 1 1049kB 1000GB 1000GB primary ntfs bootModel: ATA Hitachi HUA72101 (scsi)Disk /dev/sdd: 1000GBSector size (logical/physical): 512B/512BPartition Table: gptNumber Start End Size File system Name FlagsModel: Generic Flash Disk (scsi)Disk /dev/sde: 8020MBSector size (logical/physical): 512B/512BPartition Table: msdosNumber Start End Size Type File system Flags 4 32,3kB 8020MB 8019MB primary fat32 boot, lbaModel: PNY USB 2.0 FD (scsi)Disk /dev/sdf: 8036MBSector size (logical/physical): 512B/512BPartition Table: msdosNumber Start End Size Type File system Flags 4 32,3kB 8036MB 8036MB primary fat32 lbaWarning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0has been opened read-only.Error: /dev/sr0: unrecognised disk label
### BEGIN /etc/grub.d/30_os-prober ###menuentry "Windows 8 (loader) (on /dev/sdc1)" --class windows --class os { insmod part_msdos insmod ntfs set root='(hd2,msdos1)' search --no-floppy --fs-uuid --set=root 068E932F8E931671 drivemap -s (hd0) ${root} chainloader +1}
set root='(hd2,msdos1)'
sudo blkid
/dev/sda1: UUID="a342a3c7-f05e-4627-b07c-4bd0ac1447e3" TYPE="swap" /dev/sda2: UUID="71b3f059-0757-4730-ad41-1c89893b4d2d" TYPE="ext4" /dev/sda3: UUID="3E4F-64BD" TYPE="vfat" /dev/sdb1: UUID="E650336650333D1D" TYPE="ntfs" /dev/sr0: LABEL="UDF Volume" TYPE="udf" /dev/sdc1: LABEL="Zwischenspeicher" UUID="068E932F8E931671" TYPE="ntfs" /dev/sde4: LABEL="HRM_CCSA_X6" UUID="B4FE-5315" TYPE="vfat" /dev/sdf4: LABEL="Windows.7.A" UUID="B4FE-5315" TYPE="vfat"
sudo update-grub
sudo chmod -x /etc/grub.d/30_os-prober
gksudo gedit /etc/grub.d/40_custum
# 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.menuentry 'Linux Mint 13 Cinnamon recovery (/dev/sda2) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root 71b3f059-0757-4730-ad41-1c89893b4d2d chainloader +1}menuentry "Windows 8 (loader) (on /dev/sdb1)" --class windows --class os { insmod part_msdos insmod ntfs set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set=root E650336650333D1D drivemap -s (hd0) ${root} chainloader +1}
Nachdem ich das alles jetzt gemacht habe, wird WIn8 nicht mehr bei Grub aufgeführt.
sudo chmod +x /etc/grub.d/30_os-prober
cat /etc/grub.d/40_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.menuentry "Windows7 on /dev/sda1" { insmod ntfs set root=(hd0,1) search --no-floppy --fs-uuid --set=root 5AC2D404C2D3E275 chainloader +1} menuentry "Kubuntu 12.10 on /dev/sda7" { insmod ext2 set root=(hd0,7) search --no-floppy --fs-uuid --set=root 0a48cc8a-5c2c-491f-964c-a58c20828109 configfile /boot/grub/grub.cfg chainloader +1} menuentry "Kubuntu 13.04 on /dev/sda10" { insmod ext2 set root=(hd0,10) search --no-floppy --fs-uuid --set=root 45bf2a37-2915-458d-b817-3a2f1f597f90 configfile /boot/grub/grub.cfg chainloader +1}
#!/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.
GRUB_DISABLE_OS_PROBER=true
# update-grub
#GRUB_HIDDEN_TIMEOUT=0#GRUB_HIDDEN_TIMEOUT_QUIET=true
BOOT="/boot/efi";NAME="/EFI/Microsoft/Boot/bootmgfw.efi";UUID=$(sudo grub-probe -t fs_uuid "${BOOT}${NAME}");DEV=$(sudo grub-probe -t device "${BOOT}${NAME}"); { echo -e "\n# snip--->\nmenuentry \"Windows UEFI: bootmgfw.efi $DEV\" {\n search --fs-uuid --no-floppy --set=root $UUID\n chainloader (\${root})$NAME\n}\n\n# <--- snip" ;}
# snip--->menuentry "Windows UEFI: bootmgfw.efi /dev/sda2" { search --fs-uuid --no-floppy --set=root 0AEA-ED99 chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi}# <--- snip
#!/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.menuentry "Windows UEFI: bootmgfw.efi /dev/sda2" { search --fs-uuid --no-floppy --set=root 0AEA-ED99 chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi}