Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Instalace, aktualizace a spouštění => Téma založeno: hoja 31 Ledna 2010, 21:52:22
-
Zdravím Vás, skúšal som upraviť zavádzač, aby mi pri štarte ponúkal len 1 UBUNTU a Vistu a podarilo sa mi odstrániť z neho záznam o VISTE. Čiže automaticky mi nabehne UBUNTU a k VISTE sa nedostanem. HDD mám rozdelený na SDA1 - boot (VISTA), SDA2 - odkladací VISTA, sda3-UBUNTU, sda4-swap. Skúšal som hľadať cestu cez rôzne fóra o dual boot a podobne, ale márne.
Prosím, poraďte nejaký link, alebo priamo cestu. Vďaka vopred.
-
Můžeš tady dát prosím výstup z boot_info_scriptu?
http://wiki.ubuntu.cz/boot_info_script
-
Zkus příkaz
sudo update-grubMěl by ti vyhledat a automaticky přidat do Grubu všechny OS, které máš v PC.
-
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #3 for /boot/grub.
sda1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows Vista
Boot files/dirs: /grub/grub.cfg /bootmgr /Boot/BCD
/Windows/System32/winload.exe /grldr /grub/core.img
/boot/grub/core.img
sda2: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sda3: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda4: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x7a695750
Partition Boot Start End Size Id System
/dev/sda1 * 2,048 240,392,903 240,390,856 7 HPFS/NTFS
/dev/sda2 240,394,240 522,739,695 282,345,456 7 HPFS/NTFS
/dev/sda3 522,755,100 600,863,129 78,108,030 83 Linux
/dev/sda4 600,863,130 625,137,344 24,274,215 82 Linux swap / Solaris
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 8E5E92685E9248BB ntfs
/dev/sda2 62E40F15E40EEADD ntfs
/dev/sda3 a7c4140c-0080-4c91-a151-67536e880937 ext3
/dev/sda4 f7bc2b8d-9956-43b1-98fc-edb1c624aae7 swap
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda3 / ext3 (rw,errors=remount-ro)
============================= sda1/grub/grub.cfg: =============================
#
# 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 /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
=================== sda1: Location of files loaded by Grub: ===================
.0GB: boot/grub/core.img
.0GB: boot/grub/stage2
.0GB: grub/core.img
.0GB: grub/grub.cfg
=========================== sda3/boot/grub/grub.cfg: ===========================
#
# 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 /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set a7c4140c-0080-4c91-a151-67536e880937
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
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-17-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set a7c4140c-0080-4c91-a151-67536e880937
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=a7c4140c-0080-4c91-a151-67536e880937 ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set a7c4140c-0080-4c91-a151-67536e880937
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=a7c4140c-0080-4c91-a151-67536e880937 ro single
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set a7c4140c-0080-4c91-a151-67536e880937
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=a7c4140c-0080-4c91-a151-67536e880937 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set a7c4140c-0080-4c91-a151-67536e880937
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=a7c4140c-0080-4c91-a151-67536e880937 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
=============================== sda3/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda3 during installation
UUID=a7c4140c-0080-4c91-a151-67536e880937 / ext3 errors=remount-ro 0 1
# swap was on /dev/sda4 during installation
UUID=f7bc2b8d-9956-43b1-98fc-edb1c624aae7 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
-
Ak dobre vidim, tak Vistu tam naozaj nemas :-(
Skusal som najst nieco, najde dostupne OS a automaticky vytvori polozky a nasiel som toto (https://wiki.ubuntu.com/Grub2#Dual-booting)
Neviem, ci je to presne to, ale snad.
EDIT:
mozno pomoze aj toto (https://help.ubuntu.com/community/Grub2#Reinstalling GRUB 2)
-
To som skúšal včera aj teraz, toto je záznam:
hoja@hoja-laptop:~$ sudo apt-get install --reinstall libdebian-installer4
[sudo] password for hoja:
Načítavajú sa zoznamy balíkov... Hotovo
Vytvára sa strom závislostí
Načítavajú sa stavové informácie... Hotovo
Nainštalujú sa nasledovné NOVÉ balíky:
libdebian-installer4
0 aktualizovaných, 1 nových nainštalovaných, 0 na odstránenie a 0 neaktualizovaných.
Je potrebné stiahnuť 33,0kB archívov.
Po tejto operácii sa na disku použije ďalších 102kB.
Získava sa:1 http://sk.archive.ubuntu.com karmic/main libdebian-installer4 0.63ubuntu2 [33,0kB]
33,0kB sa stiahlo za 0 s (53,4kB/s)
Vyberá sa predtým zrušený balík libdebian-installer4.
(Číta sa databáza ... momentálne je nainštalovaných 140432 súborov a adresárov.
Rozbaľuje sa libdebian-installer4 (z .../libdebian-installer4_0.63ubuntu2_i386.deb) ...
Nastavuje sa balík libdebian-installer4 (0.63ubuntu2) ...
Spracúvajú sa spúšťače libc-bin ...
ldconfig deferred processing now taking place
hoja@hoja-laptop:~$ sudo os-prober
ls: nie je možné pristupovať k /var/lib/os-prober/mount/boot
Boot: No such file or directory
hoja@hoja-laptop:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-17-generic
Found initrd image: /boot/initrd.img-2.6.31-17-generic
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
ls: nie je možné pristupovať k /var/lib/os-prober/mount/boot
Boot: No such file or directory
done
hoja@hoja-laptop:~$
-
Tak skus tu http://ubuntuforums.org/showthread.php?t=1374445
-
A ještě jedna možnost - přiinstalovat v ubuntu StartUpManager (Správce spouštění) a jednou použít.
-
Vďaka za rady, už je to OK. Problém bol v tom, že na SDA1, ktorý je bootovací s Vistou, som mal 2x zložku s názvom Boot a boot. Po premenovaní sa vec dala do poriadku. Vďaka za vyriešenie patrí priateľovi na telefóne menom Yanick.
-
Vďaka za vyriešenie patrí priateľovi na telefóne menom Yanick.
Vdaka :-)