[Risolto] ripristinare grub

Problemi riscontrati durante l'installazione di Ubuntu, degli aggiornamenti e degli avanzamenti del sistema.
Avatar utente
Lole
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 450
Iscrizione: domenica 2 novembre 2008, 13:53
Località: Terra (pianeta)
Contatti:

[Risolto] ripristinare grub

Messaggio da Lole »

avevo installato kubuntu 9.04 in dual-boot con win xp.
Oggi ho provato ad installare anche fedora 10 (ovviamente su un altra partizione)
Adesso però non riesco più a far partire kubuntu ma soltanto windows (facendo esc-> other durante il boot di fedora)

C'è un metodo per ripristinare grub (piuttosto anche disintallando fedora)?
Ultima modifica di Lole il domenica 17 maggio 2009, 16:26, modificato 1 volta in totale.
Kubuntu 11.04 Kde 4.6.4 Intel Core i3 2.53 Ghz  Ram 4 Gb
Radeon HD 3670m                       www.diarioubuntu.altervista.org
jerico
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 19127
Iscrizione: lunedì 21 luglio 2008, 23:43
Desktop: Gnome
Distribuzione: Archlinux

Re: ripristinare grub

Messaggio da jerico »

hai due possiblità:
o scarichi il cd di supergrub disk,masterizzi l'immagine su cd che poi avvierai al boot del computer e,seguendo le semplici istruzioni,ripristini il grub di ubuntu.
oppure avvii la live di ubuntu e cono semplici comandi si può fare tranquillamente. (non so se si possa fare anche da fedora)
Avatar utente
Lole
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 450
Iscrizione: domenica 2 novembre 2008, 13:53
Località: Terra (pianeta)
Contatti:

Re: ripristinare grub

Messaggio da Lole »

devo sapere dove sono le partizioni? (per esempio da Gparted dev/sdb1 ecc?)

il sito è http://www.supergrubdisk.org/  ?
Ultima modifica di Lole il domenica 17 maggio 2009, 13:42, modificato 1 volta in totale.
Kubuntu 11.04 Kde 4.6.4 Intel Core i3 2.53 Ghz  Ram 4 Gb
Radeon HD 3670m                       www.diarioubuntu.altervista.org
patel
Accecante Asceta
Accecante Asceta
Messaggi: 23782
Iscrizione: martedì 15 aprile 2008, 20:27
Località: Livorno

Re: ripristinare grub

Messaggio da patel »

fedora ha questo vizio, ma basta che tu copi i comandi di avvio del menu.lst di Ubuntu e li incolli in quello di fedora. Oppure leggi qui
http://wiki.ubuntu-it.org/Amministrazio ... istinoGrub
Ultima modifica di patel il domenica 17 maggio 2009, 13:46, modificato 1 volta in totale.
Un titolo ben azzeccato attira l'attenzione degli esperti in quel campo, fa risparmiare tempo a voi, aumenta la probabilità di successo.
jerico
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 19127
Iscrizione: lunedì 21 luglio 2008, 23:43
Desktop: Gnome
Distribuzione: Archlinux

Re: ripristinare grub

Messaggio da jerico »

col super grub disk ti trova lui tutti i grub presenti e ti chiede quali vuoi ripristinare.
dalla live invece,apri il terminale e digiti

Codice: Seleziona tutto

sudo grub

Codice: Seleziona tutto

find /boot/grub/stage1
ti usciranno le partizioni in cui ci sono i vari grub. tu devi sapere dove hai quello di ubuntu,una volta individuato,sempre nello stesso terminale digiti

Codice: Seleziona tutto

