Problemini con grub!

Problemi riscontrati durante l'installazione di Ubuntu, degli aggiornamenti e degli avanzamenti del sistema.
Roh
Prode Principiante
Messaggi: 32
Iscrizione: mercoledì 23 aprile 2008, 17:28

Problemini con grub!

Messaggio da Roh »

avevo installato sul mio pc xp e ubuntu 7.10
oggi ho deciso di scaricare 8.10 e sovrascriverlo al 7.10 il problema è che al boot mi dice che nn riesce a a caric i SO!
grazie aSuper Grub Disk riesco a riaccedere ai 2 SO ma nn a ripristinare il Grub!
come posso aggiustare il tutto???grazie in anticipo!
Avatar utente
AlexSistemiFree
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1373
Iscrizione: venerdì 15 dicembre 2006, 9:43

Re: Problemini con grub!

Messaggio da AlexSistemiFree »

Se hai un solo hdd ed installavi grub nell'mbr non ci sarebbero stati problemi.
Se hai più hdd e l'ho hai installato su un'altro ecco il problema.

Ripristino Grub
Avatar utente
alberto t.
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2977
Iscrizione: domenica 10 febbraio 2008, 17:52

Re: Problemini con grub!

Messaggio da alberto t. »

ciao
postaci la configurazione del file /boot/grub/menu.lst
Roh
Prode Principiante
Messaggi: 32
Iscrizione: mercoledì 23 aprile 2008, 17:28

Re: Problemini con grub!

Messaggio da Roh »

scusa sn un p; nuovo di ambiente linux...come faccio ad accedere a /boot/grub/menu.lst
Avatar utente
alberto t.
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2977
Iscrizione: domenica 10 febbraio 2008, 17:52

Re: Problemini con grub!

Messaggio da alberto t. »

ciao
vai in filesystem-boot-grub-menu.lst
Roh
Prode Principiante
Messaggi: 32
Iscrizione: mercoledì 23 aprile 2008, 17:28

Re: Problemini con grub!

Messaggio da Roh »

spero di aver fatto tutto giusto



# 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=57ab5907-4d4e-4871-9c12-12de9f464f3e ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,3)

## 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.04, kernel 2.6.24-16-generic
root (hd1,3)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=57ab5907-4d4e-4871-9c12-12de9f464f3e ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd1,3)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=57ab5907-4d4e-4871-9c12-12de9f464f3e ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04, memtest86+
root (hd1,3)
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/sdb1
title Windows Vista/Longhorn (loader)
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Avatar utente
alberto t.
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2977
Iscrizione: domenica 10 febbraio 2008, 17:52

Re: Problemini con grub!

Messaggio da alberto t. »

ciao
il file xorg.conf è apposto.
sei sicuro di aver uttilizzato nella maniera coretta il super grub disk??
fai una cosa
tramite super grub disk cancella gurb e poi installalo nuovamente.
ciao
Roh
Prode Principiante
Messaggi: 32
Iscrizione: mercoledì 23 aprile 2008, 17:28

Re: Problemini con grub!

Messaggio da Roh »

ti dispiacerebbe solo dir,i i passaggi corretti che ho paura di fare dei danni e perdere xp::::
Avatar utente
alberto t.
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2977
Iscrizione: domenica 10 febbraio 2008, 17:52

Re: Problemini con grub!

Messaggio da alberto t. »

ciao
guarda quà: http://supergrub.forjamari.linex.org/?s ... umentation
comunque stai tranquillo, super grub disk non modifica la struttura delle partizioni, ma solo dell'mbr.
vai tranquillo!  ;)
ciao
Roh
Prode Principiante
Messaggi: 32
Iscrizione: mercoledì 23 aprile 2008, 17:28

Re: Problemini con grub!

Messaggio da Roh »

ok sn riuscito a disinstallare grub,ora sn sul teminale e che provo a reinstallarlo
ho trovato sulla rete questi comandi:
    * sudo grub
    * > root (hd0,0)
    * > setup (hd0)
    * > exit
pero su setup (hd0)
mi dice:cannot mount selected partition....
esattamente ora che devo fare???

ma nn ce anche un comando #update grub????



