issue173:tutoriel2
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue173:tutoriel2 [2021/09/29 18:55] – auntiee | issue173:tutoriel2 [2021/10/04 18:30] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
**In a previous article, I described a step-by-step procedure to create a hybrid (boots on BIOS or UEFI system) portable clone of your system on a 512 byte sector USB drive. Although I had tested the technique successfully on a number of devices I had laying around, when I tried it on a recently purchased SSD, it did not work! It turned out that the new SSD had physical/ | **In a previous article, I described a step-by-step procedure to create a hybrid (boots on BIOS or UEFI system) portable clone of your system on a 512 byte sector USB drive. Although I had tested the technique successfully on a number of devices I had laying around, when I tried it on a recently purchased SSD, it did not work! It turned out that the new SSD had physical/ | ||
- | Dans un précédent article, j’ai décrit une procédure étape par étape | + | Dans un précédent article, j’ai décrit une procédure |
**It is not possible to anticipate the particulars of every conceivable system configuration so I have made a few assumptions: | **It is not possible to anticipate the particulars of every conceivable system configuration so I have made a few assumptions: | ||
Ligne 12: | Ligne 12: | ||
Étant donné l’impossibilité d’anticiper les particularités de toute configuration de système imaginable, j’ai fait quelques suppositions : | Étant donné l’impossibilité d’anticiper les particularités de toute configuration de système imaginable, j’ai fait quelques suppositions : | ||
- | * Le système à cloner est une installation typique où le système Ubuntu se trouve sur une seule partition, sans partition swap. | + | ••Le système à cloner est une installation typique où le système Ubuntu se trouve sur une seule partition, sans partition swap. |
- | * L’ordinateur source que vous clonez démarre en mode UEFI et a une partition EFI séparée. | + | ••L’ordinateur source que vous clonez démarre en mode UEFI et a une partition EFI séparée. |
- | * Le disque de destination doit être assez grand pour contenir la partition Ubuntu que nous allons cloner – toute la partition et pas seulement l’espace utilisé ! (Le redimensionnement de votre partition Ubuntu pour la rendre plus petite avec gparted, est très sûr – MAIS le potentiel de perte de données existe toujours. Ne le faites pas sans avoir sauvegardé tout ce que vous ne devez pas perdre.) | + | ••Le disque de destination doit être assez grand pour contenir la partition Ubuntu que nous allons cloner – toute la partition et pas seulement l’espace utilisé ! (Le redimensionnement de votre partition Ubuntu pour la rendre plus petite avec gparted, est très sûr – MAIS le potentiel de perte de données existe toujours. Ne le faites pas sans avoir sauvegardé tout ce que vous ne devez pas perdre.) |
- | * Beaucoup de ces étapes | + | ••Beaucoup de ces étapes |
- | J’ai écrit cet article pour les non experts (comme moi) et j’ai donc inclus beaucoup de contrôles croisés pour éviter des erreurs. Les lecteurs plus expérimentés peuvent sans doute sauter certaines de ces étapes s’ils le souhaitent. | + | J’ai écrit cet article pour les non-experts (comme moi) et j’ai donc inclus beaucoup de contrôles croisés pour éviter des erreurs. Les lecteurs plus expérimentés peuvent sans doute sauter certaines de ces étapes s’ils le souhaitent. |
**Getting Information About Your System | **Getting Information About Your System | ||
Ligne 33: | Ligne 33: | ||
to provide an easily recognizable marker for the cloned system in the root folder.** | to provide an easily recognizable marker for the cloned system in the root folder.** | ||
- | Récupérez | + | Récupérer |
Démarrez votre ordinateur normalement et ouvrez un terminal. Tapez : | Démarrez votre ordinateur normalement et ouvrez un terminal. Tapez : | ||
Ligne 39: | Ligne 39: | ||
df | df | ||
- | et cherchez le symbole de root (/) dans la colonne « Monté sur ». Sur ma machine, c’est en face de /dev/sda2 et cela m’indique le système s’exécute sur la Partition n° 2 (ci-dessous). Notez ce numéro sur votre propre système, car le nom du disque peut changer après un redémarrage, | + | et cherchez le symbole de root (/) dans la colonne « Monté sur ». Sur ma machine, c’est en face de /dev/sda2 et cela m’indique |
Tapez maintenant : | Tapez maintenant : | ||
Ligne 45: | Ligne 45: | ||
sudo mkdir /00_CLONE | sudo mkdir /00_CLONE | ||
- | pour fournir un marqueur pour le système cloné qui soit facilement reconnaissable dans le dossier root. | + | afin de fournir un marqueur pour le système cloné qui soit facilement reconnaissable dans le dossier root. |
Ligne 62: | Ligne 62: | ||
Cloner votre système | Cloner votre système | ||
- | Maintenant, redémarrez votre ordinateur à partir d’une clé USB Live ; vous pouvez utiliser le média d’installation de votre système ou celui de n’importe quelle saveur d’Ubuntu – j’utilise un clone de mon système de base sur une clé USB. Démarrer | + | Maintenant, redémarrez votre ordinateur à partir d’une clé USB Live ; vous pouvez utiliser le média d’installation de votre système ou celui de n’importe quelle saveur d’Ubuntu – j’utilise un clone de mon système de base sur une clé USB. C'est important de démarrer |
sudo umount -a | sudo umount -a | ||
- | pour démonter | + | pour tout démonter. |
Branchez le média d’installation sur un port USB vacant. | Branchez le média d’installation sur un port USB vacant. | ||
Ligne 76: | Ligne 76: | ||
If your drive contains any data, it will be completely destroyed by the following process so make sure you don’t need anything that is left on the SSD. Select the SSD from the drop-down menu, click on Device > Create Partition Table, and make sure you choose “gpt” as the partitioning system so that it is compatible with UEFI booting. Click Apply to make the change, your device now shows unallocated space for the entire drive (top right).** | If your drive contains any data, it will be completely destroyed by the following process so make sure you don’t need anything that is left on the SSD. Select the SSD from the drop-down menu, click on Device > Create Partition Table, and make sure you choose “gpt” as the partitioning system so that it is compatible with UEFI booting. Click Apply to make the change, your device now shows unallocated space for the entire drive (top right).** | ||
- | Ceci est mon portable de « tests ». Vous pouvez voir que j’ai un disque de 250 Go appelé /dev/sda avec 4 partitions (ci-dessous). J’ai regroupé mes fichiers personnels dans 2 partitions (/dev/sda3 et /dev/sda4) et, ainsi, la partition de mon système Ubuntu (/dev/sda2, monté à /) ne fait que 30 Go. Si vous cliquez sur le menu déroulant en haut à droite, vous aurez la disposition des partitions pour les autres disques sur le système, dans ce cas le SSD portable que vous utiliserez pour cloner votre système, ainsi que l’USB Live sur lequel vous avez démarré. | + | Ceci est mon portable de « tests ». Vous pouvez voir que j’ai un disque de 250 Go appelé /dev/sda avec 4 partitions (page précédente, |
- | Si votre disque contient des données, elles seront complètement détruites par le processus qui suit. Aussi, assurez vous de n’avoir besoin de rien qui reste sur le SSD. Sélectionnez le SSD dans le menu déroulant, cliquez sur Périphérique → Créer une table de partitions et assurez-vous de choisir « gpt » comme système de partitionnement pour qu’il soit compatible avec le démarrage UEFI. Cliquez sur Appliquer pour faire la modification et votre dispositif affiche maintenant Non alloué pour le disque entier (en haut à droite). | + | Si votre disque |
**to reboot. It is unclear why this message sometimes appears when other times it does not; however, it seems that clicking Ignore and proceeding does not appear to cause any problems. If this makes you nervous, close gparted, reboot, and then proceed. | **to reboot. It is unclear why this message sometimes appears when other times it does not; however, it seems that clicking Ignore and proceeding does not appear to cause any problems. If this makes you nervous, close gparted, reboot, and then proceed. | ||
Ligne 86: | Ligne 86: | ||
The “Free space following (MiB)” will vary depending on the size of your SSD, but the other values should be as shown here – note the use of “cleared” in the File System box, this ensures there are no filesystem remnants still present (bottom right). Click “Add” and then click on the green checkmark at the top to apply this change. Do NOT format this partition to FAT 32, it will not work for devices with 4096-byte sectors. (See Technical Note #1 at the end of the article for a full explanation of why this is the case).** | The “Free space following (MiB)” will vary depending on the size of your SSD, but the other values should be as shown here – note the use of “cleared” in the File System box, this ensures there are no filesystem remnants still present (bottom right). Click “Add” and then click on the green checkmark at the top to apply this change. Do NOT format this partition to FAT 32, it will not work for devices with 4096-byte sectors. (See Technical Note #1 at the end of the article for a full explanation of why this is the case).** | ||
- | pour redémarrer. La raison pour laquelle ce message apparaît - ou pas – n’est pas claire ; toutefois, cliquer sur Ignorer et continuer | + | Redémarrer. La raison pour laquelle ce message apparaît - ou pas – n’est pas claire ; toutefois, cliquer sur Ignorer et continuer |
- | Maintenant sélectionnez Partition → Nouvelle pour créer la première de 2 partitions. | + | Maintenant sélectionnez Partition → Nouvelle pour créer la première de 2 partitions. |
+ | |||
+ | L’« Espace disponible suivant (Mo) » | ||
- | L’« Espace disponible suivant (Mo) » | ||
**Next select Partition > New to create the second partition for the Ubuntu system itself and adjust the values as appropriate (above). | **Next select Partition > New to create the second partition for the Ubuntu system itself and adjust the values as appropriate (above). | ||
Ligne 103: | Ligne 104: | ||
Ensuite sélectionnez Partition -> Nouvelle pour créer la seconde partition pour le système d’Ubuntu lui-même | Ensuite sélectionnez Partition -> Nouvelle pour créer la seconde partition pour le système d’Ubuntu lui-même | ||
- | Chacune de ces partitions a une fonction importante : | + | Chacune de ces partitions a une fonction importante : |
Maintenant, retournez sélectionner le nom de dispositif de votre disque dur. Faites un clic droit sur la partition Ubuntu et sélectionnez Copier. Changez pour le SSD, vérifiez à nouveau que la Partition n° 2 n’est pas montée, faites un clic droit dessus et sélectionnez Coller. Selon la taille de la partition que vous copiez, cela peut prendre une heure ou plus ; pour cette taille de partition, c’était environ 15 minutes. Cette procédure crée une copie exacte et complète de la partition d’Ubuntu, y compris l’étiquette, | Maintenant, retournez sélectionner le nom de dispositif de votre disque dur. Faites un clic droit sur la partition Ubuntu et sélectionnez Copier. Changez pour le SSD, vérifiez à nouveau que la Partition n° 2 n’est pas montée, faites un clic droit dessus et sélectionnez Coller. Selon la taille de la partition que vous copiez, cela peut prendre une heure ou plus ; pour cette taille de partition, c’était environ 15 minutes. Cette procédure crée une copie exacte et complète de la partition d’Ubuntu, y compris l’étiquette, | ||
Ligne 119: | Ligne 120: | ||
again and you will see that the UUID for the Ubuntu system partition is unchanged BUT the Ubuntu_SSD partition now has a different UUID.** | again and you will see that the UUID for the Ubuntu system partition is unchanged BUT the Ubuntu_SSD partition now has a different UUID.** | ||
- | Une fois cette étape de copie terminée, faites un clic droit sur la Partition n° 2 et donnez-lui l’étiquette Ubuntu_SSD pour le rendre plus facile à identifier, puis appliquez le changement. Faites un clic droit sur la Partition n° 1 et sélectionnez Gérer les drapeaux → boot, esp afin que cette partition soit reconnue comme un partition EFI. Cliquez sur Fermer pour appliquer le changement, mais ne quittez pas encore gparted, car vous en aurez besoin lors de la prochaine étape. | + | Une fois cette étape de copie terminée, faites un clic droit sur la Partition n° 2 et donnez-lui l’étiquette Ubuntu_SSD pour la rendre plus facile à identifier, puis appliquez le changement. Faites un clic droit sur la Partition n° 1 et sélectionnez Gérer les drapeaux → boot, esp afin que cette partition soit reconnue comme une partition EFI. Cliquez sur Fermer pour appliquer le changement, mais ne quittez pas encore gparted, car vous en aurez besoin lors de la prochaine étape. |
Si vous ouvrez un terminal et saississez : | Si vous ouvrez un terminal et saississez : | ||
Ligne 143: | Ligne 144: | ||
which puts your base system back the way it was before we started; but, leaves a 00_CLONE marker in the root directory of the SSD. This marker provides a good way to ensure that we don’t mix up our locations between the hard drive and the SSD clone and edit the wrong system files.** | which puts your base system back the way it was before we started; but, leaves a 00_CLONE marker in the root directory of the SSD. This marker provides a good way to ensure that we don’t mix up our locations between the hard drive and the SSD clone and edit the wrong system files.** | ||
- | Maintenant, il faut formater la partition EFI (/dev/sdb1 dans mon cas) en FAT32. Ouvrez un terminal et tapez : | + | Maintenant, il nous faut formater la partition EFI (/dev/sdb1 dans mon cas) en FAT32 (en bas à gauche). Ouvrez un terminal et tapez : |
sudo mkfs.fat -v -F 32 -S 4096 -s 1 /dev/sdX1 | sudo mkfs.fat -v -F 32 -S 4096 -s 1 /dev/sdX1 | ||
- | (en changeant X à la valeur | + | (en changeant X par la valeur |
À ce stade, je suggère de faire un clic droit sur le Bureau et de changer le fond d' | À ce stade, je suggère de faire un clic droit sur le Bureau et de changer le fond d' | ||
Ligne 165: | Ligne 166: | ||
Ajuster les UUID aux valeurs correctes | Ajuster les UUID aux valeurs correctes | ||
- | Ensuite, | + | Ensuite, dans deux fichiers système sur le SSD, il faudra changer l' |
sudo blkid | sudo blkid | ||
- | pour faire afficher à nouveau les UUID de toutes les partitions sur votre système, puis ouvrez le Gestionnaire de fichiers et cliquez sur Ubuntu_SSD | + | pour faire afficher à nouveau les UUID de toutes les partitions sur votre système, puis ouvrez le Gestionnaire de fichiers et cliquez sur Ubuntu_SSD. |
**You should see the folder 00_CLONE and the address bar showing Ubuntu_SSD mounted at /media since it is an external USB device, otherwise you are in the wrong location. Remedy this immediately, | **You should see the folder 00_CLONE and the address bar showing Ubuntu_SSD mounted at /media since it is an external USB device, otherwise you are in the wrong location. Remedy this immediately, | ||
Ligne 175: | Ligne 176: | ||
Next, use the up-arrow of File Manager to move back up the directory structure to navigate to /boot/grub, and Edit as Administrator the file / | Next, use the up-arrow of File Manager to move back up the directory structure to navigate to /boot/grub, and Edit as Administrator the file / | ||
- | Vous devez voir le dossier 00_CLONE ; la barre d' | + | Vous devez voir le dossier 00_CLONE ; la barre d' |
- | Ensuite, utilisez la flèche vers le haut du Gestionnaire de fichiers pour remonter le structure des répertoires et naviguer jusqu' | + | Ensuite, utilisez la flèche vers le haut du Gestionnaire de fichiers pour remonter le structure des répertoires et naviguer jusqu' |
**Installing Bootloaders | **Installing Bootloaders | ||
Ligne 191: | Ligne 192: | ||
When you do this, GRUB should find the Ubuntu_SSD installation on /dev/sdX2 (where /dev/sdX2 is the device name for your Ubuntu_SSD partition), and add it to the GRUB boot menu. If update-grub does not find Ubuntu_SSD on /dev/sdX2, then use Method #2. Otherwise reboot your system and use the down-arrow to select the new entry corresponding to your Ubuntu_SSD installation and boot into the cloned system – you will know you were successful as long as the old background appears.** | When you do this, GRUB should find the Ubuntu_SSD installation on /dev/sdX2 (where /dev/sdX2 is the device name for your Ubuntu_SSD partition), and add it to the GRUB boot menu. If update-grub does not find Ubuntu_SSD on /dev/sdX2, then use Method #2. Otherwise reboot your system and use the down-arrow to select the new entry corresponding to your Ubuntu_SSD installation and boot into the cloned system – you will know you were successful as long as the old background appears.** | ||
- | L' | + | L' |
- | Bien qu'il y ait une installation Ubuntu complète sur le SSD, il n'est pas encore amorçable directement ; toutefois, il est plus sûr d' | + | Bien qu'il y ait une installation Ubuntu complète sur le SSD, elle n'est pas encore amorçable directement ; toutefois, il est plus sûr d' |
Méthode n° 1 (préférée) | Méthode n° 1 (préférée) | ||
Ligne 201: | Ligne 202: | ||
sudo update-grub | sudo update-grub | ||
- | Quand vous le faites, GRUB devrait trouver l' | + | Quand vous le faites, GRUB devrait trouver l' |
**Method #2 (Fallback): | **Method #2 (Fallback): | ||
Ligne 217: | Ligne 218: | ||
Méthode n° 2 (solution de repli) : | Méthode n° 2 (solution de repli) : | ||
- | Redémarrez votre système normalement et quand le menu GRUB s' | + | Redémarrez votre système normalement et quand le menu GRUB s' |
ls | ls | ||
- | et vous aurez une liste de tous les dispositifs que GRUB reconnaît, notamment (hd0), (hd0,gpt1), (hd0, gpt2), (hd1), (hd1,gpt1) et ainsi de suite. Il faut que vous trouviez celui qui correspond à Ubuntu_SSD. Puisqu' | + | et vous aurez une liste de tous les dispositifs que GRUB reconnaît, notamment (hd0), (hd0,gpt1), (hd0, gpt2), (hd1), (hd1,gpt1) et ainsi de suite. Il faut que vous trouviez celui qui correspond à Ubuntu_SSD. Puisqu' |
ls (hd0,2)/ | ls (hd0,2)/ | ||
- | Si vous voyez le dossier 00_CLONE, vous avez terminé ; sinon, tapez type ls (hd1,2)/ puis ls (hd2,2)/ ... jusqu' | + | Si vous voyez le dossier 00_CLONE, vous avez terminé ; sinon, tapez type ls (hd1,2)/ puis ls (hd2,2)/... jusqu' |
**set prefix=(hdX, | **set prefix=(hdX, | ||
Ligne 245: | Ligne 246: | ||
normal | normal | ||
+ | L' | ||
- | + | **Open a terminal and type: | |
- | + | ||
- | Open a terminal and type: | + | |
df | df | ||
Ligne 261: | Ligne 261: | ||
sudo mount /dev/sdX1 /boot/efi | sudo mount /dev/sdX1 /boot/efi | ||
- | (where /dev/sdX1 is the device name for your EFI partition) so that bootloader files can be written to that partition. | + | (where /dev/sdX1 is the device name for your EFI partition) so that bootloader files can be written to that partition.** |
+ | |||
+ | Ouvrez un terminal et tapez : | ||
+ | |||
+ | df | ||
+ | |||
+ | et vérifiez le nom du dispositif (/dev/sdX2) monté comme racine (/) car les noms de disques changent après un redémarrage. Vous devriez trouver aussi un dispositif (/dev/sdX1) monté à /boot/efi (sinon, j'en parlerai dans un moment). Ouvrez le Gestionnaire de fichiers et vérifiez que 00_CLONE est présent dans le système de fichiers de la racine puis ouvrez en tant qu' | ||
+ | |||
+ | sudo umount /boot/efi | ||
+ | |||
+ | puis montez la partition EFI du SSD avec : | ||
+ | |||
+ | sudo mount /dev/sdX1 /boot/efi | ||
+ | |||
+ | (où /dev/sdX1 est le nom de dispositif pour votre partition EFI, afin que les fichiers du chargeur de démarrage puissent être écrits sur cette partition. | ||
- | The first thing to check before doing anything else is that all of the appropriate grub packages are installed on your SSD. To do this, open Synaptic, select Status > Installed, and scroll down to grub entries. There are 6 things to look for (below). Depending on how your system is configured, these may or may not be installed but they all need to be there to proceed. | + | **The first thing to check before doing anything else is that all of the appropriate grub packages are installed on your SSD. To do this, open Synaptic, select Status > Installed, and scroll down to grub entries. There are 6 things to look for (below). Depending on how your system is configured, these may or may not be installed but they all need to be there to proceed. |
If any are missing, select All and scroll down to the grub packages and install it/ | If any are missing, select All and scroll down to the grub packages and install it/ | ||
Ligne 270: | Ligne 285: | ||
However, if you have another preferred method for checking installed packages and installing any missing ones, you can use that instead. Once the 6 grub packages are all installed, open a terminal and type: | However, if you have another preferred method for checking installed packages and installing any missing ones, you can use that instead. Once the 6 grub packages are all installed, open a terminal and type: | ||
+ | |||
+ | sudo apt-get install --reinstall shim-signed** | ||
+ | |||
+ | Avant de faire quoi que ce soit d' | ||
+ | |||
+ | S'il y en a qui manquent, sélectionnez Tous et faites défiler jusqu' | ||
+ | |||
+ | sudo apt-get install synaptic | ||
+ | |||
+ | Toutefois, si vous préférez une autre méthode pour la vérification des paquets installés et l' | ||
sudo apt-get install --reinstall shim-signed | sudo apt-get install --reinstall shim-signed | ||
- | You may be asked to confirm where you want to install the bootloader files and this is /dev/sdX1 (the EFI partition we created at the start). If you are presented with a graphical screen with several choices, use the space-bar to toggle the asterisk indicating your choice, the arrow keys to navigate; and the ENTER key when you are ready to proceed. | + | **You may be asked to confirm where you want to install the bootloader files and this is /dev/sdX1 (the EFI partition we created at the start). If you are presented with a graphical screen with several choices, use the space-bar to toggle the asterisk indicating your choice, the arrow keys to navigate; and the ENTER key when you are ready to proceed. |
- | This particular method actually installs a series of bootloader files, including those required for booting with secure boot enabled. If you Open as Administrator the folder /boot/efi and then double-click on EFI, you should see 2 folders, BOOT and ubuntu. These folders contain the files needed to boot Ubuntu (ubuntu) and also a “fallback” option (BOOT) in case something doesn’t work properly. | + | This particular method actually installs a series of bootloader files, including those required for booting with secure boot enabled. If you Open as Administrator the folder /boot/efi and then double-click on EFI, you should see 2 folders, BOOT and ubuntu. These folders contain the files needed to boot Ubuntu (ubuntu) and also a “fallback” option (BOOT) in case something doesn’t work properly.** |
- | Your clone Ubuntu_SSD is now a complete, portable system. Reboot your computer and press the F12 key (or whatever key you normally use) to bring up the boot menu. Select the USB SSD device and you should boot into Ubuntu with the old background screen. Open a terminal and type: | + | Il se peut qu'on vous demande de confirmer l' |
+ | |||
+ | En fait, cette méthode installe une série de fichiers du chargeur de démarrage, y compris ceux nécessaires au démarrage quand « secure boot » est activé. En faisant Ouvrir en tant qu' | ||
+ | |||
+ | **Your clone Ubuntu_SSD is now a complete, portable system. Reboot your computer and press the F12 key (or whatever key you normally use) to bring up the boot menu. Select the USB SSD device and you should boot into Ubuntu with the old background screen. Open a terminal and type: | ||
df | df | ||
Ligne 287: | Ligne 316: | ||
to ensure that the GRUB configuration file is correctly updated. If you plan to use this SSD clone in a semi-permanent way, I suggest you modify the boot order settings in the UEFI firmware to boot from USB first. This way, the computer will always boot from the USB SSD if it’s plugged in, and you can always choose to boot to the hard drive by selecting the appropriate option from the GRUB menu that will be displayed at boot time. | to ensure that the GRUB configuration file is correctly updated. If you plan to use this SSD clone in a semi-permanent way, I suggest you modify the boot order settings in the UEFI firmware to boot from USB first. This way, the computer will always boot from the USB SSD if it’s plugged in, and you can always choose to boot to the hard drive by selecting the appropriate option from the GRUB menu that will be displayed at boot time. | ||
- | I have successfully booted this SSD drive on both of my laptops that support UEFI booting (Acer and Dell). It is impossible to guarantee that it will perform correctly on every system; but, hopefully it works for you! | + | I have successfully booted this SSD drive on both of my laptops that support UEFI booting (Acer and Dell). It is impossible to guarantee that it will perform correctly on every system; but, hopefully it works for you!** |
- | Technical Note #1 | + | Votre clone Ubuntu_SSD est maintenant un système complet et portable. Redémarrez l' |
+ | |||
+ | df | ||
+ | |||
+ | et vous devriez voir à la fois la partition Ubuntu_SSD monté comme root (/) et la partition EFI monté sur /boot/efi ; sinon, retournez vérifier les UUID dans /etc/fstab et éditez si nécessaire. L' | ||
+ | |||
+ | sudo update-grub | ||
+ | |||
+ | pour être certain que le fichier de configuration de GRUB est mis à jour correctement. Si vous voulez utiliser ce clone SSD d'une façon quasi permanente, je vous suggère de modifier les paramètres de l' | ||
+ | |||
+ | J'ai démarré ce disque SSD avec succès sur mes deux portables qui supportent le démarrage UEFI (Acer et Dell). Il est impossible de garantir que cela fonctionnera correctement sur tous les systèmes, mais j' | ||
+ | |||
+ | |||
+ | |||
+ | **Technical Note #1 | ||
I originally used gparted to format the EFI partition to a FAT32 filesystem and although I did not receive any error messages, the resulting system would not boot! Interestingly, | I originally used gparted to format the EFI partition to a FAT32 filesystem and although I did not receive any error messages, the resulting system would not boot! Interestingly, | ||
Ligne 295: | Ligne 338: | ||
sudo fsck.fat -v -n /dev/sdb1 | sudo fsck.fat -v -n /dev/sdb1 | ||
- | to check the filesystem on the EFI partition to try to get more detailed information. The resulting details (Figure 11), along with some digging into the FAT32 specification, | + | to check the filesystem on the EFI partition to try to get more detailed information. The resulting details (Figure 11), along with some digging into the FAT32 specification, |
- | A valid FAT32 partition must contain a minimum of 65,525 clusters, where a cluster is a whole number (1, 2, 4, 8, ... 128) multiple of the sector size. The sector size of this SSD is 4096 and the program that gparted calls to do the formatting (mkfs.fat) chooses to use a multiple of 8 for a cluster size of 8 × 4096 = 32,768 bytes. The minimum size for a valid FAT32 partition with this cluster size would be 65,525 × 32,768 = 2, | + | Note technique n° 1 |
+ | |||
+ | Au départ, j'ai utilisé gparted pour formater la partition EFI en FAT32 comme système de fichiers et, bien qu'il n'y ait pas de messages d' | ||
+ | |||
+ | sudo fsck.fat -v -n /dev/sdb1 | ||
+ | |||
+ | pour vérifier le système de fichiers sur la partition EFI afin d' | ||
+ | |||
+ | **A valid FAT32 partition must contain a minimum of 65,525 clusters, where a cluster is a whole number (1, 2, 4, 8, ... 128) multiple of the sector size. The sector size of this SSD is 4096 and the program that gparted calls to do the formatting (mkfs.fat) chooses to use a multiple of 8 for a cluster size of 8 × 4096 = 32,768 bytes. The minimum size for a valid FAT32 partition with this cluster size would be 65,525 × 32,768 = 2, | ||
sudo mkfs.fat -v -F 32 -S 4096 -s 1 /dev/sdX1 | sudo mkfs.fat -v -F 32 -S 4096 -s 1 /dev/sdX1 | ||
- | where the -s 1 option specifies a multiple of 1. A multiple of 1 produces a cluster size of 1 × 4096 = 4096, which requires only 4096 × 65,525 = 268,390,400 bytes (~ 268MB), well within the 500 MB size of the EFI partition. Problem solved. | + | where the -s 1 option specifies a multiple of 1. A multiple of 1 produces a cluster size of 1 × 4096 = 4096, which requires only 4096 × 65,525 = 268,390,400 bytes (~ 268MB), well within the 500 MB size of the EFI partition. Problem solved.** |
+ | |||
+ | Une partition FAT32 valide doit contenir un minimum de 65 525 clusters, où un cluser est un multiple d' | ||
+ | |||
+ | sudo mkfs.fat -v -F 32 -S 4096 -s 1 /dev/sdX1 | ||
+ | |||
+ | où l' | ||
+ | |||
+ | **Technical Note #2 | ||
+ | |||
+ | If you are using a device with 512-byte sectors, just use gparted to format the EFI partition to FAT32 rather than using the terminal command. Everything else stays the same.** | ||
- | Technical | + | Note technique n° 2 |
- | If you are using a device with 512-byte sectors, just use gparted | + | Si vous utilisez un dispositif avec des secteurs à 512 bytes, il suffit d' |
issue173/tutoriel2.1632934522.txt.gz · Dernière modification : 2021/09/29 18:55 de auntiee