Outils pour utilisateurs

Outils du site


fdisk

Différences

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

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
fdisk [2016/08/26 14:55] simonfdisk [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1
Ligne 1: Ligne 1:
-====== La commande "fdisk" ====== 
  
-La page de [[man de fdisk]]. 
- 
-=== Exemples === 
- 
-== Voir les partitions == 
-Très pratique pour repérer une carte SD ou une clé USB. 
-<code bash> 
-# fdisk -l 
- 
-Disk /dev/vda: 10 GiB, 10737418240 bytes, 20971520 sectors 
-Units: sectors of 1 * 512 = 512 bytes 
-Sector size (logical/physical): 512 bytes / 512 bytes 
-I/O size (minimum/optimal): 512 bytes / 512 bytes 
-Disklabel type: dos 
-Disk identifier: 0x00000000 
- 
-Device     Boot Start      End  Sectors Size Id Type 
-/dev/vda1  *     2048 20971519 20969472  10G 83 Linux 
-</code> 
- 
-== Créer une partition == 
-Comme sur l'article "[[ajouter_un_disque_dur_sur_un_vps]]" : 
-<code bash> 
-# fdisk /dev/vdb 
- 
-Welcome to fdisk (util-linux 2.25.2). 
-Changes will remain in memory only, until you decide to write them. 
-Be careful before using the write command. 
- 
-Device does not contain a recognized partition table. 
-Created a new DOS disklabel with disk identifier 0x78fc199b. 
- 
-Command (m for help): n 
-Partition type 
-     primary (0 primary, 0 extended, 4 free) 
-     extended (container for logical partitions) 
-Select (default p): p 
-Partition number (1-4, default 1): 1 
-First sector (2048-104857599, default 2048):  
-Last sector, +sectors or +size{K,M,G,T,P} (2048-104857599, default 104857599):  
- 
-Created a new partition 1 of type 'Linux' and of size 50 GiB. 
- 
-Command (m for help): w 
-The partition table has been altered. 
-Calling ioctl() to re-read partition table. 
-Syncing disks. 
-</code> 
- 
-==== Sources ==== 
-  * [[http://stephane.boireau.free.fr/informatique/tomsrtbt/fdisk.html|stephane.boireau.free.fr]] 
fdisk.1472223302.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)