OMV Lx3 ripristino bootloader [risolto]

Vorrei provare a ripristinare il bootloader della Beta 1 e visto che non ci sono ancora tool specifici (vedi bug 1418) devo arrangiarmi in altro modo.
Nello stesso bug mi danno questo consiglio
“… you can boot iso into live mode, mount disk and chroot into in and run update-grub2 which will reinstall grub on your disk.”
per ripristinarlo usando la live. Ma non mi è chiaro come si possa usare il comando “update-grub2” dalla live per aggiornare il grub dell’installazione residente su disco. Qualche suggerimento?

utilizzare “super-grub2 disk” , funziona benissimo .

Utilizzare “rosa image writter” per fare un drive USB bootable

sorry for my italian
(Tradotto in italiano da Google) :slight_smile:

Don’t worry, you can answer in english, ou en français.
I know how to make a bootable usb, I use it to install. What I don’t understand is ho to use live to restore grub in OMV installed in disk.
No problem to mount partition in which OMV is installed, but what “chroot into in and run update-grub2” means exactly.
If I simply start live and run “update-grub2” this will affect grub 2 of installed OMV?

no this will affect the grub2 of the live .When you mount your omv and then you chroot, the system (your bash) thinks he is inside the root (/) but in fact he is in /mnt/your_omv_mounted/ and you can do what you want inside.

yes I know you know :slight_smile: , but with super-grub2-disk on bootable usb, in less than 5 mn you restore your grub, without risk ( not the case with chroot) just to run update-grub2 and grub2-install with the omv you choose to boot.

[quote=“jojodu34, post:4, topic:482”]
no this will affect the grub2 of the live
[/quote]This is what I think.

Before I don’t notice Super Grub link. Now I download “Super-Grub” and I’ll try it. Thanks a lot.

Using SupergGrub2 disk I’m able to boot in any os installed in hard disk: Windows 8, OMV Lx 3 Beta1, 2014.3.
Booting in Lx3 beta 1 start os normally and it seems working. In Lx3 command “#update-grub2” seems finding all three operating systems. But if I reboot bootloader show only 2014.3. No Lx3 no Windows.

you have to run also grub2-install (you do not specify)

Giving command as root from Lx3 I get this error

grub2-install
installing for i386-pc platform.
grub2-install: error: install device isn’t specified.

you have to specify where (on which disk)

for me it’s the first disk so I do grub2-install /dev/sda (no partition just the disk)

ex:

update-grub2

Création du fichier de configuration GRUB…
Thème trouvé : /boot/grub2/themes/OpenMandriva/theme.txt
Arrière-plan trouvé : /boot/grub2/themes/OpenMandriva/terminal_background.png
Image Linux trouvée : /boot/vmlinuz-4.6.0-desktop-1omv
Image mémoire initiale trouvée : /boot/7809278defc0489c83d5e9398413a637/4.6.0-desktop-1omv/initrd
Image Linux trouvée : /boot/vmlinuz-4.5.4-desktop-1omv
Image mémoire initiale trouvée : /boot/7809278defc0489c83d5e9398413a637/4.5.4-desktop-1omv/initrd
Image Linux trouvée : /boot/vmlinuz-4.5.3-desktop-1omv
Image mémoire initiale trouvée : /boot/7809278defc0489c83d5e9398413a637/4.5.3-desktop-1omv/initrd
Image Linux trouvée : /boot/vmlinuz-4.5.2-desktop-11omv
Image mémoire initiale trouvée : /boot/7809278defc0489c83d5e9398413a637/4.5.2-desktop-11omv/initrd
Image Linux trouvée : /boot/vmlinuz-4.5.1-desktop-10omv
Image mémoire initiale trouvée : /boot/7809278defc0489c83d5e9398413a637/4.5.1-desktop-10omv/initrd
Found memtest image: /boot/elf-memtest86+
OpenMandriva Lx 2014.0 (2014.0) trouvé sur /dev/sda2
fait

and

LC_ALL=C grub2-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.

(LC_ALL=C is to have the command in english, don’t write it, just grub2-install dev/the_disk_where_you_want_install)

Bootloader restored! :fireworks: Thanks a lot.

Ripristinato il bootloader. Nell’ordine:

  1. come amministratore dare il comando

    update-grub2
    e dovrebbe comparire la lista dei sistemi operativi installati e quindi disponibili

  2. eseguire grub2-install
    come amministratore dare il comando

    grub2-install /dev/sda 
     
    dove /dev/sda è il disco (non la partizione) dove installare il grub
     dovrebbe rispondere con un messaggio del tipo 
     
     Installing for i386-pc platform.
     Installation finished.  No error reported.
    
  3. riavviare e dovrebbe comparire la finestra del bootloader

Ottimo.
@Giorgio ci pensi tu a mettere la spunta alla risposta che risolve il tuo problema? E’ il post 9 giusto?

Congratulazioni @giorgio

solo un commento, è necessario eseguire “update-grub2” prima di grub2-install

questo è importante

Congratulations @giorgio

just a comment, you must run “update-grub2” before grub2-install

it’s important

  1. update-grub2

  2. grub2-install

Right?

(è necessario eseguire update-grub2 prima di grub2-install)
(for the record :wink: - Thanks @jojodu34 )

yes I said it, in English, with Italian … I hope :laughing:

(make corrections if necessary)

@jojodu34 If it’s important, as you say, better twice than nothing :wink:

Postedit:
Just to explain better, your Italian sentence might leave some doubts, “prima di” makes clear what comes first.
Of course, translations for not natives are always hard. In all languages I mean. Natives are there for double-checking task.

1 Like

Thanks. I modified list of operations. :ok_hand: