Risultati da 1 a 12 di 12

Discussione: [Ubuntu] impostare grub per avvio dual boot

  1. #1
    Senior Member
    Data Registrazione
    13-12-2006
    Località
    Dintorni Reggio Emilia...
    Messaggi
    455

    [Ubuntu] impostare grub per avvio dual boot

    Salve a tutti!!
    Ho installato ubuntu 8.04 su una partizione del mio hd.
    All`avvio mi carica direttamente windows, anche dopo aver consultato svariate guide per modificare il file menu.lst ma ancora nulla.
    per altro prima riuscivo ad avviare ubuntu inserendo il cd di installazione eforzando l`avvio del boot manager ora invece quando lo faccio se provo poi ad avviare ubuntu mi da error 17 e per windows file NTSN (o qualcosa di simile ) mancante.
    Cosi ora mi avvia solo windows e non riesco a impostare nulla da che cosa parto?
    Pero ora ho avviato il live cd e provato a modificare da qui il file menu.lst ma non riesco ad aprilo.

    Un altro dubbio che mi e` sorto e che io ho installato acronis secure zone con l-avvio al boot di un utility che mi permette in caso di danneggiamento del S.O. di ripristinarlo.
    Forse e` questo che impedisce il corretto funzionamento? anche se dubito fortemente ma comunque lo dico......

    In ogni caso spiego la configurazione dei mie hd:
    hd 0
    partizioni:
    0 windows
    1 ubuntu (che non parte)
    2 dati

    hd 1
    dati (del tutto fuori dalla situazione...ma c`e l`ho e lo dico )

    ovviamente ho settato boot di windows da hd (0,0)
    e ubuntu da hd (0,1)
    Risultato fdisk -l

    Codice:
    Disk /dev/hdb: 81.9 GB, 81964302336 bytes
    255 heads, 63 sectors/track, 9964 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x68bf6549
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/hdb1   *           1        4701    37760751    7  HPFS/NTFS
    /dev/hdb2            4702        9964    42275047+   5  Extended
    /dev/hdb5            4702        9964    42275016   bc  Unknown
    
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xb98cb98c
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1       12749   102406311    7  HPFS/NTFS
    /dev/sda3           12750       60801   385977690    f  W95 Ext'd (LBA)
    /dev/sda5           25498       60801   283579348+   7  HPFS/NTFS
    /dev/sda6           12750       24973    98189217   83  Linux
    /dev/sda7           24974       25497     4208998+  82  Linux swap / Solaris
    
    Partition table entries are not in disk order
    Risultato di: sudo gedit /boot/grub/menu.lst eseguito da live cd menu.lst vuoto.

    Grazie per l`aiuto!!
    Windows 7 Ultimate x64 Intel core 2 Duo E6550 2,33 Ghz 2 GB ram ddr2
    Asrock G31M-S Ati Randeon X700 series Hd 500 Gb segate SATA + Hd 500 Gb SATA

  2. #2
    Software Zone Maniac L'avatar di deviantdark
    Data Registrazione
    31-03-2007
    Località
    /home/deviantdark
    Messaggi
    2.153
    Citazione Originariamente Scritto da inconsapevole Visualizza Messaggio
    Risultato di: sudo gedit /boot/grub/menu.lst eseguito da live cd menu.lst vuoto.
    Beh, è chiaro.
    Se lo fai da liveCD la cartella /boot sarà quella "provvisoria" della live session.
    Sarebbe opportuno controllare il tuo menu.lst reale, quindi fai così: avvia il liveCD, poi vai su Risorse > Sistema > Computer.
    Avrai i due dischi interni segnati come unmounted.
    Monta la partizione dove c'è ubuntu, e supponiamo la chiami "disk", montata all'interno di /media.
    Questi dettagli ovviamente sono arbitrari, sta a te poi individuare esattamente dove viene montata la partizione e come viene etichettata.
    Ponendo /media/disk come disco [partizione] di ubuntu, dai da terminale:

    Codice:
    sudo gedit /media/disk/boot/grub/menu.lst
    Quello sarà il menu.lst autentico.
    Faccelo vedere in un commento a questo thread.

    Poi non ho capito: tu hai due dischi, ma quello da 80GB è quello dei dati, vero? E perché viene chiamato "hdb", mentre quello da 500GB è chiamato "sda"? Sono tutti e due IDE? o comunque che interfaccia hanno i dischi?

    A quanto vedo hai una tabella delle partizioni piuttosto incasinata.
    Io ti consiglio di fare così: salva tutto quello che è più importante prima di procedere oltre.
    Poi una bella formattazione del disco dei dati sarebbe auspicabile, in modo da avere un solo blocco con filesystem in NTFS [se lo devi vedere anche da Windows], o meglio in ext3 [se lo devi vedere solo da Ubuntu].

    Per quanto riguarda il disco grande invece... ci sono due partizioni NTFS e una che riporta la dicitura "W95 Ext'd (LBA)". Che diamine è? Mai sentita sta cosa...
    Pure lì... un bel casino.
    E ci credo che Ubuntu non ti parte...
    Coordinatore ufficiale del progetto spreadubuntu

  3. #3
    Senior Member
    Data Registrazione
    13-12-2006
    Località
    Dintorni Reggio Emilia...
    Messaggi
    455
    Allora i dischi sono quello da 500 sata e quello da 80 ide.
    Del casino non dovrebeb essercene perchè ho fatto tutto con estrme attenzione.
    Ripeto ho su quello da 500 3 partizioni:
    1 windows
    2 per dati
    3 per linux che al momento dell'installazione dopo avergli dato quella partizione come vuota avrà lui stesso ripartizionato per i suoi utilizzi che io non so....e non so come l'abbia partizionata.

    Poi ho l'hd da 80 per solo i dati non è partizionato...
    Cioè c'e solo 1 partizione ntfs e una nascosta creata da acronis true image (come già ho spiegato)
    Se le partizioni son incasinate beh e dovuto a ubuntu allora....ci ho messo 1 sacco per organizzarle in modo ottimale
    Windows 7 Ultimate x64 Intel core 2 Duo E6550 2,33 Ghz 2 GB ram ddr2
    Asrock G31M-S Ati Randeon X700 series Hd 500 Gb segate SATA + Hd 500 Gb SATA

  4. #4
    Software Zone Maniac L'avatar di deviantdark
    Data Registrazione
    31-03-2007
    Località
    /home/deviantdark
    Messaggi
    2.153
    ..o magari le hai incasinate tu in maniera inconsapevole


    Lasciando da parte le facili battute... ancora non leggo il menu.lst di GRUB.
    Appena lo posti vediamo di trovare una soluzione
    Coordinatore ufficiale del progetto spreadubuntu

  5. #5
    Senior Member
    Data Registrazione
    13-12-2006
    Località
    Dintorni Reggio Emilia...
    Messaggi
    455
    Intanto io di Inconsapevole ho solo il nickname eheh

    E poi visto che a sto punto mi sorge il dubbioocme guardo l`organizzazione degli hd e delle partizioni? cioe` c`e un modo che non sia quello fatto da ubuntu? perche` vorrei vederlo meglio in modo grafico....mi basterebbe vedere le partizioni divise come in windows ma quelle di linux non le vede e non posso sapere che c`e` in quella partizione.

    Comunque ecco il menu.lst:

    Codice:
    # 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=f6b6432e-eaff-4300-bc95-6caed9087008 ro
    
    ## Setup crashdump menu entries
    ## e.g. crashdump=1
    # crashdump=0
    
    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd1,5)
    
    ## 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 ##
    
    default=2
    timeout=20
    
    title		Ubuntu
    root		(hd0,1)
    kernel		/boot/vmlinuz-2.6.24-21-generic root=UUID=f6b6432e-eaff-4300-bc95-6caed9087008 ro quiet splash
    initrd		/boot/initrd.img-2.6.24-21-generic
    splash
    
    title		Ubuntu (recovery mode)
    root		(hd0,0)
    kernel		/boot/vmlinuz-2.6.24-21-generic root=UUID=f6b6432e-eaff-4300-bc95-6caed9087008 ro single
    initrd		/boot/initrd.img-2.6.24-21-generic
    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 XP Professional
    rootnoverify		(hd0,0)
    makeactive
    chainloader	+1
    Windows 7 Ultimate x64 Intel core 2 Duo E6550 2,33 Ghz 2 GB ram ddr2
    Asrock G31M-S Ati Randeon X700 series Hd 500 Gb segate SATA + Hd 500 Gb SATA

  6. #6
    Software Zone Maniac L'avatar di SauRon
    Data Registrazione
    19-05-2004
    Località
    catania
    Messaggi
    1.599
    ciao
    apri il sito di gentoo e cerca nell' handbook la guida per grub
    seguendo quella guida dovresti riuscire a sistemare grub (fatte ovviamente le opportune modifiche che possono esserci tra le diverse distribuzioni)
    così ad occhio guardando il file si vede che hai fatto un bel pò di pasticci con gli hd... ubuntu e ubuntu recovery devono stare sulla stessa partizione non puoi mettere hd0,0 e hd0,1 e windows non può stare sulla stessa partizione dove c'è ubuntu hd0,0 (sempre che ubuntu sia li)

  7. #7
    Software Zone Maniac L'avatar di deviantdark
    Data Registrazione
    31-03-2007
    Località
    /home/deviantdark
    Messaggi
    2.153
    Innanzitutto hai due volte le istruzioni default e timeout.
    Quelle sotto la riga "END DEFAULT OPTIONS" le hai aggiunte te, ve'?
    Comunque sia, sostituisci il tuo menu.lst con questo, vedrai che va

    Codice:
    # 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		2
    
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout		20
    
    ## 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=f6b6432e-eaff-4300-bc95-6caed9087008 ro
    
    ## Setup crashdump menu entries
    ## e.g. crashdump=1
    # crashdump=0
    
    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd1,5)
    
    ## 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 ##
    
    default=2
    timeout=20
    
    title		Ubuntu
    root		(hd0,5)
    kernel		/boot/vmlinuz-2.6.24-21-generic root=UUID=f6b6432e-eaff-4300-bc95-6caed9087008 ro quiet splash
    initrd		/boot/initrd.img-2.6.24-21-generic
    splash
    
    title		Ubuntu (recovery mode)
    root		(hd0,5)
    kernel		/boot/vmlinuz-2.6.24-21-generic root=UUID=f6b6432e-eaff-4300-bc95-6caed9087008 ro single
    initrd		/boot/initrd.img-2.6.24-21-generic
    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 XP Professional
    rootnoverify		(hd0,0)
    makeactive
    chainloader	+1
    Se vuoi vedere le tue partizioni in modo grafico, lo puoi fare anche da Ubuntu [in live session o, ora che lo potrai avviare, anche in modalità standard] grazie a gparted.
    Lo trovi sotto Applicazioni > Amministrazione > Partition editor.
    Se non c'è dai:

    Codice:
    sudo apt-get install gparted
    ATTENZIONE: è una potenziale arma di distruzione di massa, se usata in maniera inconsapevole
    Coordinatore ufficiale del progetto spreadubuntu

  8. #8
    Software Zone Maniac L'avatar di SauRon
    Data Registrazione
    19-05-2004
    Località
    catania
    Messaggi
    1.599
    aggiungo

    quando si avvia grub scegli la voce ubuntu e premi il tasto "e"
    poi alla prima voce che ti appare (vado a memoria dovrebbe essere root hd ecc ecc) premi di nuovo il tasto "e"
    fai delle prove modificando i valori (sd0,5 sempre se lo accetta non ho mai provato... oppure hd1,5... hd1,5 è secondo me il candidato adatto, visto che nel file menu.lst è riporta come ultima configurazione che forse funzionava)
    premi invio e poi b
    le modifiche non vengono salvate

  9. #9
    Software Zone Maniac L'avatar di deviantdark
    Data Registrazione
    31-03-2007
    Località
    /home/deviantdark
    Messaggi
    2.153
    Domanda per SauRon: lui dice che Windows gli si avvia, e la stringa per Windows dice hd0,0.
    Visto che il disco dove sta Ubuntu è lo stesso che ha Windows [hd0], cambia solo la partizione.
    Dal suo fdisk si evince che la partizione di Ubuntu è in /dev/sda6, mentre la NTFS è in /dev/sda1.
    Se tanto mi dà tanto... la voce da mettere su Ubuntu [come ho anche scritto nel menu.lst "corretto"], non dovrebbe essere hd0,5?
    Coordinatore ufficiale del progetto spreadubuntu

  10. #10
    Software Zone Maniac L'avatar di SauRon
    Data Registrazione
    19-05-2004
    Località
    catania
    Messaggi
    1.599
    bhè non è detto che quello che dice fdisk sia adatto da poter dare in pasto a grub
    io direi questo andando a supposizioni...
    a quanto ho capito prima è stato installato windows sull'hd s-ata e dopo ubuntu sullo stesso hd.
    Il bios però (per mia personale supposizione) è imposta per partire con hd p-ata e successivamente sul s-ata.
    Quindi quando è stato installato ubuntu grub è stato messo su hdb e non su sda.
    Per verificarlo basterebbe premere f8 (o tasto simile) a pc appena accesso e provare a fargli fare un boot per ogni hd. se selezionando l'hd sda si avvia subito windows allora grub sta su hdb
    se è cosi è tutto un pasticcio di numeri da sistemare senza fare affidamento a quello che dicono fidsk e grub (come spiega questa guida http://wiki.ubuntu-it.org/Amministra...rub/Ripristino.... il comando find /boot/grub/stage1 ritorna un valore errato di solito)
    quindi per me si deve andare a tentativi
    l'unica cosa data per certa è che se fdisk riporta la partizione N allora su grub andrà inserito N-1

  11. #11
    Member
    Data Registrazione
    02-03-2008
    Messaggi
    57
    Salve ragazzi,
    io ho un problema abbastanza simile quindi ho preferito non aprire un altro topic.
    Ho due hard disk:
    1) Disco IDE: 2 Partizioni (Windows e dati)
    2) Disco SATA: 2 Partizioni (1estesa Con dati e swap; 1 Con Kubuntu)
    Dopo la reinstallazione di windows tento il ripristino del grub, tento quindi la procedura seguente da terminale:

    sudo grub
    find /boot/grub/stage1 => (hd1,1)
    root (hd1,1)
    setup (hd1,1)

    " Checking if "/boot/grub/stage1" exists... yes
    Checking if "/boot/grub/stage2" exists... yes
    Checking if "/boot/grub/e2fs_stage1_5" exists... yes
    Running "embed /boot/grub/e2fs_stage1_5 (hd1,1)"... failed (this is not fatal)
    Running "embed /boot/grub/e2fs_stage1_5 (hd1,1)"... failed (this is not fatal)
    Running "install /boot/grub/stage1 (hd1,1) /boot/grub/stage2 p /boot/grub/menu
    .lst "... succeeded"

    quit

    Riavvio il sistema, esce normalmente la schermata di grub, soltanto che se scelgo ubuntu mi da "error 17: cannot mount selected partition", se scelgo windows, esce scritto "Starting up. Grub loading stage 2" per poi tornare istantaneamente al grub di nuovo. In pratica rimane impallato lì
    Sapreste dirmi dov'è che sbaglio??

  12. #12
    Member
    Data Registrazione
    02-03-2008
    Messaggi
    57
    Nessuno ha qualche idea???

Segnalibri

Permessi di Scrittura

  • Tu non puoi inviare nuove discussioni
  • Tu non puoi inviare risposte
  • Tu non puoi inviare allegati
  • Tu non puoi modificare i tuoi messaggi
  •