Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

Użytkownik


Jak w temacie. Testowałem program startupmanager, licząc że jest odpowiednikiem grub-customizera z ubuntu. Po 1 uruchumieniu, nie wprowadzając żadnych zmian, odinstalowałem go. Okazało się że usunął wpis windowsa z gruba. Oba systemy są zaszyfrowane. Najwygodniej byłoby ten wpis przywrócić, bo reinstalacja gruba przy zaszyfrowanym windowsie jest psu na budę ;/
Offline







Kapelusznik








Wcześniej wpis dla zaszyfrowanego Windowsa dodawałeś ręcznie?
Offline

Użytkownik


Nie. Instalowałem windowsa -> instalowałem szyfrowanego linuxa -> szyfrowałem windowsa.
Osobiście, uważam że tam brakuje jedynie wpisu z odnośnikiem do partycji /dev/sda1/. Zgodzicie się? Jak go dodać i dlaczego został usunięty mimo iż taka opcja nie nie była wybierana?
Ostatnio edytowany przez alfa444 (2014-08-28 15:07:31)
Offline







Kapelusznik








Konfig GRUB-a – grub.cfg – generowany jest zawsze na nowo przy instalacji/aktualizacji pakietów które mają z nim związek. Za wykrywanie innych systemów odpowiada os-prober, możliwe że po zaszyfrowaniu Windowsa po prostu go nie widzi, a przy instalacji tamtego programu został wygenerowany nowy konfig GRUB-a i taki jest efekt. Dodaj sobie ten wpis ręcznie w pliku /etc/grub.d/40_custom, jak już dodasz wygeneruj nowy grub.cfg:
update-grub
Offline

Użytkownik


Edytuję ten plik i widzę taką zawartość:
#!/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.
Jak powinien prawidłowo wyglądać wpis kierujący do Windows 7 /dev/sda1/ ?
Offline


Użytkownik



Podaj wynik skryptu bootinfoscript.
Podaj wynik z terminala:
su -c 'os-prober'
Offline

Użytkownik


Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> Truecrypt Boot Loader is installed in the MBR of /dev/sda.
=> No boot loader is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: nieznany typ systemu plików ''
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda2
and looks at sector 126091264 of the same hard drive
for core.img. core.img is at this location and looks
for (,msdos2)/grub on this drive.
Operating System:
Boot files: /grub/grub.cfg /grub/core.img
sda3: __________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________________________________
File system: crypto_LUKS
Boot sector type: Unknown
Boot sector info:
sda4: __________________________________________________________________________
File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: nieznany typ systemu plików ''
mount: nieznany typ systemu plików ''
sdb1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: According to the info in the boot sector, sdb1 starts
at sector 0. But according to the info from fdisk,
sdb1 starts at sector 62.
Operating System:
Boot files:
LVM-SWAP': _____________________________________________________________________
File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: nieznany typ systemu plików ''
mount: nieznany typ systemu plików ''
mount: nieznany typ systemu plików ''
LVM-ROOT': _____________________________________________________________________
File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: nieznany typ systemu plików ''
mount: nieznany typ systemu plików ''
mount: nieznany typ systemu plików ''
mount: nieznany typ systemu plików ''
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Dysk /dev/sda: 500.1 GB, bajtów: 500107862016
głowic: 255, sektorów/ścieżkę: 63, cylindrów: 60801, w sumie sektorów: 976773168
Jednostka = sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 2,048 125,825,023 125,822,976 7 NTFS / exFAT / HPFS
/dev/sda2 * 125,825,024 127,432,703 1,607,680 83 Linux
/dev/sda3 127,434,750 546,865,151 419,430,402 5 Extended
/dev/sda5 127,434,752 546,865,151 419,430,400 83 Linux
/dev/sda4 546,865,152 976,773,119 429,907,968 7 NTFS / exFAT / HPFS
Drive: sdb _____________________________________________________________________
Dysk /dev/sdb: 3933 MB, bajtów: 3933208576
głowic: 121, sektorów/ścieżkę: 62, cylindrów: 1024, w sumie sektorów: 7682048
Jednostka = sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 62 7,682,047 7,681,986 7 NTFS / exFAT / HPFS
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/mapper/LVM-ROOT 9e8e2d0b-488c-4c0b-b8f3-b146f590a137 ext4 ROOT
/dev/mapper/LVM-SWAP 759c475c-86a5-4df5-a2c6-a4a20e1b5cca swap
/dev/mapper/sda5_crypt Vfx11h-Upa7-KDwG-rt37-orZ2-oqWN-mCf8HW LVM2_member
/dev/sda2 2975769e-66a7-4b04-9611-2d571fc837c5 ext4 Boot
/dev/sda5 24bbee67-5414-45a0-add0-98f32fa0c41a crypto_LUKS
/dev/sdb1 7F94-ED6B vfat MicroSD 4GB
========================= "ls -R /dev/mapper/" output: =========================
/dev/mapper:
control
LVM-ROOT
LVM-SWAP
sda5_crypt
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/mapper/LVM-ROOT / ext4 (rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
/dev/sda2 /boot ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
/dev/sdb1 /media/usb0 vfat (rw,nosuid,nodev,noexec,relatime,uid=1000,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro,user=user)
============================= sda2/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
load_env
fi
set 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=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, za pomocą systemu Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 2975769e-66a7-4b04-9611-2d571fc837c5
echo 'Wczytywanie systemu Linux 3.2.0-4-amd64...'
linux /vmlinuz-3.2.0-4-amd64 root=/dev/mapper/LVM-ROOT ro quiet
echo 'Wczytywanie początkowego dysku RAM...'
initrd /initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, za pomocą systemu Linux 3.2.0-4-amd64 (tryb ratunkowy)' --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 2975769e-66a7-4b04-9611-2d571fc837c5
echo 'Wczytywanie systemu Linux 3.2.0-4-amd64...'
linux /vmlinuz-3.2.0-4-amd64 root=/dev/mapper/LVM-ROOT ro single
echo 'Wczytywanie początkowego dysku RAM...'
initrd /initrd.img-3.2.0-4-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 ###
### 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 ###
--------------------------------------------------------------------------------sudo gedit /etc/grub.d/30_os-prober
#! /bin/sh
set -e
# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009 Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB. If not, see <http://www.gnu.org/licenses/>.
prefix="/usr"
exec_prefix="${prefix}"
datarootdir="${prefix}/share"
. "${datarootdir}/grub/grub-mkconfig_lib"
if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
exit 0
fi
if [ -z "`which os-prober 2> /dev/null`" -o -z "`which linux-boot-prober 2> /dev/null`" ] ; then
# missing os-prober and/or linux-boot-prober
exit 0
fi
# Try to load the efivars module, in case it's needed for EFI support
# to work below. Hide the errors in case it's not available, there is
# no need to scare people here.
modprobe efivars >/dev/null 2>&1 || true
OSPROBED="`os-prober | tr ' ' '^' | paste -s -d ' '`"
if [ -z "${OSPROBED}" ] ; then
# empty os-prober output, nothing doing
exit 0
fi
osx_entry() {
cat << EOF
menuentry "${LONGNAME} (${2}-bit) (on ${DEVICE})" --class osx --class darwin --class os {
EOF
save_default_entry | sed -e "s/^/\t/"
prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
cat << EOF
load_video
set do_resume=0
if [ /var/vm/sleepimage -nt10 / ]; then
if xnu_resume /var/vm/sleepimage; then
set do_resume=1
fi
fi
if [ \$do_resume = 0 ]; then
xnu_uuid ${OSXUUID} uuid
if [ -f /Extra/DSDT.aml ]; then
acpi -e /Extra/DSDT.aml
fi
$1 /mach_kernel boot-uuid=\${uuid} rd=*uuid
if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
xnu_mkext /System/Library/Extensions.mkext
else
xnu_kextdir /System/Library/Extensions
fi
if [ -f /Extra/Extensions.mkext ]; then
xnu_mkext /Extra/Extensions.mkext
fi
if [ -d /Extra/Extensions ]; then
xnu_kextdir /Extra/Extensions
fi
if [ -f /Extra/devprop.bin ]; then
xnu_devprop_load /Extra/devprop.bin
fi
if [ -f /Extra/splash.jpg ]; then
insmod jpeg
xnu_splash /Extra/splash.jpg
fi
if [ -f /Extra/splash.png ]; then
insmod png
xnu_splash /Extra/splash.png
fi
if [ -f /Extra/splash.tga ]; then
insmod tga
xnu_splash /Extra/splash.tga
fi
fi
}
EOF
}
for OS in ${OSPROBED} ; do
DEVICE="`echo ${OS} | cut -d ':' -f 1`"
LONGNAME="`echo ${OS} | cut -d ':' -f 2 | tr '^' ' '`"
LABEL="`echo ${OS} | cut -d ':' -f 3 | tr '^' ' '`"
BOOT="`echo ${OS} | cut -d ':' -f 4`"
if [ -z "${LONGNAME}" ] ; then
LONGNAME="${LABEL}"
fi
echo "Found ${LONGNAME} on ${DEVICE}" >&2
case ${BOOT} in
chain)
cat << EOF
menuentry "${LONGNAME} (on ${DEVICE})" --class windows --class os {
EOF
save_default_entry | sed -e "s/^/\t/"
prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
case ${LONGNAME} in
Windows\ Vista*|Windows\ 7*|Windows\ Server\ 2008*)
;;
*)
cat << EOF
drivemap -s (hd0) \${root}
EOF
;;
esac
cat <<EOF
chainloader +1
}
EOF
;;
efi)
EFIPATH=${DEVICE#*@}
DEVICE=${DEVICE%@*}
cat << EOF
menuentry "${LONGNAME} (UEFI on ${DEVICE})" --class windows --class os {
EOF
save_default_entry | sed -e "s/^/\t/"
prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
cat <<EOF
chainloader ${EFIPATH}
}
EOF
;;
linux)
LINUXPROBED="`linux-boot-prober ${DEVICE} 2> /dev/null | tr ' ' '^' | paste -s -d ' '`"
prepare_boot_cache=
for LINUX in ${LINUXPROBED} ; do
LROOT="`echo ${LINUX} | cut -d ':' -f 1`"
LBOOT="`echo ${LINUX} | cut -d ':' -f 2`"
LLABEL="`echo ${LINUX} | cut -d ':' -f 3 | tr '^' ' '`"
LKERNEL="`echo ${LINUX} | cut -d ':' -f 4`"
LINITRD="`echo ${LINUX} | cut -d ':' -f 5`"
LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`"
if [ -z "${LLABEL}" ] ; then
LLABEL="${LONGNAME}"
fi
if [ "${LROOT}" != "${LBOOT}" ]; then
LKERNEL="${LKERNEL#/boot}"
LINITRD="${LINITRD#/boot}"
fi
cat << EOF
menuentry "${LLABEL} (on ${DEVICE})" --class gnu-linux --class gnu --class os {
EOF
save_default_entry | sed -e "s/^/\t/"
if [ -z "${prepare_boot_cache}" ]; then
prepare_boot_cache="$(prepare_grub_to_access_device ${LBOOT} | sed -e "s/^/\t/")"
fi
printf '%s\n' "${prepare_boot_cache}"
cat << EOF
linux ${LKERNEL} ${LPARAMS}
EOF
if [ -n "${LINITRD}" ] ; then
cat << EOF
initrd ${LINITRD}
EOF
fi
cat << EOF
}
EOF
done
;;
macosx)
OSXUUID="`grub-probe --target=fs_uuid --device ${DEVICE} 2> /dev/null`"
osx_entry xnu_kernel 32
osx_entry xnu_kernel64 64
;;
hurd)
cat << EOF
menuentry "${LONGNAME} (on ${DEVICE})" --class hurd --class gnu --class os {
EOF
save_default_entry | sed -e "s/^/\t/"
prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
grub_device="`${grub_probe} --device ${DEVICE} --target=drive`"
mach_device="`echo "${grub_device}" | sed -e 's/(\(hd.*\),msdos\(.*\))/\1s\2/'`"
grub_fs="`${grub_probe} --device ${DEVICE} --target=fs`"
case "${grub_fs}" in
*fs) hurd_fs="${grub_fs}" ;;
*) hurd_fs="${grub_fs}fs" ;;
esac
cat << EOF
multiboot /boot/gnumach.gz root=device:${mach_device}
module /hurd/${hurd_fs}.static ${hurd_fs} --readonly \\
--multiboot-command-line='\${kernel-command-line}' \\
--host-priv-port='\${host-port}' \\
--device-master-port='\${device-port}' \\
--exec-server-task='\${exec-task}' -T typed '\${root}' \\
'\$(task-create)' '\$(task-resume)'
module /lib/ld.so.1 exec /hurd/exec '\$(exec-task=task-create)'
}
EOF
;;
*)
echo " ${LONGNAME} is not yet supported by grub-mkconfig." >&2
;;
esac
doneOffline

Użytkownik


NIc z tego nie wiadomo?
Offline

Użytkownik


Jednak muszę wszystko przeinstalowywać?
Offline







Kapelusznik








Tak jak tutaj (w poście 8) spróbuj: http://forum.dug.net.pl/viewtopic.php?pid=219340#p219340
Offline


Użytkownik



Zajrzyj jeszcze tutaj - jest opisana cała procedura - szczególnie pod koniec:
https://aprescott.com/posts/dual-booting-windows-an … th-encryption .
Zwróć uwagę jaki bootloader masz zainstalowany w MBR /dev/sda.
Ostatnio edytowany przez marcin'82 (2014-09-03 19:59:19)
Offline

Użytkownik


Ok, pomogło.
#!/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.
menuentry “Windows 7″ {
set root=(hd0,1)
chainloader +1
}Przed napisem 'Windows' pojawia się pytajnik w grubie - jak go usunąć? Nie pojawia się też '7'. Próbuje też pierdyknąć jakąś tapetę do gruba - nie chce jej wyświetlic ;/
sudo gedit /etc/default/grub GRUB_BACKGROUND=/boot/grub/star_explosion-wallpaper-1440x900 sudo update-grub
Offline


Użytkownik



To daj tak tą etykietę:
menuentry 'Windows 7'
Offline

Użytkownik


ok, działa
Offline