root (hdx,y)
x e y sono le coordinate del tuo grub (esempio root (hd0,2)
poi

Codice: Seleziona tutto

setup (hdx)
x è dove vuoi mettere grub (esempio :mbr del primo disco sarà (hd0)

Codice: Seleziona tutto

quit
riavvia
Avatar utente
Lole
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 450
Iscrizione: domenica 2 novembre 2008, 13:53
Località: Terra (pianeta)
Contatti:

Re: ripristinare grub

Messaggio da Lole »

ok ora provo...
Kubuntu 11.04 Kde 4.6.4 Intel Core i3 2.53 Ghz  Ram 4 Gb
Radeon HD 3670m                       www.diarioubuntu.altervista.org
Avatar utente
Lole
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 450
Iscrizione: domenica 2 novembre 2008, 13:53
Località: Terra (pianeta)
Contatti:

Re: ripristinare grub

Messaggio da Lole »

ok ce l'ho fatta a ripristinare windows e kubuntu 9.04... avevo anche installato ubuntu 8.10 (per 3d per la mia scheda video) e ovviamente fedora... è possibile aggiungerli con supergrubdisk?
potreste spiegarmi brevemente come fare (senza togliere kubuntu)?
Kubuntu 11.04 Kde 4.6.4 Intel Core i3 2.53 Ghz  Ram 4 Gb
Radeon HD 3670m                       www.diarioubuntu.altervista.org
jerico
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 19127
Iscrizione: lunedì 21 luglio 2008, 23:43
Desktop: Gnome
Distribuzione: Archlinux

Re: ripristinare grub

Messaggio da jerico »

devi aggiungerli al menu.lst di ubuntu.
postaci il menu.lst di intrepid e quello non-so-come-si-chiama di fedora ed anche
sudo fdisk -l
Avatar utente
Lole
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 450
Iscrizione: domenica 2 novembre 2008, 13:53
Località: Terra (pianeta)
Contatti:

Re: ripristinare grub

Messaggio da Lole »

allora, il menu.list di intrepid è

Codice: Seleziona tutto

 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		10

## 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=7646c265-c6e5-4aaa-a123-da214b34c48e ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=7646c265-c6e5-4aaa-a123-da214b34c48e

## 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

## 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 8.10, kernel 2.6.27-7-generic
uuid		7646c265-c6e5-4aaa-a123-da214b34c48e
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=7646c265-c6e5-4aaa-a123-da214b34c48e ro quiet splash 
initrd		/boot/initrd.img-2.6.27-7-generic
quiet

title		Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid		7646c265-c6e5-4aaa-a123-da214b34c48e
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=7646c265-c6e5-4aaa-a123-da214b34c48e ro  single
initrd		/boot/initrd.img-2.6.27-7-generic

title		Ubuntu 8.10, memtest86+
uuid		7646c265-c6e5-4aaa-a123-da214b34c48e
kernel		/boot/memtest86+.bin
quiet

### 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/sda1
title		Microsoft Windows XP Home Edition
root		(hd0,0)
savedefault
makeactive
chainloader	+1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb1.
title		Ubuntu 9.04, kernel 2.6.28-11-generic (on /dev/sdb1)
root		(hd1,0)
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=49663edc-23b8-4aa0-9b47-8d139f5aa88a ro quiet splash 
initrd		/boot/initrd.img-2.6.28-11-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb1.
title		Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode) (on /dev/sdb1)
root		(hd1,0)
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=49663edc-23b8-4aa0-9b47-8d139f5aa88a ro single 
initrd		/boot/initrd.img-2.6.28-11-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb1.
title		Ubuntu 9.04, memtest86+ (on /dev/sdb1)
root		(hd1,0)
kernel		/boot/memtest86+.bin  
savedefault
boot

il file menu.lst di fedora è

Codice: Seleziona tutto

#
# Sample boot menu configuration file
#

# Boot automatically after 30 secs.
timeout 30

# By default, boot the first entry.
default 0

# Fallback to the second entry.
fallback 1

# For booting GNU/Hurd
title  GNU/Hurd
root   (hd0,0)
kernel /boot/gnumach.gz root=hd0s1
module /boot/serverboot.gz

# For booting GNU/Linux
title  GNU/Linux
root (hd1,0)
kernel /vmlinuz root=/dev/hdb1
#initrd /initrd.img

# For booting GNU/kFreeBSD
title  GNU/kFreeBSD
root   (hd0,2,a)
kernel /boot/loader.gz

# For booting GNU/kNetBSD
title  GNU/kNetBSD
root   (hd0,2,a)
kernel --type=netbsd /boot/knetbsd.gz

# For booting Mach (getting kernel from floppy)
title  Utah Mach4 multiboot
root   (hd0,2)
pause  Insert the diskette now!!
kernel (fd0)/boot/kernel root=hd0s3
module (fd0)/boot/bootstrap

# For booting FreeBSD
title  FreeBSD
root   (hd0,2,a)
kernel /boot/loader

# For booting NetBSD
title  NetBSD
root   (hd0,2,a)
kernel --type=netbsd /netbsd

# For booting OpenBSD
title  OpenBSD
root   (hd0,2,a)
kernel --type=netbsd /bsd

# For booting OS/2
title OS/2
root  (hd0,1)
makeactive
# chainload OS/2 bootloader from the first sector
chainloader +1
# This is similar to "chainload", but loads a specific file
#chainloader /boot/chain.os2

# For booting Windows NT or Windows95
title Windows NT / Windows 95 boot menu
rootnoverify (hd0,0)
makeactive
chainloader  +1
# For loading DOS if Windows NT is installed
# chainload /bootsect.dos

# For installing GRUB into the hard disk
title Install GRUB into the hard disk
root    (hd0,0)
setup   (hd0)

# Change the colors.
title Change the colors
color light-green/brown blink-red/blue

Da terminale fdisk -|:

Codice: Seleziona tutto

Disco /dev/sda: 81.9 GB, 81964302336 byte
255 testine, 63 settori/tracce, 9964 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x0f100f10

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        4462    35840983+   7  HPFS/NTFS
/dev/sda2            4463        9964    44194815    f  W95 Esteso (LBA)
/dev/sda5            4463        6776    18587173+   7  HPFS/NTFS
/dev/sda6            8358        9964    12908196   83  Linux
/dev/sda7            6777        8357    12699351   83  Linux

Le voci nella tabella delle partizioni non sono nello stesso ordine del disco

Disco /dev/sdb: 41.1 GB, 41110142976 byte
255 testine, 63 settori/tracce, 4998 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0xf5cb0474

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        4812    38652358+  83  Linux
/dev/sdb2            4813        4998     1494045    5  Esteso
/dev/sdb5            4813        4998     1494013+  82  Linux swap / Solaris
Kubuntu 11.04 Kde 4.6.4 Intel Core i3 2.53 Ghz  Ram 4 Gb
Radeon HD 3670m                       www.diarioubuntu.altervista.org
jerico
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 19127
Iscrizione: lunedì 21 luglio 2008, 23:43
Desktop: Gnome
Distribuzione: Archlinux

Re: ripristinare grub

Messaggio da jerico »

allora ,per intrepid dovrebbe bastare incollare questo nel menu.lst primario
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 7646c265-c6e5-4aaa-a123-da214b34c48e
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=7646c265-c6e5-4aaa-a123-da214b34c48e ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 7646c265-c6e5-4aaa-a123-da214b34c48e
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=7646c265-c6e5-4aaa-a123-da214b34c48e ro  single
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu 8.10, memtest86+
uuid 7646c265-c6e5-4aaa-a123-da214b34c48e
kernel /boot/memtest86+.bin
quiet
per fedora non so,non sicapisce. sicuro che il menu.lst di fedora l'hai postato per intero?
in che partizione del fdisk si trova?
jerico
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 19127
Iscrizione: lunedì 21 luglio 2008, 23:43
Desktop: Gnome
Distribuzione: Archlinux

Re: ripristinare grub

Messaggio da jerico »

:)
Avatar utente
Lole
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 450
Iscrizione: domenica 2 novembre 2008, 13:53
Località: Terra (pianeta)
Contatti:

