Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created November 27, 2017 17:11

Revisions

  1. infinisil created this gist Nov 27, 2017.
    64 changes: 64 additions & 0 deletions -
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,64 @@
    Command (m for help): p

    Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 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: 05E22199-14E6-4D70-B783-B3825FA7965F

    Device Start End Sectors Size Type
    /dev/sda1 2048 2099199 2097152 1G EFI System
    /dev/sda2 2099200 2105343 6144 3M Linux filesystem
    /dev/sda3 2105344 16779263 14673920 7G Linux swap
    /dev/sda4 16779264 937703054 920923791 439.1G Linux filesystem

    Filesystem/RAID signature on partition 1 will be wiped.

    Command (m for help): w
    The partition table has been altered.
    Failed to remove partition 2 from system: Device or resource busy
    Failed to add partition 2 to system: Device or resource busy
    Failed to add partition 4 to system: Device or resource busy

    The kernel still uses the old partitions. The new table will be used at the next reboot.
    Syncing disks.

    ~ ❯❯❯ sudo fdisk /dev/sda

    Welcome to fdisk (util-linux 2.31).
    Changes will remain in memory only, until you decide to write them.
    Be careful before using the write command.


    Command (m for help): p
    Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 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: 05E22199-14E6-4D70-B783-B3825FA7965F

    Device Start End Sectors Size Type
    /dev/sda1 2048 2099199 2097152 1G EFI System
    /dev/sda2 2099200 2105343 6144 3M Linux filesystem
    /dev/sda3 2105344 16779263 14673920 7G Linux swap
    /dev/sda4 16779264 937703054 920923791 439.1G Linux filesystem

    Command (m for help): p
    Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 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: 05E22199-14E6-4D70-B783-B3825FA7965F

    Device Start End Sectors Size Type
    /dev/sda1 2048 2099199 2097152 1G EFI System
    /dev/sda2 2099200 2105343 6144 3M Linux filesystem
    /dev/sda3 2105344 16779263 14673920 7G Linux swap
    /dev/sda4 16779264 937703054 920923791 439.1G Linux filesystem

    Command (m for help): w
    The partition table has been altered.
    Syncing disks.