Editing Fdisk

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{lc}}
+
 
 
[[wikipedia:fdisk]] ([[1983]])
 
[[wikipedia:fdisk]] ([[1983]])
 +
  
 
  fdisk
 
  fdisk
Line 6: Line 7:
 
  Try 'fdisk --help' for more information.
 
  Try 'fdisk --help' for more information.
  
 
+
fdisk -l
== List partitions ==
 
<code>fdisk -l</code>
 
  
  
Line 21: Line 20:
 
  Device    Boot Start      End  Sectors  Size Id Type
 
  Device    Boot Start      End  Sectors  Size Id Type
 
  /dev/sda1        8192 31116287 31108096 14.9G  c W95 FAT32 (LBA)
 
  /dev/sda1        8192 31116287 31108096 14.9G  c W95 FAT32 (LBA)
 
 
 
<pre>
 
fdisk -l
 
Disk /dev/sdb: 200 GiB, 214748364800 bytes, 419430400 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
 
 
 
Disk /dev/sda: 100 GiB, 107374182400 bytes, 209715200 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: gpt
 
Disk identifier: 833DA06F-D948-4DD6-AB71-691BB1461297
 
 
Device    Start      End  Sectors  Size Type
 
/dev/sda1  2048 209713151 209711104  100G Linux filesystem
 
 
 
Disk /dev/sdc: 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: gpt
 
Disk identifier: 371CDE38-DCF6-4AEC-A85C-D15D28A3CB68
 
 
Device    Start      End  Sectors Size Type
 
/dev/sdc1  2048    4095    2048  1M BIOS boot
 
/dev/sdc2  4096 20969471 20965376  10G Linux filesystem
 
</pre>
 
  
 
== Create two partitions ==
 
== Create two partitions ==
Line 169: Line 135:
 
* <code>[[resize2fs]]</code>
 
* <code>[[resize2fs]]</code>
 
* <code>[[blkid]]</code>
 
* <code>[[blkid]]</code>
* <code>[[lsblk]]</code>
 
[[/dev/nvme0n1p1]]
 
  
 
== See also ==
 
== See also ==
 
* [[gdisk]]
 
* [[gdisk]]
* {{HBA}}
 
 
* {{fdisk}}
 
* {{fdisk}}
 
* {{Linux block devices}}
 
* {{Linux block devices}}

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: