[+] Podwójny GRUB
http://kaka.ovh.org/howto/chroot/
Jak już się chrootojesz to wywal gruba aptem i zainstaluj grub-legacy. Oczywiście musisz mieć działającą sieć na livecd.
Jak już się chrootojesz to wywal gruba aptem i zainstaluj grub-legacy. Oczywiście musisz mieć działającą sieć na livecd.
Zainstalowałem GRUBA, daję grub odpala się. Wpisuje dalej:
Dostaje:. Nie wiem co dalej zrobić? Pomoże ktoś?
Kod: Zaznacz cały
find /boot/grub/stage1
Kod: Zaznacz cały
Error 15: File not found
http://ubuntuforums.org/showthread.php?t=644773Sz4k4l pisze: Dostaje:.Kod: Zaznacz cały
Error 15: File not found
http://blog.tehgoju.pl/?p=108
Zobacz te linki. może pomoże.
Podczas pracy z drugiego linku. Po zainstalowaniu gruba i wpisaniu polecenia:shagrin pisze:http://ubuntuforums.org/showthread.php?t=644773
http://blog.tehgoju.pl/?p=108
Zobacz te linki. może pomoże.
Kod: Zaznacz cały
[B]grub-mkconfig -o /boot/grub/grub.cfg[/B]
Kod: Zaznacz cały
bash: /usr/sbin/grub-mkconfig: Nie ma takiego pliku ani katalogu
Pomoże?Super Grub Disk to program, który należy nagrać na płytę CD lub inny wymienny nośnik i uruchomić zamiast systemu operacyjnego.
Super Grub Disk jest programem, który przede wszystkim pomaga w naprawieniu sektora bootującego dysku. Często pojawiają się tam błędy, które uniemożliwiają całkowicie uruchomienie systemu operacyjnego. Super Grub Disk doskonale radzi sobie z różnymi problemami i rozwiązuje je definitywnie.
Z tego co zrozumialam, odinstalowałeś Grub2, powracając tym samym do poprzedniej wersji. Więc może móglbyś wlepić zawartość z
Plik jest używany przez drugą wersję Gruba.
Kod: Zaznacz cały
/boot/grub/menu.lst
Kod: Zaznacz cały
/boot/grub/grub.cfg
Odwołując się do pierwszego linku- ludzie mieli podobny problem z Grubem- wystarczyło zmienić wpisy w menu.lst. (Konkretnie chodziło o wskazanie prawidłowej partycji)shagrin pisze:http://ubuntuforums.org/showthread.php?t=644773
http://blog.tehgoju.pl/?p=108
Zobacz te linki. może pomoże.
Robiłem to z drugiego linku. A tam było żeby wykonać: a to jest chyba druga wersja GRUBA?
A jak myślisz ten Super Grub Disk może pomóc?
Kod: Zaznacz cały
aptitude install grub-pc
A jak myślisz ten Super Grub Disk może pomóc?
Nie używałam nigdy Super Grub Disk, ale po wpisaniu w Google: http://www.google.pl/search?hl=pl&rlz=1 ... =&gs_rfai=Sz4k4l pisze: A jak myślisz ten Super Grub Disk może pomóc?
Ośmielę się stwierdzić, że nie koniecznie.
Jakbyś przedstawił wynik:
Kod: Zaznacz cały
dpkg -l|grep grub
wiedzielibyśmy jakie paczki dokładnie masz tam zainstalowane, bo chyba się troszkę namieszało.
Dodatkowo jeszcze te pliczki:
Kod: Zaznacz cały
/boot/grub/menu.lst
/boot/grub/grub.cfg
Widze ze kolega tez z Lomzy
dpkg -l|grep grub
/boot/grub/menu.lst
/boot/grub/grub.cfg
Co do partycji, to szczerze nie mam pojecia. Wiem, ze squeeze jest na hda3
dpkg -l|grep grub
Kod: Zaznacz cały
rc grub 0.97-59 GRand Unified Bootloader (dummy package)
rc grub-common 1.98-1 GRand Unified Bootloader, version 2 (common files)
rc grub-pc 1.98-1 GRand Unified Bootloader, version 2 (PC/BIOS version)
Kod: Zaznacz cały
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5
# Pretty colours
color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/hda3 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(single-user mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Chainload into GRUB 2
root (hd0,2)
kernel /boot/grub/core.img
title ��������������������������������������������������������������������
root
title When you have verified GRUB 2 works, you can use this command to
root
title complete the upgrade: upgrade-from-grub-legacy
root
title ��������������������������������������������������������������������
root
title Debian GNU/Linux, kernel 2.6.32-trunk-amd64
root (hd0,2)
kernel /boot/vmlinuz-2.6.32-trunk-amd64 root=/dev/hda3 ro quiet
initrd /boot/initrd.img-2.6.32-trunk-amd64
title Debian GNU/Linux, kernel 2.6.32-trunk-amd64 (single-user mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.32-trunk-amd64 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.32-trunk-amd64
title Debian GNU/Linux, kernel 2.6.26-2-amd64
root (hd0,2)
kernel /boot/vmlinuz-2.6.26-2-amd64 root=/dev/hda3 ro quiet
initrd /boot/initrd.img-2.6.26-2-amd64
title Debian GNU/Linux, kernel 2.6.26-2-amd64 (single-user mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.26-2-amd64 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.26-2-amd64
title Debian GNU/Linux, kernel 2.6.26-1-openvz-amd64
root (hd0,2)
kernel /boot/vmlinuz-2.6.26-1-openvz-amd64 root=/dev/hda3 ro quiet
initrd /boot/initrd.img-2.6.26-1-openvz-amd64
title Debian GNU/Linux, kernel 2.6.26-1-openvz-amd64 (single-user mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.26-1-openvz-amd64 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.26-1-openvz-amd64
title Debian GNU/Linux, kernel 2.6.26-1-amd64
root (hd0,2)
kernel /boot/vmlinuz-2.6.26-1-amd64 root=/dev/hda3 ro quiet
initrd /boot/initrd.img-2.6.26-1-amd64
title Debian GNU/Linux, kernel 2.6.26-1-amd64 (single-user mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.26-1-amd64 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.26-1-amd64
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
Kod: Zaznacz cały
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
}
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 6272e37b-feb9-4c8f-ba38-780b895d0552
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 6272e37b-feb9-4c8f-ba38-780b895d0552
set locale_dir=($root)/boot/grub/locale
set lang=pl
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 6272e37b-feb9-4c8f-ba38-780b895d0552
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-amd64" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 6272e37b-feb9-4c8f-ba38-780b895d0552
echo Loading Linux 2.6.32-trunk-amd64 ...
linux /boot/vmlinuz-2.6.32-trunk-amd64 root=UUID=6272e37b-feb9-4c8f-ba38-780b895d0552 ro
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-trunk-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-amd64 (recovery mode)" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 6272e37b-feb9-4c8f-ba38-780b895d0552
echo Loading Linux 2.6.32-trunk-amd64 ...
linux /boot/vmlinuz-2.6.32-trunk-amd64 root=UUID=6272e37b-feb9-4c8f-ba38-780b895d0552 ro single
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-trunk-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-2-amd64" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 6272e37b-feb9-4c8f-ba38-780b895d0552
echo Loading Linux 2.6.26-2-amd64 ...
linux /boot/vmlinuz-2.6.26-2-amd64 root=UUID=6272e37b-feb9-4c8f-ba38-780b895d0552 ro
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.26-2-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-2-amd64 (recovery mode)" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 6272e37b-feb9-4c8f-ba38-780b895d0552
echo Loading Linux 2.6.26-2-amd64 ...
linux /boot/vmlinuz-2.6.26-2-amd64 root=UUID=6272e37b-feb9-4c8f-ba38-780b895d0552 ro single
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.26-2-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-1-openvz-amd64" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 6272e37b-feb9-4c8f-ba38-780b895d0552
echo Loading Linux 2.6.26-1-openvz-amd64 ...
linux /boot/vmlinuz-2.6.26-1-openvz-amd64 root=UUID=6272e37b-feb9-4c8f-ba38-780b895d0552 ro
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.26-1-openvz-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-1-openvz-amd64 (recovery mode)" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 6272e37b-feb9-4c8f-ba38-780b895d0552
echo Loading Linux 2.6.26-1-openvz-amd64 ...
linux /boot/vmlinuz-2.6.26-1-openvz-amd64 root=UUID=6272e37b-feb9-4c8f-ba38-780b895d0552 ro single
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.26-1-openvz-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-1-amd64" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 6272e37b-feb9-4c8f-ba38-780b895d0552
echo Loading Linux 2.6.26-1-amd64 ...
linux /boot/vmlinuz-2.6.26-1-amd64 root=UUID=6272e37b-feb9-4c8f-ba38-780b895d0552 ro
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.26-1-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-1-amd64 (recovery mode)" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 6272e37b-feb9-4c8f-ba38-780b895d0552
echo Loading Linux 2.6.26-1-amd64 ...
linux /boot/vmlinuz-2.6.26-1-amd64 root=UUID=6272e37b-feb9-4c8f-ba38-780b895d0552 ro single
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.26-1-amd64
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/hda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 489c5bd09c5bb762
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 ###