ho provato ad utilizzare update grub ma mi dice:
me@me-desktop:~$ update-grub
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permesso negato
Searching for GRUB installation directory ... found: /boot/grub
findfs: Impossibile risolvere 'UUID=57ab5907-4d4e-4871-9c12-12de9f464f3e'
Cannot determine root device.  Assuming /dev/hda1
This error is probably caused by an invalid /etc/fstab
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
cp: impossibile creare il file normale `/boot/grub/menu.lst~': Permesso negato
me@me-desktop:~$


uff che faccio???io lo voglio ubuntu sul mio pc!
Ultima modifica di Roh il venerdì 25 aprile 2008, 14:15, modificato 1 volta in totale.
Avatar utente
alberto t.
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2977
Iscrizione: domenica 10 febbraio 2008, 17:52

Re: Problemini con grub!

Messaggio da alberto t. »

ciao
* sudo grub
    * > root (hd0,0)
    * > setup (hd0)
    * > exit
pero su setup (hd0)
mi dice:cannot mount selected partition....
su questo non so aiutarti. :-\
comunque dopo aver disinstallato grub, reinstallalo con il super grub disk, è il metodo meno doloroso e faticoso.
ciao
Avatar utente
telpe
Prode Principiante
Messaggi: 107
Iscrizione: giovedì 8 settembre 2005, 20:21
Desktop: LXDE
Distribuzione: ubuntu 22.04
Sesso: Maschile
Località: Milano

Re: Problemini con grub!

Messaggio da telpe »

La partizione di Hardy è hd1,3 non hd0,0 è per questo che non può fare il mount.
Roh
Prode Principiante
Messaggi: 32
Iscrizione: mercoledì 23 aprile 2008, 17:28

Re: Problemini con grub!

Messaggio da Roh »

ciao vi racconto tutto cio che ho fatto senza avere alcun risultato:

allora come ho detto ho cancellato grub dal mbr
dopodiche ho cercato di reinstallarlo con ubuntu con il comando
sudo grub
    > root (hd1,3)
    > setup (hd0)
    > exit

e effettivamente lo ha reinstallato pero nn funziona,qualsiasi opzione scelgo lui mi dice error22:No such partition
pero con super grub disk se faccio easy live swap e poi parto dal boot del cd funziona!
qlk1 sa come fare per far diventare questo easy live swap effettivo anche nel boot del pc se si mi potrebbe dire bene i passi che devo svolgere?grazie e scusate del disturbo


ma sara linux che nn mi vuole???'
Roh
Prode Principiante
Messaggi: 32
Iscrizione: mercoledì 23 aprile 2008, 17:28

Re: Problemini con grub!

Messaggio da Roh »

allora nessuno puo darmi una mano?se conosce anche qlk maniera alternativa x reinstallarlo in maniera che funzioni...
cacca nella cacca
Prode Principiante
Messaggi: 157
Iscrizione: giovedì 13 marzo 2008, 22:21

Re: Problemini con grub!

Messaggio da cacca nella cacca »

magari puoi dare

Codice: Seleziona tutto

sudo update-grub
da terminale... così ti trova tutti i Sistemi Operativi da solo da soli
Acer Aspire 5920g
Intel® Core™2 Duo Mobile Processor T5750
ATI Mobility Radeon™ HD 3650
Roh
Prode Principiante
Messaggi: 32
Iscrizione: mercoledì 23 aprile 2008, 17:28

Re: Problemini con grub!

Messaggio da Roh »

mi dice questo....
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.24-16-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

...che significa?
Avatar utente
Luka7
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 559
Iscrizione: mercoledì 22 agosto 2007, 19:37

Re: Problemini con grub!

Messaggio da Luka7 »

guarda, non sono un esperto ma FORSE facendo così può funzionare:
Inserisci la live di ubuntu che ti monta in automatico i dischi
trovi dove è montato hardy (ad esmepio /media/hardy)
apri un terminale e fai sudo chroot (al posto di ci metti il percorso di hardy)
poi fai grub-install che DOVREBBE re-installare grib come se fossi su hardy

ma aspetta che qualcuno che ne sa più di me lo confermi

(sembra quasi che tu ce l'abbia fatta... come non detto)
Roh
Prode Principiante
Messaggi: 32
Iscrizione: mercoledì 23 aprile 2008, 17:28

Re: Problemini con grub!

Messaggio da Roh »

ma io riesco ad accedere a ubuntu senza il live solo che se lo faccio da hardy mi dice:

install_device not specified.
Usage: grub-install [OPTION] install_device
Install GRUB on your drive.

  -h, --help              print this message and exit
  -v, --version          print the version information and exit
  --root-directory=DIR    install GRUB images under the directory DIR
                          instead of the root directory
  --grub-shell=FILE      use FILE as the grub shell
  --no-floppy            do not probe any floppy drive
  --force-lba            force GRUB to use LBA mode even for a buggy
                          BIOS
  --recheck              probe a device map even if it already exists

INSTALL_DEVICE can be a GRUB device name or a system device filename.

grub-install copies GRUB images into the DIR/boot directory specfied by
--root-directory, and uses the grub shell to install grub into the boot
sector.

Report bugs to .


tutto cio che significa?
Avatar utente
Luka7
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 559
Iscrizione: mercoledì 22 agosto 2007, 19:37

Re: Problemini con grub!

Messaggio da Luka7 »

significa che devi specificare dove installare grub
prova con

Codice: Seleziona tutto

grub-install /dev/hda1
oppure con

Codice: Seleziona tutto

grub-install (hd0,0)
Roh
Prode Principiante
Messaggi: 32
Iscrizione: mercoledì 23 aprile 2008, 17:28

Re: Problemini con grub!

Messaggio da Roh »

mi dice questo:

roberto@roberto-desktop:~$ grub-install (hd0,0)
bash: syntax error near unexpected token `hd0,0'
roberto@roberto-desktop:~$ grub-install hd0
rm: impossibile rimuovere `/boot/grub/stage1': Permesso negato
roberto@roberto-desktop:~$ grub-install /dev/hda1
/dev/hda1: Not found or not a block device.
roberto@roberto-desktop:~$ grub-install /dev/sdb4
rm: impossibile rimuovere `/boot/grub/stage1': Permesso negato
Scrivi risposta

Ritorna a “Installazione e aggiornamento del sistema operativo”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 7 ospiti