Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: Strata záznamu VISTA z GRUB (vyriešené)  (Přečteno 2391 krát)

hoja

  • Návštěvník
  • Příspěvků: 8
Strata záznamu VISTA z GRUB (vyriešené)
« kdy: 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.
« Poslední změna: 02 Února 2010, 20:14:17 od hoja »

arrange

  • Závislák
  • ***
  • Příspěvků: 4031
  • "jdu s hlavou vztyčenou..."
Re: Strata záznamu VISTA z GRUB
« Odpověď #1 kdy: 31 Ledna 2010, 23:52:14 »
Můžeš tady dát prosím výstup z boot_info_scriptu?
http://wiki.ubuntu.cz/boot_info_script
http://www.openstreetmap.org - mapy celého světa "wiki style"

luisah

  • Závislák
  • ***
  • Příspěvků: 3704
Re: Strata záznamu VISTA z GRUB
« Odpověď #2 kdy: 01 Února 2010, 09:38:51 »
Zkus příkaz
Kód: [Vybrat]
sudo update-grubMěl by ti vyhledat a automaticky přidat do Grubu všechny OS, které máš v PC.

hoja

  • Návštěvník
  • Příspěvků: 8
Re: Strata záznamu VISTA z GRUB
« Odpověď #3 kdy: 01 Února 2010, 16:09:23 »
Kód: [Vybrat]
============================= 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

yanick

  • Návštěvník
  • Příspěvků: 85
Re: Strata záznamu VISTA z GRUB
« Odpověď #4 kdy: 01 Února 2010, 16:57:15 »
Ak dobre vidim, tak Vistu tam naozaj nemas :-(
Skusal som najst nieco, najde dostupne OS a automaticky vytvori polozky a nasiel som toto
Neviem, ci je to presne to, ale snad.

EDIT:
mozno pomoze aj toto
« Poslední změna: 01 Února 2010, 17:00:07 od yanick »

hoja

  • Návštěvník
  • Příspěvků: 8
Re: Strata záznamu VISTA z GRUB
« Odpověď #5 kdy: 01 Února 2010, 17:04:04 »
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:~$

yanick

  • Návštěvník
  • Příspěvků: 85
Re: Strata záznamu VISTA z GRUB
« Odpověď #6 kdy: 01 Února 2010, 17:07:19 »

ladarozan

  • Stálý člen
  • **
  • Příspěvků: 837
Re: Strata záznamu VISTA z GRUB
« Odpověď #7 kdy: 01 Února 2010, 21:04:01 »
A ještě jedna možnost - přiinstalovat v ubuntu StartUpManager (Správce spouštění) a jednou použít.
AMD A4-5300, Hauppauge HVR-4000, Ubuntu 12.04, Windows 8
-Tablet Protab26 a Toshiba AT10 Android 4.3.1
-Asus EEE1000H,WinXP

hoja

  • Návštěvník
  • Příspěvků: 8
Re: Strata záznamu VISTA z GRUB
« Odpověď #8 kdy: 02 Února 2010, 20:07:58 »
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.

yanick

  • Návštěvník
  • Příspěvků: 85
Re: Strata záznamu VISTA z GRUB
« Odpověď #9 kdy: 02 Února 2010, 20:13:17 »
Vďaka za vyriešenie patrí priateľovi na telefóne menom Yanick.

Vdaka :-)

 

Provoz zaštiťuje spolek OpenAlt.