美文网首页
LEDE如何格式化空余的SSD空间

LEDE如何格式化空余的SSD空间

作者: 2018从头再来 | 来源:发表于2019-03-30 16:59 被阅读0次

    root@Flanker_LEDE:/# fdisk /dev/sda

    Welcome to fdisk (util-linux 2.33).

    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: 29.6 GiB, 31785484288 bytes, 62081024 sectors

    Disk model: Kingrich KM3 32G

    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: 0xdc765f6b

    Device    Boot  Start    End Sectors  Size Id Type

    /dev/sda1  *      512  410111  409600  200M 83 Linux

    /dev/sda2      410624 1434623 1024000  500M 83 Linux

    Command (m for help): n

    Partition type

      p  primary (2 primary, 0 extended, 2 free)

      e  extended (container for logical partitions)

    Select (default p): p

    Partition number (3,4, default 3): 3

    First sector (410112-62081023, default 1435648):

    Last sector, +/-sectors or +/-size{K,M,G,T,P} (1435648-62081023, default 62081023):

    Created a new partition 3 of type 'Linux' and of size 28.9 GiB.

    Command (m for help): p

    Disk /dev/sda: 29.6 GiB, 31785484288 bytes, 62081024 sectors

    Disk model: Kingrich KM3 32G

    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: 0xdc765f6b

    Device    Boot  Start      End  Sectors  Size Id Type

    /dev/sda1  *        512  410111  409600  200M 83 Linux

    /dev/sda2        410624  1434623  1024000  500M 83 Linux

    /dev/sda3      1435648 62081023 60645376 28.9G 83 Linux

    Command (m for help): w

    The partition table has been altered.

    Syncing disks.

    root@Flanker_LEDE:/# mkfs.f2fs /dev/sda3

    F2FS-tools: mkfs.f2fs Ver: 1.12.0 (2018-11-12)

    Info: Disable heap-based policy

    Info: Debug level = 0

    Info: Trim is enabled

    Info: [/dev/sda3] Disk Model: Kingrich KM3 32G

    Info: Segments per section = 1

    Info: Sections per zone = 1

    Info: sector size = 512

    Info: total sectors = 60645376 (29612 MB)

    Info: zone aligned segment0 blkaddr: 512

    Info: format version with

      "Linux version 4.14.105 (fw867@koolshare.cn) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10361-1f24bc869e)) #0 SMP Sat Mar 9 03:38:43 2019"

    Info: [/dev/sda3] Discarding device

    Info: This device doesn't support BLKSECDISCARD

    Info: Discarded 29612 MB

    Info: Overprovision ratio = 1.170%

    Info: Overprovision segments = 347 (GC reserved = 178)

    Info: format successful

    相关文章

      网友评论

          本文标题:LEDE如何格式化空余的SSD空间

          本文链接:https://www.haomeiwen.com/subject/dyetnxtx.html