Re: ripristinare grub

Messaggio da Lole »

in quale devo incollare? quello di jaunty? all' inizio o alla fine? (scusa le domande idiote... :))
per fedora pazienza.... Mi sai consigliare qualche distro basata su redhat che non modifichino grub(in modo che lo aggiorni solamente)
Kubuntu 11.04 Kde 4.6.4 Intel Core i3 2.53 Ghz  Ram 4 Gb
Radeon HD 3670m                       www.diarioubuntu.altervista.org
jerico
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 19127
Iscrizione: lunedì 21 luglio 2008, 23:43
Desktop: Gnome
Distribuzione: Archlinux

Re: ripristinare grub

Messaggio da jerico »

ma non è che lo modificano,dipende dove lo installi tu. se lo insalli dove già risiede quello di jaunty lo sovrascrivi.
per intrepid,incollalo alla fine che va bene.
per fedora puoi provare a costruirlo. avevo provato fedora un anno fa per qualche settimanan ma non la conosco.
posta il contenuto di
ls /boot
di fedora e dimmi in quale partizione risiede
Avatar utente
Lole
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 450
Iscrizione: domenica 2 novembre 2008, 13:53
Località: Terra (pianeta)
Contatti:

Re: ripristinare grub

Messaggio da Lole »

vabbè.... non installo più fedora... mi è passata la voglia... infondo mi trovo troppo bene con ubuntu... era solo per provare qualche distro red hat e poi ho dei testi per scuola che se li perdo formattando per sbaglio la partizione di ubuntu mi tocca rifarli da capo...comunque per inserire anche intrepid nel grub cosa devo fare? Per favore elencami in ordine cosa devo fare (ubuntu lo so usare bene ma non voglio causare altri danni soprattutto a windows, che lo usa mio padre)
:)
Kubuntu 11.04 Kde 4.6.4 Intel Core i3 2.53 Ghz  Ram 4 Gb
Radeon HD 3670m                       www.diarioubuntu.altervista.org
jerico
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 19127
Iscrizione: lunedì 21 luglio 2008, 23:43
Desktop: Gnome
Distribuzione: Archlinux

