[Risolto] [Grub] aggiornamento windows 7 grub scomparso
Inviato: domenica 28 marzo 2010, 9:49
ho aggiornato Windows vista con Windows 7 e putroppo il grub non funziona più. è scomparso. come posso fare?
???
???
Il forum della comunità italiana di Ubuntu.
https://forum.ubuntu-it.org/
grazie per l'aiuto..alecive ha scritto: Segui questa guida!!![]()
Codice: Seleziona tutto
sudo mount --bind /dev /mnt/devCodice: Seleziona tutto
sudo mount --bind /dev/mnt/devSi ma installare un'applicazione per tre comandi da terminale è controproducente secondo me..fai molto prima a dare i tre comandi..!connors ha scritto: puoi provare anche con super grub
pienamente d'accordo con te, però ad alcuni viene piu semplice installare cosi non hanno problemi di sbagliare commandi (rotfl)alecive ha scritto:Si ma installare un'applicazione per tre comandi da terminale è controproducente secondo me..fai molto prima a dare i tre comandi..!connors ha scritto: puoi provare anche con super grub
Codice: Seleziona tutto
sudo grub-install /dev/sdaprovo ad andare con ordine...alecive ha scritto: ma la partizione sulla quale è installato ubuntu è /dev/sda1?
Inoltre il comando è :nonCodice: Seleziona tutto
sudo mount --bind /dev /mnt/dev(c'è uno spazio tra "/dev" e "mnt/dev")Codice: Seleziona tutto
sudo mount --bind /dev/mnt/dev
Codice: Seleziona tutto
grub> root (hd0,6)
root (hd0,6)
grub> setup (hd0)
setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Error 15: File not found
Codice: Seleziona tutto
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Syslinux is installed in the MBR of /dev/sda
sda1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe
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: /bootmgr
sda4: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /menu.lst
sda6: _________________________________________________________________________
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: /grub/menu.lst /grub/grub.cfg /grub/core.img
sda7: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /etc/fstab
sda8: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0feff92c
Partition Boot Start End Size Id System
/dev/sda1 * 2,048 506,908,663 506,906,616 7 HPFS/NTFS
/dev/sda2 954,626,048 976,766,975 22,140,928 7 HPFS/NTFS
/dev/sda4 506,915,010 954,614,429 447,699,420 5 Extended
/dev/sda5 564,251,058 584,733,869 20,482,812 83 Linux
/dev/sda6 584,733,933 954,614,429 369,880,497 7 HPFS/NTFS
/dev/sda7 506,915,136 555,736,544 48,821,409 83 Linux
/dev/sda8 555,736,608 564,250,994 8,514,387 82 Linux swap / Solaris
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 CA8E65418E6526E3 ntfs
/dev/sda2 F0803F91803F5D72 ntfs RECOVERY
/dev/sda5 18356df3-468e-4323-9567-b15154715f74 ext4
/dev/sda6 66FCCE454F4E701C ntfs
/dev/sda7 3fd686c5-8721-4001-b114-0568dd96e7a0 ext4
/dev/sda8 3ffe0557-8d7f-418d-8ed0-71540c02bab0 swap
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda7 / ext4 (rw,errors=remount-ro)
/dev/sda5 /home ext4 (rw)
/dev/sda7 /mnt ext4 (rw)
/dev /mnt/dev none (rw,bind)
/dev/sda6 /boot fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
================================ sda5/menu.lst: ================================
default 1
timeout 10
title Microsoft Windows 7
root (hd0,0)
savedefault
makeactive
chainloader +1
title Ubuntu hd0 1
root (hd0,1)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu hd0 2
root (hd0,2)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu hd0 3
root (hd0,3)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu hd0 4
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu hd0 5
root (hd0,5)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu hd0 6
root (hd0,6)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu hd0 7
root (hd0,7)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot
title Ubuntu, memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
quiet
boot
=================== sda5: Location of files loaded by Grub: ===================
290.2GB: menu.lst
============================= sda6/grub/menu.lst: =============================
# 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-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 use 'savedefault' 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 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# 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=UUID=3fd686c5-8721-4001-b114-0568dd96e7a0 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=3fd686c5-8721-4001-b114-0568dd96e7a0
## 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 splash
## 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=(recovery) single
# altoptions=(recovery 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
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## 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 Ubuntu 9.10, kernel 2.6.31-20-generic
uuid 3fd686c5-8721-4001-b114-0568dd96e7a0
kernel /boot/vmlinuz-2.6.31-20-generic root=UUID=3fd686c5-8721-4001-b114-0568dd96e7a0 ro quiet splash
initrd /boot/initrd.img-2.6.31-20-generic
title Ubuntu 9.10, kernel 2.6.31-20-generic (recovery mode)
uuid 3fd686c5-8721-4001-b114-0568dd96e7a0
kernel /boot/vmlinuz-2.6.31-20-generic root=UUID=3fd686c5-8721-4001-b114-0568dd96e7a0 ro single
initrd /boot/initrd.img-2.6.31-20-generic
title Ubuntu 9.10, kernel 2.6.31-14-generic
uuid 3fd686c5-8721-4001-b114-0568dd96e7a0
kernel /boot/vmlinuz-2.6.31-14-generic root=UUID=3fd686c5-8721-4001-b114-0568dd96e7a0 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
title Ubuntu 9.10, kernel 2.6.31-14-generic (recovery mode)
uuid 3fd686c5-8721-4001-b114-0568dd96e7a0
kernel /boot/vmlinuz-2.6.31-14-generic root=UUID=3fd686c5-8721-4001-b114-0568dd96e7a0 ro single
initrd /boot/initrd.img-2.6.31-14-generic
title Chainload into GRUB 2
root 3fd686c5-8721-4001-b114-0568dd96e7a0
kernel /boot/grub/core.img
title Ubuntu 9.10, memtest86+
uuid 3fd686c5-8721-4001-b114-0568dd96e7a0
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
============================= sda6/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,7)
search --no-floppy --fs-uuid --set 3fd686c5-8721-4001-b114-0568dd96e7a0
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-20-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set 3fd686c5-8721-4001-b114-0568dd96e7a0
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=3fd686c5-8721-4001-b114-0568dd96e7a0 ro quiet splash
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set 3fd686c5-8721-4001-b114-0568dd96e7a0
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=3fd686c5-8721-4001-b114-0568dd96e7a0 ro single
initrd /boot/initrd.img-2.6.31-20-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,7)
search --no-floppy --fs-uuid --set 3fd686c5-8721-4001-b114-0568dd96e7a0
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=3fd686c5-8721-4001-b114-0568dd96e7a0 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,7)
search --no-floppy --fs-uuid --set 3fd686c5-8721-4001-b114-0568dd96e7a0
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=3fd686c5-8721-4001-b114-0568dd96e7a0 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 ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set ca8e65418e6526e3
chainloader +1
}
menuentry "Windows Vista (loader) (on /dev/sda2)" {
insmod ntfs
set root=(hd0,2)
search --no-floppy --fs-uuid --set f0803f91803f5d72
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 ###
=================== sda6: Location of files loaded by Grub: ===================
302.1GB: grub/core.img
302.1GB: grub/grub.cfg
304.9GB: grub/menu.lst
300.1GB: initrd.img-2.6.31-14-generic
301.4GB: initrd.img-2.6.31-20-generic
300.0GB: vmlinuz-2.6.31-14-generic
301.1GB: vmlinuz-2.6.31-20-generic
=============================== sda7/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/sda7 during installation
UUID=3fd686c5-8721-4001-b114-0568dd96e7a0 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda5 during installation
UUID=18356df3-468e-4323-9567-b15154715f74 /home ext4 defaults 0 2
# swap was on /dev/sda8 during installation
UUID=3ffe0557-8d7f-418d-8ed0-71540c02bab0 none swap sw 0 0
=================== sda7: Location of files loaded by Grub: ===================
261.6GB: initrd.img
260.2GB: initrd.img.old
261.3GB: vmlinuz
260.2GB: vmlinuz.old
perché il grub2 della 9.10 non ce l'ha. tu devi usare supergrub 1.30 ed una volta avviato ubuntu devi dare il comando[.::MDT::.] ha scritto: Ho provato tutte le guide e le cose possibili (supergrubdisk) senza successo. In particolare non mi spiego perché non mi trova mai il grub/stage1:
Codice: Seleziona tutto
sudo grub-install /dev/sda