[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
Prochaine révisionLes deux révisions suivantes
fr:howtos:general_admin:resize_a_qemu_raw_image_with_an_ntfs_filesytem [2015/09/11 00:56 (UTC)] – créée cedricfr:howtos:general_admin:resize_a_qemu_raw_image_with_an_ntfs_filesytem [2015/09/11 01:11 (UTC)] – [Use ntfsresize to resize the NTFS partition] traduction [fr] cedric
Ligne 1: Ligne 1:
 <!-- Ajouter votre texte ci-dessous. Il est fortement recommandé de commencer avec un Titre (voir la barre d'outils ci-dessus). --> <!-- Ajouter votre texte ci-dessous. Il est fortement recommandé de commencer avec un Titre (voir la barre d'outils ci-dessus). -->
-====== Resizing a QEMU raw image with an NTFS filesystem ======+====== Redimensionner une Image RAW QEMU Comportant un Système de Fichiers NTFS ======
 <note warning>TRADUCTION en cours  --- //[[wiki:user:cedric|Cedric M.]] 2015/09/11 00:54//</note> <note warning>TRADUCTION en cours  --- //[[wiki:user:cedric|Cedric M.]] 2015/09/11 00:54//</note>
-This is a quick guide to increasing the disk space available to your Windows virtual machine with an NTFS file system. The example is based on increasing a partition from 5GB to 6GB. 
  
-<note warning>Backup your original file first in case something goes wrong.</note>+C'est un guide rapide pour augmenter l'espace disponible de votre machine virtuelle Windows munie d'un système de fichiers NTFS. L'exemple s'appuie sur le redimensionnement d'une partition de 5Go à 6Go.
  
-===== Use qemu-img to resize the  QEMU raw disk image  =====+<note warning>Sauvegardez votre fichier original au cas où quelque chose ne se déroulerait pas bien.</note>
  
-This command increases the size of the disk image in the file Windows_XP_Professional_SP_3.img by 1GB.+===== Utiliser qemu-img pour redimensionner l'image disque RAW de QEMU ===== 
 + 
 +Cette commande augmente la taille de l'image-disque du fichier Windows_XP_Professional_SP_3.img d'1Go.
  
 <code>qemu-img resize Windows_XP_Professional_SP_3.img +1G</code> <code>qemu-img resize Windows_XP_Professional_SP_3.img +1G</code>
  
-After this commandif you boot your virtual machine, you will see that there is an additional 1GB of free disk space available.+Après cette commandesi vous démarrez votre machine virtuellevous verrez 1Go d'espace libre supplémentaire.
  
-===== Find the offset into the image  =====+===== Trouver l'offset dans l'image =====
  
-Loop mount the image.+Monter l'image en mode loop.
  
 <code>losetup /dev/loop0 Windows_XP_Professional_SP_3.img</code> <code>losetup /dev/loop0 Windows_XP_Professional_SP_3.img</code>
  
-Inspect the partition table (here parted is used but fdisk or cfdisk can also be used).+Regarder la table de partition (ici parted est utilisé mais fdisk ou cfdisk peuvent également être utilisés).
  
 <code>parted /dev/loop0</code> <code>parted /dev/loop0</code>
  
-Within parted, set the units to sectors, then print the current partition table.+Dans parted, sélectionnez l'unité sur secteurs puis afficher la table de partition actuelle.
  
 <code>(parted) unit s                                                            <code>(parted) unit s                                                           
 (parted) print </code> (parted) print </code>
  
-The output will look something like this:+La sortie devrait ressembler à quelque chose comme ça:
 <code>Model: Loopback device (loopback) <code>Model: Loopback device (loopback)
 Disk /dev/loop0: 12582912s Disk /dev/loop0: 12582912s
Ligne 40: Ligne 41:
 </code> </code>
  
-Note the Sector size and Start sector numbers in the output.+Notez les valeurs du début (Start) et de la taille (Size) du secteur.
  
-Now quit parted.+Puis quittez parted.
  
 <code>(parted) quit</code> <code>(parted) quit</code>
  
-Delete the loop device.+Supprimer le device loop.
  
 <code>losetup -d /dev/loop0</code> <code>losetup -d /dev/loop0</code>
  
-===== Use ntfsresize to resize the NTFS partition =====+===== Utiliser ntfsresize pour redimensionner la partition NTFS =====
  
-Loop mount the NTFS partition to be resized, using an offset calculated from the sector size and start sector.+Monter la partition NTFS en mode loop pour la redimensionner; calculez l'offset d'après les valeurs sector size et start sector.
  
 <code>losetup -o$((512*63)) /dev/loop0 Windows_XP_Professional_SP_3.img</code> <code>losetup -o$((512*63)) /dev/loop0 Windows_XP_Professional_SP_3.img</code>
  
-First do a dry run.+Faites un test.
  
 <code> ntfsresize -n -s 6G /dev/loop0</code> <code> ntfsresize -n -s 6G /dev/loop0</code>
  
-If all is OK, do it for real.+Si tout est OK, faites le pour de vrai.
  
 <code>ntfsresize -s 6G /dev/loop0</code> <code>ntfsresize -s 6G /dev/loop0</code>
  
-Delete the loop device.+Supprimer le loop device.
  
 <code>losetup -d /dev/loop0</code> <code>losetup -d /dev/loop0</code>
 fr:howtos:general_admin:resize_a_qemu_raw_image_with_an_ntfs_filesytem ()