Re: ripristinare grub

Messaggio da jerico »

sudo gedit /boot/grub/menu.lst
Incolli in fondo al file, quello che ti ho indicato prima. Salvi chiudi e prova ad avviare intrepid ( in jaunty la tua ati nn va?)
Avatar utente
Lole
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 450
Iscrizione: domenica 2 novembre 2008, 13:53
Località: Terra (pianeta)
Contatti:

Re: ripristinare grub

Messaggio da Lole »

ora riavvio.... incrociamo le dita... comunque la mia schifosissima radeon x300 non è più supportata dai driver proprietari con xorg server 1.6 :'( e il 3d con quelli open mi bloccano il computer... funzionano solo gli effetti di kwin e compiz...
Kubuntu 11.04 Kde 4.6.4 Intel Core i3 2.53 Ghz  Ram 4 Gb
Radeon HD 3670m                       www.diarioubuntu.altervista.org
jerico
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 19127
Iscrizione: lunedì 21 luglio 2008, 23:43
Desktop: Gnome
Distribuzione: Archlinux

Re: ripristinare grub

Messaggio da jerico »

io ho una x200 e va da dio con gli open...
Avatar utente
Lole
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 450
Iscrizione: domenica 2 novembre 2008, 13:53
Località: Terra (pianeta)
Contatti:

Re: ripristinare grub

Messaggio da Lole »

evvai!!!! funziona tutto, anzi meglio di prima perchè così dopo i 9 secondi parte da solo jaunty, il sistema operativo di punta.... Adesso metto ''risolto''

OT: hai modificato qualcosa allo xorg.conf oppure l' hai lasciato così?
Kubuntu 11.04 Kde 4.6.4 Intel Core i3 2.53 Ghz  Ram 4 Gb
Radeon HD 3670m                       www.diarioubuntu.altervista.org
jerico
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 19127
Iscrizione: lunedì 21 luglio 2008, 23:43
Desktop: Gnome
Distribuzione: Archlinux

Re: [Risolto] ripristinare grub

Messaggio da jerico »

non ho fatto assolutamente nulla. eccolo
Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection
pablo@jaunty:~$
Avatar utente
Lole
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 450
Iscrizione: domenica 2 novembre 2008, 13:53
Località: Terra (pianeta)
Contatti:

Re: [Risolto] ripristinare grub

Messaggio da Lole »

ok grazie ancora della tua pazienza!!! (b2b)
Kubuntu 11.04 Kde 4.6.4 Intel Core i3 2.53 Ghz  Ram 4 Gb
Radeon HD 3670m                       www.diarioubuntu.altervista.org
Scrivi risposta

Ritorna a “Installazione e aggiornamento del sistema operativo”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 4 ospiti