[Risolto] Aggiornamento versione menu.lst...XP scomparso

Problemi riscontrati durante l'installazione di Ubuntu, degli aggiornamenti e degli avanzamenti del sistema.
yghson
Prode Principiante
Messaggi: 168
Iscrizione: martedì 27 ottobre 2009, 14:40

[Risolto] Aggiornamento versione menu.lst...XP scomparso

Messaggio da yghson »

Ragazzi ho cercato un pò in giro sul forum e anche googlando ma non ho trovato quello che cerco.
Stasera ho fatto un aggiornamento e come succede ogni tanto mi ha chiesto se volevo aggiornare il menu.lst...le altre volte ho lasciato la versione che avevo ma stasera ho avuto l'azzardo di aggiornare a "versione del pacchetto" (o qualcosa del genere)....ma al riavvio oltre a 5-6 Kernel linux non c'era null'altro...mi è scomparso XP...fosse per me andrebbe anche bene così ma purtroppo il pc non lo uso solo io e devo assolutamente trovarlo...qualcuno sa come posso fare? ve ne sarei infinitamente grato...
Questo è quello che mi da

Codice: Seleziona tutto

sudo gedit /boot/grub/menu.lst
# 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 6

## 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=1ec9fb15-3570-4f84-80c9-86fabde8c40d ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=1ec9fb15-3570-4f84-80c9-86fabde8c40d

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

## 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 10.04.2 LTS, kernel 2.6.32-30-generic
uuid 1ec9fb15-3570-4f84-80c9-86fabde8c40d
kernel /boot/vmlinuz-2.6.32-30-generic root=UUID=1ec9fb15-3570-4f84-80c9-86fabde8c40d ro quiet splash
initrd /boot/initrd.img-2.6.32-30-generic
quiet

title Ubuntu 10.04.2 LTS, kernel 2.6.32-30-generic (recovery mode)
uuid 1ec9fb15-3570-4f84-80c9-86fabde8c40d
kernel /boot/vmlinuz-2.6.32-30-generic root=UUID=1ec9fb15-3570-4f84-80c9-86fabde8c40d ro  single
initrd /boot/initrd.img-2.6.32-30-generic

title Ubuntu 10.04.2 LTS, memtest86+
uuid 1ec9fb15-3570-4f84-80c9-86fabde8c40d
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
Ultima modifica di yghson il sabato 19 marzo 2011, 12:09, modificato 1 volta in totale.
yghson
Prode Principiante
Messaggi: 168
Iscrizione: martedì 27 ottobre 2009, 14:40

Re: Aggiornamento versione menu.lst...XP scomparso

Messaggio da yghson »

se può essere d'aiuto questo comando

Codice: Seleziona tutto

sudo fdisk -l
mi da:
andrea@andrea-desktop:~$ sudo fdisk -l
[sudo] password for andrea:

Disco /dev/sda: 203.9 GB, 203928109056 byte
255 testine, 63 settori/tracce, 24792 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0xf259f259

Dispositivo Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1      10199    81923436    7  HPFS/NTFS
/dev/sda2          10200      12330    17117257+  83  Linux
/dev/sda3          12331      12853    4200997+  82  Linux swap / Solaris
/dev/sda4          12854      24792    95900017+  7  HPFS/NTFS
andrea@andrea-desktop:~$
Avatar utente
Megatux
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 11793
Iscrizione: lunedì 21 settembre 2009, 12:47
Desktop: Ubuntu
Distribuzione: Ubuntu 22.04.3 LTS x86_64
Sesso: Maschile

Re: Aggiornamento versione menu.lst...XP scomparso

Messaggio da Megatux »

Hai provato a dare:

Codice: Seleziona tutto

sudo update-grub
?
Il mondo sarebbe migliore con Gnu/Linux Ubuntu!
Avatar utente
vaillant
Rampante Reduce
Rampante Reduce
Messaggi: 8319
Iscrizione: domenica 15 marzo 2009, 9:54
Distribuzione: Ubuntu Server 20.04 LTS
Sesso: Maschile
Località: Modica

Re: Aggiornamento versione menu.lst...XP scomparso

Messaggio da vaillant »

Se non funziona con il comando di Megatux, prova a digitare

Codice: Seleziona tutto

sudo os-prober
e vediamo se almeno lo rileva...
yghson
Prode Principiante
Messaggi: 168
Iscrizione: martedì 27 ottobre 2009, 14:40

Re: Aggiornamento versione menu.lst...XP scomparso

Messaggio da yghson »

Ciao ragazzi grazie delle risposte. con il comando di megatux mi da:
andrea@andrea-desktop:~$ sudo update-grub
[sudo] password for andrea:
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.32-30-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
con il comando di Vaillant invece:
andrea@andrea-desktop:~$ sudo os-prober
/dev/sda1:Microsoft Windows XP Professional:Windows:chain
andrea@andrea-desktop:~$
da quello che ho capito almeno lo rileva.
patel
Accecante Asceta
Accecante Asceta
Messaggi: 23782
Iscrizione: martedì 15 aprile 2008, 20:27
Località: Livorno

Re: Aggiornamento versione menu.lst...XP scomparso

Messaggio da patel »

Codice: Seleziona tutto

sudo gedit /boot/grub/menu.lst
aggiungi

Codice: Seleziona tutto

title Windows
root (hd0,0)
makeactive
chainloader +1
salvi e riavvii
Un titolo ben azzeccato attira l'attenzione degli esperti in quel campo, fa risparmiare tempo a voi, aumenta la probabilità di successo.
yghson
Prode Principiante
Messaggi: 168
Iscrizione: martedì 27 ottobre 2009, 14:40

Re: Aggiornamento versione menu.lst...XP scomparso

Messaggio da yghson »

ho aggiunto come mi consigliavi...problema risolto!!!

Grazie ancora ragazzi!!!
Scrivi risposta

Ritorna a “Installazione e aggiornamento del sistema operativo”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 7 ospiti