Pagina 1 di 1

[Risolto] [Grub] boot ubuntu 9.04 e sabayon 4.1

Inviato: sabato 30 maggio 2009, 16:33
da tapircik
Salve a tutti. Ho installato sabayon sullo stesso hd sul quale ho ubuntu e winxp. All'avvio del grub di ubuntu non è possibile avviare sabayon e se avvio sabayon con il super grub disk, al riavvio win non è in lista e ubuntu non si avvia. La partizione in cui è installato sabayon è indicata con "%". Ho seguito varie discussioni sull'argomento ma non ho risolto niente. Questo è il grub list di ubuntu:

Codice: Seleziona tutto

default 0

timeout 10



### 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=ac4576e8-1f11-423a-b501-c2983865ab0e ro



## default grub root device

## e.g. groot=(hd0,0)

# groot=ac4576e8-1f11-423a-b501-c2983865ab0e



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



## 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.04, kernel 2.6.28-12-generic

kernel /boot/vmlinuz-2.6.28-12-generic root=UUID=ac4576e8-1f11-423a-b501-c2983865ab0e ro quiet splash

initrd /boot/initrd.img-2.6.28-12-generic



title Ubuntu 9.04, kernel 2.6.28-12-generic (recovery mode)

kernel /boot/vmlinuz-2.6.28-12-generic root=UUID=ac4576e8-1f11-423a-b501-c2983865ab0e ro  single

initrd /boot/initrd.img-2.6.28-12-generic



title Ubuntu 9.04, memtest86+

kernel /boot/memtest86+.bin



### END DEBIAN AUTOMAGIC KERNELS LIST



title Other operating systems:

root



title Windows XP Professional x64 Edition

root (hd0,0)

chainloader +1

savedefault

makeactive



title Sabayon 4.1 x86_64

root (hd0,6)

kernel /boot/kernel-genkernel-x86_64-2.6.29-sabayon ro

initrd /boot/initramfs-genkernel-x86_64-2.6.29-sabayon

chainloader +1

savedefault

makeactive
e questo è il risultato di fdisk

Codice: Seleziona tutto

ru@ru-desktop:~$ sudo fdisk -l

Disco /dev/sda: 160.0 GB, 160041885696 byte
255 testine, 63 settori/tracce, 19457 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x11ae11ae

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3187    25599546    7  HPFS/NTFS
/dev/sda2            3188       19160   128303122+   5  Esteso
/dev/sda3           19161       19457     2385652+  82  Linux swap / Solaris
/dev/sda5            3188        3735     4401778+   7  HPFS/NTFS
/dev/sda6            3736       15335    93176968+  83  Linux
/dev/sda7           15336       19160    30724281   83  Linux

ru@ru-desktop:~$ sudo /boot/grub/menu.lst
sudo: /boot/grub/menu.lst: command not found
ru@ru-desktop:~$ sudo gedit /boot/grub/menu.lst
ru@ru-desktop:~$ sudo grub
Probing devices to guess BIOS drives. This may take a long time.

       [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]
grub> find /boot/grub/stage1
find /boot/grub/stage1
 (hd0,5)
 (hd0,6)
grub> quit
quit
ru@ru-desktop:~$ 

Il grub è presente sia nella partizione di ubuntu che in quella di sabayon. Spero che qualcuno mi aiuti... ciao

Re: [Grub] boot ubuntu 9.04 e sabayon 4.1

Inviato: sabato 30 maggio 2009, 16:43
da patel
se Sabayon è in sda6 lo fai partire con

Codice: Seleziona tutto

title Sabayon
configfile 	(hd0,5)/boot/grub/menu.lst
se invece è in sda7

Codice: Seleziona tutto

title Sabayon
configfile 	(hd0,6)/boot/grub/menu.lst

Re: [Grub] boot ubuntu 9.04 e sabayon 4.1

Inviato: sabato 30 maggio 2009, 16:45
da tapircik
sabayon è in sda7. Non ho ben capito cosa devo fare...

Re: [Grub] boot ubuntu 9.04 e sabayon 4.1

Inviato: sabato 30 maggio 2009, 17:07
da patel
inserisci nel menu.lst di Ubuntu al posto di

Codice: Seleziona tutto

title Sabayon 4.1 x86_64
root (hd0,6)
kernel /boot/kernel-genkernel-x86_64-2.6.29-sabayon ro
initrd /boot/initramfs-genkernel-x86_64-2.6.29-sabayon
chainloader +1
savedefault
makeactive
che immagino abbia inserito tu, quello che ti ho detto:

Codice: Seleziona tutto

title Sabayon
configfile 	(hd0,6)/boot/grub/menu.lst

Re: [Grub] boot ubuntu 9.04 e sabayon 4.1

Inviato: sabato 30 maggio 2009, 18:07
da tapircik
(good)funziona! Grazie Patel! (b2b)

Re: [Grub] boot ubuntu 9.04 e sabayon 4.1

Inviato: domenica 21 marzo 2010, 15:41
da pizzaEmandolino
tapircik ha scritto: (good)funziona! Grazie Patel! (b2b)
chiedo scusa funge anche al contrario?

Nel senso se dal menu.lst di sabayon metto

title Ubuntu
configfile (hd0,0)/boot/grub/menu.lst

supponendo che ubuntu sia in /dev/sda1 riconosce ubutnu?

Re: [Risolto] [Grub] boot ubuntu 9.04 e sabayon 4.1

Inviato: domenica 21 marzo 2010, 15:46
da patel
se ubuntu è 9.10 devi inserire

Codice: Seleziona tutto

title Ubuntu
kernel 	(hd0,0)/boot/grub/core.img