Pagina 1 di 2

(Risolto) PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 15:37
da Ðãve
ciao a tutti

ho deciso di cancellare xp dal pc sostituendolo con kde 4.2

tutto ok perchè non mi ha toccato ubuntu, però durante l'installazione mi ha dato un errore nell'installare il grub forse perchè già presente  :-\

ora infatti è come prima e mi da l'opzione per xp.

come la cambio con quella di kde ???

Grazie

ps. questo è il codice:

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=ad27e02f-4626-4a42-a692-caa30c092b3a ro

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

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

## 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 vga=773

## 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		(hd0,2)
kernel		/vmlinuz-2.6.24-16-generic root=UUID=ad27e02f-4626-4a42-a692-caa30c092b3a ro quiet splash
initrd		/initrd.img-2.6.24-16-generic
quiet

title		Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root		(hd0,2)
kernel		/vmlinuz-2.6.24-16-generic root=UUID=ad27e02f-4626-4a42-a692-caa30c092b3a ro single
initrd		/initrd.img-2.6.24-16-generic

title		Ubuntu 8.04, memtest86+
root		(hd0,2)
kernel		/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/sda2
title		Microsoft Windows XP Home Edition
root		(hd0,1)
savedefault
makeactive
chainloader	+1

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 16:12
da streetcross
cancelli

Codice: Seleziona tutto

title		Microsoft Windows XP Home Edition
root		(hd0,1)
savedefault
makeactive
chainloader	+1
e metti

Codice: Seleziona tutto

title		Ubuntu 8.04, kernel 2.6.24-16-generic
root		(hd0,2)
kernel		/vmlinuz-2.6.24-16-generic root=UUID=ad27e02f-4626-4a42-a692-caa30c092b3a ro quiet splash
initrd		/initrd.img-2.6.24-16-generic
quiet

title		Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root		(hd0,2)
kernel		/vmlinuz-2.6.24-16-generic root=UUID=ad27e02f-4626-4a42-a692-caa30c092b3a ro single
initrd		/initrd.img-2.6.24-16-generic

title		Ubuntu 8.04, memtest86+
root		(hd0,2)
kernel		/memtest86+.bin
quiet
cambiando ubuntu con kubuntu (sciccheria) metti il kernel e l'intird giusti e la partizione root e uid corretti... se dai

Codice: Seleziona tutto

sudo update grub 
forse trova da solo

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 16:22
da Ðãve
streetcross ha scritto: cambiando ubuntu con kubuntu (sciccheria) metti il kernel e l'intird giusti e la partizione root e uid corretti... se dai

Codice: Seleziona tutto

sudo update grub 
forse trova da solo
con sudo update grub mi dice comando non trovato  ::)

non saprei dove andare a prenderli il kernel e le altre opzioni giuste...mi aiuti??

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 16:34
da et4beta
Strett è andato via, posta il risultato di:
sudo fdisk -l

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 16:37
da Ðãve
thanks eccolo  :)

Codice: Seleziona tutto

Disco /dev/sda: 80.0 GB, 80060424192 byte
240 heads, 63 sectors/track, 10341 cylinders
Units = cilindri of 15120 * 512 = 7741440 bytes
Disk identifier: 0x8be60f87

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1            7051       10341    24879960   83  Linux
/dev/sda2   *         498        6726    47091240    7  HPFS/NTFS
/dev/sda3               1         497     3757288+  83  Linux
/dev/sda4            6727        7050     2449440   82  Linux swap / Solaris

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 16:39
da et4beta
Ora dai:
sudo vol_id /dev/sda1
e posta il risultato

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 16:41
da Ðãve
eccolo

Codice: Seleziona tutto

ID_FS_USAGE=filesystem
ID_FS_TYPE=ext3
ID_FS_VERSION=1.0
ID_FS_UUID=ad27e02f-4626-4a42-a692-caa30c092b3a
ID_FS_UUID_ENC=ad27e02f-4626-4a42-a692-caa30c092b3a
ID_FS_LABEL=
ID_FS_LABEL_ENC=
ID_FS_LABEL_SAFE=

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 16:42
da streetcross
hai ragione

Codice: Seleziona tutto

sudo update-grub

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 16:44
da et4beta
streetcross ha scritto: hai ragione

Codice: Seleziona tutto

sudo update-grub
Ops! È Tornato street! Allora segui lui.

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 16:45
da streetcross
et4beta ha scritto:
streetcross ha scritto: hai ragione

Codice: Seleziona tutto

sudo update-grub
Ops! È Tornato street! Allora segui lui.
vabbè non è che sono il detentore della verità  ;)

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 16:48
da et4beta
streetcross ha scritto:
et4beta ha scritto:
streetcross ha scritto: hai ragione

Codice: Seleziona tutto

sudo update-grub
Ops! È Tornato street! Allora segui lui.
vabbè non è che sono il detentore della verità  ;)
Ci mancherebbe! Ero intervenuto solo perché pensavo te ne fossi andato......... eppoi c'è qualcosa che non mi torna.
L'uuid di sda1 è lo stesso che c'è ora nelle righe del menu.lst postato, solo che sono riferite a (hd0,2) ovvero ad sda3 ..... boh!

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 16:49
da Ðãve
ok andato

Codice: Seleziona tutto

davide@Davide-desktop:~$ sudo update-grub
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: /vmlinuz-2.6.24-24-generic
Found kernel: /vmlinuz-2.6.24-18-generic
Found kernel: /vmlinuz-2.6.24-16-generic
Found kernel: /memtest86+.bin
Updating /boot/grub/menu.lst ... done
però riguardandolo con gedit è identico a prima  ::)

provo a riavviare e vediamo che succede

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 16:53
da streetcross
no allora non te l'ha trovato, forse mi sbaglio oramai sono abituato a grub2... comunque usa la via manuale allora

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 16:55
da Ðãve
streetcross ha scritto: no allora non te l'ha trovato, forse mi sbaglio oramai sono abituato a grub2... comunque usa la via manuale allora
come non detto
è uguale a prima  >:(


la via manuale  ???
ecco questo è un problema

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 16:58
da streetcross
no ti ho pur spiegato, metti quelle righe è molto semplice

kernel e initrd li trovi nella /boot di kubuntu
la partizione la vedi con sudo fdisk -l (ovviamente la traduci in "hd0,0" o quel che è)
l'uuid lo vedi con ls -l /dev/disk/by-uuid/

molto semplice

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 17:07
da Ðãve
streetcross ha scritto: no ti ho pur spiegato, metti quelle righe è molto semplice

kernel e initrd li trovi nella /boot di kubuntu
la partizione la vedi con sudo fdisk -l (ovviamente la traduci in "hd0,0" o quel che è)
l'uuid lo vedi con ls -l /dev/disk/by-uuid/

molto semplice

ok si però sono io che ho qualche problema  :)

il boot di kubuntu non cè lo  (yes) (ho installato kde 4.2 dal cd e mi sembra sia opensuse 11)
per la partizione ok
l'uuid invece mi da questo

Codice: Seleziona tutto

totale 0
lrwxrwxrwx 1 root root 10 2009-05-11 18:51 33355281-b332-4c5b-9a93-91ea80a9e265 -> ../../sda3
lrwxrwxrwx 1 root root 10 2009-05-11 18:51 ad27e02f-4626-4a42-a692-caa30c092b3a -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-05-11 18:51 cc39f944-406f-4221-9dd3-f16cde0f8a14 -> ../../sda2
lrwxrwxrwx 1 root root 10 2009-05-11 18:51 fde7b093-412c-4042-b2e8-f580cbbfa5bb -> ../../sda4

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 17:12
da streetcross
ah ok, avevi detto solo kde pensavo a kubuntu, fa lo stesso comunque, al posto di scrivere kubuntu metti opesuse o quello che vuoi

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 17:18
da Ðãve
ok grazie mille ^^

l'ultimo problema che mi sorge è questo: kernel e initrd

ho guardato nella cartella boot ma non cè niente che centri con kde  :-\

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 17:26
da streetcross
Ðãve ha scritto: ok grazie mille ^^

l'ultimo problema che mi sorge è questo: kernel e initrd

ho guardato nella cartella boot ma non cè niente che centri con kde  :-\
ma devi guardare nella cartella /boot di suse lì vedi la versione dell'initrd e del kernel

Re: PROBLEMI CON GRUB AL BOOT

Inviato: lunedì 11 maggio 2009, 19:07
da Ðãve
streetcross ha scritto: ma devi guardare nella cartella /boot di suse lì vedi la versione dell'initrd e del kernel
si infatti vero. me ne sono accorto dopo aver scritto

:'( però non sono ancora riuscito a sistemare

ho riprovato anche reinstallando con il cd di kde ma quando arriva a parlare di boot da errore: "impossibile selezionare la partizione"


ps. manualmente le sto provando un pò tutte
per la partizione

Codice: Seleziona tutto

Disco /dev/sda: 80.0 GB, 80060424192 byte
240 heads, 63 sectors/track, 10341 cylinders
Units = cilindri of 15120 * 512 = 7741440 bytes
Disk identifier: 0x8be60f87

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1            7051       10341    24879960   83  Linux
/dev/sda2   *         498        6726    47091240    7  HPFS/NTFS
/dev/sda3               1         497     3757288+  83  Linux
/dev/sda4            6727        7050     2449440   82  Linux swap / Solaris

Le voci nella tabella delle partizioni non sono nello stesso ordine del disco
è la sda2 e come la traduco??