|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Registered User
Iscritto dal: Jun 2011
Messaggi: 11
|
Problema all'avvio con Grub
Salve a tutti.
Ho il seguente problema con il bootloader di Ubuntu. Da quando ho effettuato l'aggiornamento all'ultima versione del sistema operativo, installato su un pc sul quale eseguo anche Windows 7, non mi si avvia più di default quest'ultimo. Premetto che già ho provato a modificare l'opzione di default sia utilizzando Startup Manager, sia direttamente da file, eseguendo poi da terminale il comando update-grub. Il bello è che opzioni come il tempo di attesa e altro vengono memorizzate, tutto tranne la riga di default da avviare; resta infatti come predefinita la prima opzione, ovvero l'avvio dell'ultimo kernel di ubuntu. Dunque, come fare? Se avete bisogno di unteriori informazioni non esitate a chiedere. Grazie anticipatamente a chi vorrà darmi una mano... Ale |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Oct 2007
Messaggi: 2971
|
posta il risultato di
Codice:
cat /etc/default/grub |
|
|
|
|
|
#3 |
|
Registered User
Iscritto dal: Jun 2011
Messaggi: 11
|
Eccolo!
Codice:
# If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=6 #GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=3 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1" |
|
|
|
|
|
#4 |
|
Senior Member
Iscritto dal: Oct 2007
Messaggi: 2971
|
scusami, ma ho dimenticato di chiederti
Codice:
cat /boot/grub/grub.cfg |
|
|
|
|
|
#5 |
|
Registered User
Iscritto dal: Jun 2011
Messaggi: 11
|
Codice:
#
# 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
set have_grubenv=true
load_env
fi
set default="4"
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 recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root 62164424-4e1c-4764-9046-a9f7b40df22f
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root 62164424-4e1c-4764-9046-a9f7b40df22f
set locale_dir=($root)/boot/grub/locale
set lang=it_IT
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=3
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/light-gray
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, con Linux 2.6.38-8-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root 62164424-4e1c-4764-9046-a9f7b40df22f
linux /boot/vmlinuz-2.6.38-8-generic-pae root=UUID=62164424-4e1c-4764-9046-a9f7b40df22f ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic-pae
}
menuentry 'Ubuntu, con Linux 2.6.38-8-generic-pae (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root 62164424-4e1c-4764-9046-a9f7b40df22f
echo 'Loading Linux 2.6.38-8-generic-pae ...'
linux /boot/vmlinuz-2.6.38-8-generic-pae root=UUID=62164424-4e1c-4764-9046-a9f7b40df22f ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-generic-pae
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, con Linux 2.6.35-28-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root 62164424-4e1c-4764-9046-a9f7b40df22f
linux /boot/vmlinuz-2.6.35-28-generic-pae root=UUID=62164424-4e1c-4764-9046-a9f7b40df22f ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.35-28-generic-pae
}
menuentry 'Ubuntu, con Linux 2.6.35-28-generic-pae (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root 62164424-4e1c-4764-9046-a9f7b40df22f
echo 'Loading Linux 2.6.35-28-generic-pae ...'
linux /boot/vmlinuz-2.6.35-28-generic-pae root=UUID=62164424-4e1c-4764-9046-a9f7b40df22f ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-28-generic-pae
}
menuentry 'Ubuntu, con Linux 2.6.35-27-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root 62164424-4e1c-4764-9046-a9f7b40df22f
linux /boot/vmlinuz-2.6.35-27-generic-pae root=UUID=62164424-4e1c-4764-9046-a9f7b40df22f ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.35-27-generic-pae
}
menuentry 'Ubuntu, con Linux 2.6.35-27-generic-pae (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root 62164424-4e1c-4764-9046-a9f7b40df22f
echo 'Loading Linux 2.6.35-27-generic-pae ...'
linux /boot/vmlinuz-2.6.35-27-generic-pae root=UUID=62164424-4e1c-4764-9046-a9f7b40df22f ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-27-generic-pae
}
}
### 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 ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root C400036700035FB2
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 ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
|
|
|
|
|
|
#6 |
|
Senior Member
Iscritto dal: Oct 2007
Messaggi: 2971
|
nel /etc/default/grub hai
Codice:
GRUB_DEFAULT=6 Codice:
set default="4" Codice:
sudo gedit /boot/grub/grub.cfg |
|
|
|
|
|
#7 | |
|
Registered User
Iscritto dal: Jun 2011
Messaggi: 11
|
Quote:
In ogni caso, ho fatto come hai detto, ma purtroppo non cambia nulla, resta selezionala la prima opzione come default, cioè Ubuntu, e non Windows... |
|
|
|
|
|
|
#8 |
|
Senior Member
Iscritto dal: Oct 2007
Messaggi: 2971
|
sei sicuro che la modifica sia stata recepita ? posta
Codice:
grub-install -v ls /boot/grub |
|
|
|
|
|
#9 | |
|
Registered User
Iscritto dal: Jun 2011
Messaggi: 11
|
Quote:
Codice:
alastar@Alessandro:~$ grub-install -v grub-install (GNU GRUB 0.97) alastar@Alessandro:~$ ls /boot/grub 915resolution.mod gcry_tiger.mod parttool.mod acpi.mod gcry_twofish.mod password.mod affs.mod gcry_whirlpool.mod password_pbkdf2.mod afs_be.mod gettext.mod pbkdf2.mod afs.mod gfxmenu.mod pci.mod aout.mod gfxterm.mod play.mod ata.mod gptsync.mod png.mod ata_pthru.mod grldr.img probe.mod at_keyboard.mod grub.cfg pxeboot.img befs_be.mod grubenv pxecmd.mod befs.mod gzio.mod pxe.mod biosdisk.mod halt.mod raid5rec.mod bitmap.mod hashsum.mod raid6rec.mod bitmap_scale.mod hdparm.mod raid.mod blocklist.mod hello.mod read.mod boot.img help.mod reboot.mod boot.mod hexdump.mod regexp.mod bsd.mod hfs.mod reiserfs.mod btrfs.mod hfsplus.mod relocator.mod bufio.mod hwmatch.mod scsi.mod cat.mod iorw.mod search_fs_file.mod cdboot.img iso9660.mod search_fs_uuid.mod chain.mod jfs.mod search_label.mod cmostest.mod jpeg.mod search.mod cmp.mod kernel.img sendkey.mod command.lst keylayouts.mod serial.mod configfile.mod keystatus.mod setjmp.mod core.img legacycfg.mod setpci.mod cpio.mod linux16.mod sfs.mod cpuid.mod linux.mod sleep.mod crypto.lst lnxboot.img squash4.mod crypto.mod loadenv.mod tar.mod cs5536.mod locale terminal.lst datehook.mod loopback.mod terminal.mod date.mod lsacpi.mod terminfo.mod datetime.mod lsapm.mod test_blockarg.mod default lsmmap.mod testload.mod diskboot.img ls.mod test.mod dm_nv.mod lspci.mod tga.mod drivemap.mod lvm.mod trig.mod echo.mod mdraid09.mod true.mod efiemu32.o mdraid1x.mod udf.mod efiemu64.o memdisk.mod ufs1.mod efiemu.mod memrw.mod ufs2.mod elf.mod menu.lst uhci.mod example_functional_test.mod menu.lst~ unicode.pf2 ext2.mod minicmd.mod usb_keyboard.mod extcmd.mod minix2.mod usb.mod fat.mod minix.mod usbms.mod font.mod mmap.mod usbserial_common.mod fshelp.mod moddep.lst usbserial_ftdi.mod fs.lst msdospart.mod usbserial_pl2303.mod functional_test.mod multiboot2.mod usbtest.mod g2hdr.img multiboot.mod vbe.mod gcry_arcfour.mod nilfs2.mod vga.mod gcry_blowfish.mod normal.mod vga_text.mod gcry_camellia.mod ntfscomp.mod video_bochs.mod gcry_cast5.mod ntfs.mod video_cirrus.mod gcry_crc.mod ntldr.mod video_fb.mod gcry_des.mod ohci.mod videoinfo.mod gcry_md4.mod part_acorn.mod video.lst gcry_md5.mod part_amiga.mod video.mod gcry_rfc2268.mod part_apple.mod videotest.mod gcry_rijndael.mod part_bsd.mod xfs.mod gcry_rmd160.mod part_gpt.mod xnu.mod gcry_seed.mod partmap.lst xnu_uuid.mod gcry_serpent.mod part_msdos.mod xzio.mod gcry_sha1.mod part_sun.mod zfsinfo.mod gcry_sha256.mod part_sunpc.mod zfs.mod gcry_sha512.mod parttool.lst |
|
|
|
|
|
|
#10 |
|
Bannato
Iscritto dal: Dec 2000
Città: Forlì
Messaggi: 1806
|
In /etc/default/grub
prova a settare GRUB_DEFAULT=7 saluti |
|
|
|
|
|
#11 |
|
Senior Member
Iscritto dal: Oct 2007
Messaggi: 2971
|
il primo comando dice che hai attivo il grub1 ed hai installato anche il grub2, evidentemente hai fatto un avanzamento di versione riuscito male.
Per modificare il menù di avvio devi editare il menu.lst col comando Codice:
sudo gedit /boot/grub/menu.lst |
|
|
|
|
|
#12 | |
|
Registered User
Iscritto dal: Jun 2011
Messaggi: 11
|
Quote:
Magari facendo un downgrade e poi nuovamente riaggiornando si risolve il problema. E' possibile? |
|
|
|
|
|
|
#13 |
|
Senior Member
Iscritto dal: Oct 2007
Messaggi: 2971
|
non saprei come farlo, modifica il menu.lst e risolvi
|
|
|
|
|
|
#14 |
|
Registered User
Iscritto dal: Jun 2011
Messaggi: 11
|
Grub 2 non utilizza più menu.lst, ma grub.cfg.
Ho provato a rimuovere e reinstallare grub da live-cd. Aggiorna il file quando faccio update-grub2, ma resta selezionata all'avvio sempre la prima voce....bah. Grazie lo stesso! |
|
|
|
|
|
#15 |
|
Senior Member
Iscritto dal: Oct 2007
Messaggi: 2971
|
tu non hai il grub2 attivo, il comando grub-install -v ha dato come risposta
grub-install (GNU GRUB 0.97), che è il grub1, quindi devi modificare il menu.lst |
|
|
|
|
|
#16 |
|
Registered User
Iscritto dal: Jun 2011
Messaggi: 11
|
Adesso mi segna
Codice:
grub-install (GRUB) 1.99~rc1-13ubuntu3 |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 04:21.




















