Catnoo
Notes de paramétrage de postes de travail, et autres vicissitudes ...

Accueil > Linux - Mint > mint - petits problemes d’installation

mint - petits problemes d’installation

mercredi 4 juin 2014, par Lucien-Henry

Problème : pas de grub sur /dev/md126
http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu/dists/saucy/
http://ubuntuforums.org/showthread.php?p=11325166#post11325166
https://help.ubuntu.com/community/Boot-Info
http://ubuntuforums.org/showthread.php?t=1821980

sudo add-apt-repository ppa:yannubuntu/boot-repair</code
Là, changer trusty par saucy dans :
ls /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair

Ne pas lancer boot-repair car il va dire que dmraid est en confit avec MD raid ... donc désinstaller dmraid car il fout la merde en tentant de désinstaller dmraid.

Impossible de récupérer http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu/dists/trusty/main/source/Sources  404  Not Found
Impossible de récupérer http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found
Impossible de récupérer http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found
Le téléchargement de quelques fichiers d'index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.

En lançant (enfin boot-raid)

sudo dpkg --configure -a
Erreurs :
http://askubuntu.com/questions/316486/problems-with-cryptsetup-during-update

cryptsetup: WARNING: failed to detect canonical device of overlayfs
cryptsetup: WARNING: could not determine root device from /etc/fstab

Résolution :
sudo apt-get remove cryptsetupsudo apt-get remove cryptsetup
Attention car désinstaller cryptsetup vire ubiquity et ubiquity-frontend-gtk ... les réinstaller inclue tout un bordel de paquets. On tente sans ...

Face aux messages dingues :

mint / # sudo dpkg --configure -a
Setting up initramfs-tools (0.103ubuntu4) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.103ubuntu4) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-24-generic
cryptsetup: WARNING: failed to detect canonical device of overlayfs
cryptsetup: WARNING: could not determine root device from /etc/fstab
W: mdadm: the array /dev/md/imsm0 with UUID 504d3d9b:6070eb9f:e595a362:3e5d6912
W: mdadm: is currently active, but it is not listed in mdadm.conf. if
W: mdadm: it is needed for boot, then YOUR SYSTEM IS NOW UNBOOTABLE!
W: mdadm: please inspect the output of /usr/share/mdadm/mkconf, compare
W: mdadm: it to /etc/mdadm/mdadm.conf, and make the necessary changes.
W: mdadm: the array /dev/md/Volume1_0 with UUID 53d74b0e:d34605ab:945d3cbc:ea86dba8
W: mdadm: is currently active, but it is not listed in mdadm.conf. if
W: mdadm: it is needed for boot, then YOUR SYSTEM IS NOW UNBOOTABLE!
W: mdadm: please inspect the output of /usr/share/mdadm/mkconf, compare
W: mdadm: it to /etc/mdadm/mdadm.conf, and make the necessary changes.
W: mdadm: the array /dev/md/Volume0_0 with UUID 7e0d8fe5:1cbada68:5ac7f923:d115c4e0
W: mdadm: is currently active, but it is not listed in mdadm.conf. if
W: mdadm: it is needed for boot, then YOUR SYSTEM IS NOW UNBOOTABLE!
W: mdadm: please inspect the output of /usr/share/mdadm/mkconf, compare
W: mdadm: it to /etc/mdadm/mdadm.conf, and make the necessary changes.
mint / # sudo apt-get remove cryptsetup

Une fois dmraid désinstallé ... on va réinstaller mdadm.

En fait, cet espèce de con avait gardé la configuration précédente de raid 0 :

mint apt # cat /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default (built-in), scan all partitions (/proc/partitions) and all
# containers for MD superblocks. alternatively, specify devices to scan, using
# wildcards if desired.
#DEVICE partitions containers

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays
ARRAY /dev/md/2 metadata=1.2 UUID=ad152825:71cb539c:f4043e06:dd247e37 name=admlho00:2
ARRAY /dev/md/0 metadata=1.2 UUID=062eeafc:4fa15cd9:2fe10641:3eb9d206 name=admlho00:0
ARRAY /dev/md/1 metadata=1.2 UUID=314ddb30:c08e094a:21a647d4:9b784845 name=admlho00:1

Il faut donc nettoyer tout ça.

rm -ifr /etc/mdadm/mdadm.conf
via synaptic réinstall de mdadm

pas mal .. après le ménage boot-repair veut installer ... dmraid !
A oublier.

ubiquity et front-end-gtk > à réinstaller en acceptant tous les problèmes dé dépendance (89 fichiers)
reboot car l’outil installé (si on a booté "par défaut" sur la clé installée par unetbootin) est incapable de savoir qu’il doit installer une Linux Mint ... après ça va.

De toute façon, la réinstallation ne fait pas réinstaller grub !!!
Reboot :
http://doc.ubuntu-fr.org/chroot
http://linux.leunen.com/?p=840

xhost +
sudo -i
sudo mkdir /media/system
sudo mount /dev/md126p3 /media/system
sudo mount --bind /run  /media/system/run
sudo mount -t proc /proc /media/system/proc
sudo mount -t sysfs /sys /media/system/sys
sudo chroot /media/system

Ne PAs oublier de monter /proc avant de chrooter ... !

Via synaptic : installer les locales-fr .. et language-pack-fr.
puis installer mdadm !!!
Puis

mint / # update-grub
Création du fichier de configuration GRUB…
Attention : Définir GRUB_TIMEOUT à une valeur non nulle si GRUB_HIDDEN_TIMEOUT est définie n’est plus possible.
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Windows 7 (loader) trouvé sur /dev/md125p1
fait
mint / #
SPIP | | Plan du site | Suivre la vie du site RSS 2.0
Habillage visuel © digitalnature sous Licence GPL