Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 13
  1. #1

    GRUB-INSTALL, problema a ripristianre GRUB

    Ciao a tutti, ho 2 distribuzioni installate sul mio laptop:
    kubuntu in hda6
    mepis in hda8

    Per errore ho sovrascritto il grub di kubuntu che era installato sull'MBR con quello di mepis.
    Voglio ripristianre il grub di kubuntu sull'mbr.
    Ho seguito la seguente procedura:

    -montare la partizione del sistema con il grub che si vuole installare;
    # mount /dev/hda6 /mnt/hda6 -t reiserfs

    -montare proc nel sistema ospite
    # mount proc /mnt/hda6/proc

    -copiare il device dove si vuole installare grub
    # cp -a /dev/hda /mnt/hda6/dev/

    -eseguo il chroot
    # chroot /mnt/hda6

    -copio le informazioni dui device montati in mtab
    # grep -v rootfs /proc/mounts > /etc/mtab

    -installo grub sull'MBR
    # grub-install /dev/hda

    Ed ottendo il seguente errore:

    root@mepis1:/# grub-install /dev/hda
    /sbin/grub-install: line 485: /dev/null: Permesso negato
    /sbin/grub-install: line 487: /dev/null: Permesso negato
    /sbin/grub-install: line 485: /dev/null: Permesso negato
    /sbin/grub-install: line 487: /dev/null: Permesso negato
    /sbin/grub-install: line 485: /dev/null: Permesso negato
    /sbin/grub-install: line 487: /dev/null: Permesso negato
    /sbin/grub-install: line 485: /dev/null: Permesso negato
    /sbin/grub-install: line 487: /dev/null: Permesso negato
    /sbin/grub-install: line 485: /dev/null: Permesso negato
    /sbin/grub-install: line 487: /dev/null: Permesso negato
    The file /boot/grub/stage1 not read correctly.
    La stessa procedura l'avevo applicata con successo sul mio computer desktop in un caso del tutto analogo.

    Cosa sbaglio?
    Faccio parte di questo mondo, cambiare me stesso significa cambiare il mondo.

  2. #2
    Moderatore di Linux e software L'avatar di francofait
    Registrato dal
    Aug 2001
    Messaggi
    13,558
    sbagli nella maniera più stupida possibile

    dal menu del bootloader di mepis avvii kubuntu

    vai in console e nessuno ti impedisce di ripristinare il suo bootloader senza altre manovre

    sudo grub-install /dev/hda

  3. #3
    1-sul BL di mepis non c'è kubuntu perchè non l'ho installato sull'MBR durante l'installazione di mepis ma dando per errore grub-install /dev/hda da mepis.

    2-basterebbe aggiungere le righe di configurazione a grub per lanciare kubuntu e poi, volendo, lanciare il grub-install da kubuntu. Ma quello che mi fa incaxxare è: perchè non funziona!?!?!?!

    La stessa procedura ha funzionato sul desktop. A cosa è dovuto quell'errore?
    Voglio capirlo perchè mi potrebbe ricapiatare nel tentativo di ripristianare un BL in ambiente chroot.
    Faccio parte di questo mondo, cambiare me stesso significa cambiare il mondo.

  4. #4
    Moderatore di Linux e software L'avatar di francofait
    Registrato dal
    Aug 2001
    Messaggi
    13,558
    Originariamente inviato da trillullero
    1-sul BL di mepis non c'è kubuntu perchè non l'ho installato sull'MBR durante l'installazione di mepis ma dando per errore grub-install /dev/hda da mepis.

    2-basterebbe aggiungere le righe di configurazione a grub per lanciare kubuntu e poi, volendo, lanciare il grub-install da kubuntu. Ma quello che mi fa incaxxare è: perchè non funziona!?!?!?!

    La stessa procedura ha funzionato sul desktop. A cosa è dovuto quell'errore?
    Voglio capirlo perchè mi potrebbe ricapiatare nel tentativo di ripristianare un BL in ambiente chroot.
    Senza dubbio ad errore nella sintassi sul file menu.lst di mepis
    postalo e spiffera con precisione su quale /disco-partizione hai installato kubuntu

  5. #5
    Senza dubbio ad errore nella sintassi sul file menu.lst di mepis
    E' possibile che ci sia un errore ma non sul menu.lst di mepis, ma su quello di kubuntu.
    Quello di mepis non l'ho mai toccato e non è quello che sto andando ad installare.
    In ogni caso li riporto entrambi in basso

    postalo e spiffera con precisione su quale /disco-partizione hai installato kubuntu
    hda1 primaria win95 fat32 nascosta
    hda2 primaria NTFS
    hda5 logica swap
    hda6 logica reiserfs KUBUNTU
    hda7 logica reiserfs solo dati
    hda8 logica ext3 MEPIS

    menu.list KUBUNTU

    # 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 change this entry to 'saved' 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=/dev/hda6 ro

    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd0,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

    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ## altoptions=(recovery mode) 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

    ## ## End Default Options ##

    title Ubuntu, kernel 2.6.15-23-386
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda6 ro quiet splash
    initrd /boot/initrd.img-2.6.15-23-386
    savedefault
    boot

    title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda6 ro single
    initrd /boot/initrd.img-2.6.15-23-386
    boot

    title Ubuntu, memtest86+
    root (hd0,5)
    kernel /boot/memtest86+.bin
    boot

    ### 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/hda2
    title Microsoft Windows XP Home Edition
    root (hd0,1)
    savedefault
    makeactive
    chainloader +1

    #title mepis6.0
    #root (hd0,7)
    #chainloader +1
    menu.lst MEPIS

    timeout 15
    color cyan/blue white/blue
    foreground ffffff
    background 0639a1

    gfxmenu /boot/grub/message

    title MEPIS at hda8, kernel 2.6.15-26-386
    root (hd0,7)
    kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/hda8 nomce quiet vga=normal
    boot

    title Windows at hda2
    rootnoverify (hd0,1)
    chainloader +1

    title MEMTEST
    kernel /boot/memtest86+.bin
    Faccio parte di questo mondo, cambiare me stesso significa cambiare il mondo.

  6. #6
    up
    Faccio parte di questo mondo, cambiare me stesso significa cambiare il mondo.

  7. #7
    Utente di HTML.it L'avatar di bereshit
    Registrato dal
    Oct 2005
    Messaggi
    2,874
    che caasino hai combinato..

    basta da live o una qualsiasi altra distro installata aprire la shell e dare..

    'grub'
    si apre il prompt di grub

    e dai

    root (hdx,y)
    setup (hdz)
    quit


    z è il disco con l'mbr, latro è la partizione di root sove sta la cartella di grub
    L'ultima Xubuntu su Notebook Dual core 1,5 GHz e 2 Giga di RAM
    "Free as in Free speech not as in free beer"
    GDR Sperimentale

  8. #8
    Moderatore di Linux e software L'avatar di francofait
    Registrato dal
    Aug 2001
    Messaggi
    13,558
    menu x mepis con incluso avvio ubuntu

    foreground ffffff
    background 0639a1

    gfxmenu /boot/grub/message

    title MEPIS at hda8, kernel 2.6.15-26-386
    root (hd0,7)
    kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/hda8 nomce quiet vga=normal
    boot


    title Ubuntu, kernel 2.6.15-23-386
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda6 ro quiet splash
    initrd /boot/initrd.img-2.6.15-23-386
    boot

    title Windows at hda2
    rootnoverify (hd0,1)
    chainloader +1

    title MEMTEST
    kernel /boot/memtest86+.bin

  9. #9
    Proverò, però il problema resta irrisolto.
    Non ho combinato casino, stavo solo cercando di lanciare il grub-install in ambiente chroot.

    Una cosa volevo capire bene. Se faccio come dice bereshit, andrò ad installare il grub della distribuzione avviata sull'mbr. In altre parole mi ritroverò le opzioni descritte nel menu.lst del grub della partizione avviata, non quelle del menu.lst di kubuntu, dico bene?
    Faccio parte di questo mondo, cambiare me stesso significa cambiare il mondo.

  10. #10
    Moderatore di Linux e software L'avatar di francofait
    Registrato dal
    Aug 2001
    Messaggi
    13,558
    no
    a ragion di logica installa grub su mbr utilizzando i puntatori a root (hdx,x) ed al suo menu.lst di conseguenza.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.