一、参考资料

Ubuntu环境下挂载新硬盘

二、重要说明

格式化硬盘

# 格式化硬盘
sudo mkfs -t ext4 /dev/nvme0n1

格式化分区

# 格式化分区
sudo mke2fs -t ext4  /dev/nvme0n1p1

三、删除已有分区

Linux使用fdisk删除分区详解

3.1 查看分区

nvme0n1 是 M.2 硬盘名称,nvme0n1p1 是分区名称。

lsblk
xjzk@ubuntu:~$ lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0          7:0    0    16M  1 loop
mtdblock0     31:0    0    32M  0 disk
mmcblk0      179:0    0  14.7G  0 disk
├─mmcblk0p1  179:1    0    14G  0 part /
├─mmcblk0p2  179:2    0    64M  0 part
├─mmcblk0p3  179:3    0    64M  0 part
├─mmcblk0p4  179:4    0   448K  0 part
├─mmcblk0p5  179:5    0   448K  0 part
├─mmcblk0p6  179:6    0    63M  0 part
├─mmcblk0p7  179:7    0   512K  0 part
├─mmcblk0p8  179:8    0   256K  0 part
├─mmcblk0p9  179:9    0   256K  0 part
├─mmcblk0p10 179:10   0   300M  0 part
└─mmcblk0p11 179:11   0 199.1M  0 part
mmcblk0boot0 179:32   0     4M  1 disk
mmcblk0boot1 179:64   0     4M  1 disk
mmcblk0rpmb  179:96   0     4M  0 disk
zram0        252:0    0 971.7M  0 disk [SWAP]
zram1        252:1    0 971.7M  0 disk [SWAP]
zram2        252:2    0 971.7M  0 disk [SWAP]
zram3        252:3    0 971.7M  0 disk [SWAP]
nvme0n1      259:0    0 119.2G  0 disk
└─nvme0n1p1  259:1    0     1K  0 part

3.2 删除 nvme0n1p1 分区

删除 /dev/nvme0n1p1 分区。

sudo fdisk /dev/nvme0n1
xjzk@ubuntu:~$ sudo fdisk /dev/nvme0n1
[sudo] password for xjzk:Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.Command (m for help): m  # 查看helpHelp:DOS (MBR)a   toggle a bootable flagb   edit nested BSD disklabelc   toggle the dos compatibility flagGenericd   delete a partitionF   list free unpartitioned spacel   list known partition typesn   add a new partitionp   print the partition tablet   change a partition typev   verify the partition tablei   print information about a partitionMiscm   print this menuu   change display/entry unitsx   extra functionality (experts only)ScriptI   load disk layout from sfdisk script fileO   dump disk layout to sfdisk script fileSave & Exitw   write table to disk and exitq   quit without saving changesCreate a new labelg   create a new empty GPT partition tableG   create a new empty SGI (IRIX) partition tableo   create a new empty DOS partition tables   create a new empty Sun partition tableCommand (m for help): d  # 删除分区
Selected partition 1
Partition 1 has been deleted.Command (m for help): w  # 保存操作
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

3.3 再查看分区

再次查看分区,发现 /dev/nvme0n1p1 分区已经删除。

xjzk@ubuntu:~$ lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0          7:0    0    16M  1 loop
mtdblock0     31:0    0    32M  0 disk
mmcblk0      179:0    0  14.7G  0 disk
├─mmcblk0p1  179:1    0    14G  0 part /
├─mmcblk0p2  179:2    0    64M  0 part
├─mmcblk0p3  179:3    0    64M  0 part
├─mmcblk0p4  179:4    0   448K  0 part
├─mmcblk0p5  179:5    0   448K  0 part
├─mmcblk0p6  179:6    0    63M  0 part
├─mmcblk0p7  179:7    0   512K  0 part
├─mmcblk0p8  179:8    0   256K  0 part
├─mmcblk0p9  179:9    0   256K  0 part
├─mmcblk0p10 179:10   0   300M  0 part
└─mmcblk0p11 179:11   0 199.1M  0 part
mmcblk0boot0 179:32   0     4M  1 disk
mmcblk0boot1 179:64   0     4M  1 disk
mmcblk0rpmb  179:96   0     4M  0 disk
zram0        252:0    0 971.7M  0 disk [SWAP]
zram1        252:1    0 971.7M  0 disk [SWAP]
zram2        252:2    0 971.7M  0 disk [SWAP]
zram3        252:3    0 971.7M  0 disk [SWAP]
c      259:0    0 119.2G  0 disk

四、关键步骤

4.1 格式化硬盘

说明:
-t ext4 表示将硬盘格式化成ext4文件系统类型。

# 格式化硬盘
sudo mkfs -t ext4 /dev/nvme0n1
xjzk@ubuntu:~$ sudo mkfs -t ext4 /dev/nvme0n1
mke2fs 1.44.1 (24-Mar-2018)
Found a dos partition table in /dev/nvme0n1
Proceed anyway? (y,N) y
Discarding device blocks: done
Creating filesystem with 31258710 4k blocks and 7815168 inodes
Filesystem UUID: 88bd11b4-5d74-432d-8bea-f7991baac2eb
Superblock backups stored on blocks:32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,4096000, 7962624, 11239424, 20480000, 23887872Allocating group tables: done
Writing inode tables: done
Creating journal (131072 blocks): done
Writing superblocks and filesystem accounting information: done

4.2 查看分区

# 查看硬盘分区情况
sudo fdisk -l# 输出
...
Device             Start      End  Sectors   Size Type
/dev/mmcblk0p1        40 29360167 29360128    14G Microsoft basic data
/dev/mmcblk0p2  29360168 29491239   131072    64M Microsoft basic data
/dev/mmcblk0p3  29491240 29622311   131072    64M Microsoft basic data
/dev/mmcblk0p4  29622312 29623207      896   448K Microsoft basic data
/dev/mmcblk0p5  29623208 29624103      896   448K Microsoft basic data
/dev/mmcblk0p6  29624104 29753127   129024    63M Microsoft basic data
/dev/mmcblk0p7  29753128 29754151     1024   512K Microsoft basic data
/dev/mmcblk0p8  29754152 29754663      512   256K Microsoft basic data
/dev/mmcblk0p9  29754664 29755175      512   256K Microsoft basic data
/dev/mmcblk0p10 29755176 30369575   614400   300M Microsoft basic data
/dev/mmcblk0p11 30369576 30777310   407735 199.1M Microsoft basic data
...
...
...
Disk /dev/nvme0n1: 119.2 GiB, 128035676160 bytes, 250069680 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: 0x09833de0
...
xjzk@ubuntu:~$ sudo fdisk -l
Disk /dev/ram0: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram1: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram2: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram3: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram4: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram5: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram6: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram7: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram8: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram9: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram10: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram11: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram12: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram13: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram14: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram15: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/loop0: 16 MiB, 16777216 bytes, 32768 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: 0x00000000Disk /dev/mtdblock0: 32 MiB, 33554432 bytes, 65536 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/mmcblk0: 14.7 GiB, 15758000128 bytes, 30777344 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: 4F19173E-E9D6-406A-9559-147F77D1030EDevice             Start      End  Sectors   Size Type
/dev/mmcblk0p1        40 29360167 29360128    14G Microsoft basic data
/dev/mmcblk0p2  29360168 29491239   131072    64M Microsoft basic data
/dev/mmcblk0p3  29491240 29622311   131072    64M Microsoft basic data
/dev/mmcblk0p4  29622312 29623207      896   448K Microsoft basic data
/dev/mmcblk0p5  29623208 29624103      896   448K Microsoft basic data
/dev/mmcblk0p6  29624104 29753127   129024    63M Microsoft basic data
/dev/mmcblk0p7  29753128 29754151     1024   512K Microsoft basic data
/dev/mmcblk0p8  29754152 29754663      512   256K Microsoft basic data
/dev/mmcblk0p9  29754664 29755175      512   256K Microsoft basic data
/dev/mmcblk0p10 29755176 30369575   614400   300M Microsoft basic data
/dev/mmcblk0p11 30369576 30777310   407735 199.1M Microsoft basic dataDisk /dev/mmcblk0boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/mmcblk0boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/nvme0n1: 119.2 GiB, 128035676160 bytes, 250069680 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: 0x09833de0Disk /dev/zram0: 971.7 MiB, 1018880000 bytes, 248750 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/zram1: 971.7 MiB, 1018880000 bytes, 248750 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/zram2: 971.7 MiB, 1018880000 bytes, 248750 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/zram3: 971.7 MiB, 1018880000 bytes, 248750 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

4.3 创建分区

# 进入硬盘
sudo fdisk /dev/nvme0n1# 查看帮助
Command (m for help): m# 添加分区
Command (m for help): n# 添加拓展分区
Select (default p): e# 分区编号,Enter回车默认
Partition number (1-4, default 1):# 分区首地址,Enter回车默认
First sector (2048-250069679, default 2048):# 分区尾地址,Enter回车默认
Last sector, +sectors or +size{K,M,G,T,P} (2048-250069679, default 250069679):# 打印分区
Command (m for help): p# 保存修改
Command (m for help): w
xjzk@ubuntu:~$ sudo fdisk /dev/nvme0n1Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.Command (m for help): n
Partition typep   primary (0 primary, 0 extended, 4 free)e   extended (container for logical partitions)
Select (default p): e
Partition number (1-4, default 1):
First sector (2048-250069679, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-250069679, default 250069679):Created a new partition 1 of type 'Extended' and of size 119.2 GiB.Command (m for help): p
Disk /dev/nvme0n1: 119.2 GiB, 128035676160 bytes, 250069680 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: 0x09833de0Device         Boot Start       End   Sectors   Size Id Type
/dev/nvme0n1p1       2048 250069679 250067632 119.2G  5 ExtendedCommand (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

4.4 格式化分区

# 格式化分区
sudo mke2fs -t ext4  /dev/nvme0n1p1
xjzk@ubuntu:/$ sudo mke2fs -t ext4 /dev/nvme0n1p1
[sudo] password for xjzk:
mke2fs 1.44.1 (24-Mar-2018)
Discarding device blocks: done
Creating filesystem with 31258461 4k blocks and 7815168 inodes
Filesystem UUID: 83a62e34-6619-4ef4-b44f-5734f0af8b3f
Superblock backups stored on blocks:32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,4096000, 7962624, 11239424, 20480000, 23887872Allocating group tables: done
Writing inode tables: done
Creating journal (131072 blocks): done
Writing superblocks and filesystem accounting information: done

4.5 再查看分区

系统已经识别硬盘的 /dev/nvme0n1p1 分区。

sudo fdisk -l# 输出
...
Disk /dev/nvme0n1: 119.2 GiB, 128035676160 bytes, 250069680 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: 0x09833de0Device         Boot Start       End   Sectors   Size Id Type
/dev/nvme0n1p1       2048 250069679 250067632 119.2G  5 Extended
...
xjzk@ubuntu:~$ sudo fdisk -l
Disk /dev/ram0: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram1: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram2: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram3: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram4: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram5: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram6: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram7: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram8: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram9: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram10: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram11: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram12: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram13: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram14: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/ram15: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/loop0: 16 MiB, 16777216 bytes, 32768 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: 0x00000000Disk /dev/mtdblock0: 32 MiB, 33554432 bytes, 65536 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/mmcblk0: 14.7 GiB, 15758000128 bytes, 30777344 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: 4F19173E-E9D6-406A-9559-147F77D1030EDevice             Start      End  Sectors   Size Type
/dev/mmcblk0p1        40 29360167 29360128    14G Microsoft basic data
/dev/mmcblk0p2  29360168 29491239   131072    64M Microsoft basic data
/dev/mmcblk0p3  29491240 29622311   131072    64M Microsoft basic data
/dev/mmcblk0p4  29622312 29623207      896   448K Microsoft basic data
/dev/mmcblk0p5  29623208 29624103      896   448K Microsoft basic data
/dev/mmcblk0p6  29624104 29753127   129024    63M Microsoft basic data
/dev/mmcblk0p7  29753128 29754151     1024   512K Microsoft basic data
/dev/mmcblk0p8  29754152 29754663      512   256K Microsoft basic data
/dev/mmcblk0p9  29754664 29755175      512   256K Microsoft basic data
/dev/mmcblk0p10 29755176 30369575   614400   300M Microsoft basic data
/dev/mmcblk0p11 30369576 30777310   407735 199.1M Microsoft basic dataDisk /dev/mmcblk0boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/mmcblk0boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytescDisk /dev/zram0: 971.7 MiB, 1018880000 bytes, 248750 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/zram1: 971.7 MiB, 1018880000 bytes, 248750 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/zram2: 971.7 MiB, 1018880000 bytes, 248750 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk /dev/zram3: 971.7 MiB, 1018880000 bytes, 248750 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

4.6 挂载硬盘

查看硬盘挂载情况

df -l# 新硬盘分区没有挂载,无法进入和查看

挂载硬盘

sudo mount -t ext4 /dev/nvme0n1 /media/mydisk

再次查看硬盘挂载情况

df -l

4.7 系统启动自动挂载

sudo gedit /etc/fstab# 添加
/dev/nvme0n1         /media/mydisk         ext4           defaults                                     0 1

4.8 卸载硬盘

umount /dev/nvme0n1

Jetson NX挂载nvme固态硬盘相关推荐

  1. Jetson NX设置nvme固态硬盘为系统盘

    一.参考资料 rootOnNVMe How to Boot from NVMe SSD? 仅两步,把JETSON XAVIER NX的系统移动到nvme硬盘上 NVIDIA JETSON XAVIER ...

  2. nvm用标准sata ahci码_能者多劳!让NVMe固态硬盘做系统盘的同时,加速SATA数据盘...

    不知不觉当中,固态硬盘已经取代机械硬盘成为主流.越来越多的玩家已经淘汰机械盘,使用NVMe+SATA的固态硬盘高低搭配.既然是高低搭配,就一定会有性能差距,是否能从NVMe固态硬盘中划分出一小部分空间 ...

  3. skhynix nvme toolbox怎么选择磁盘_为啥我的NVMe固态硬盘跑分比别人少一半!?莫慌,2张图完美解决...

    NVMe固态硬盘鲁大师跑分比别人少2万?怎么破 别着急,先用Diskman或者ASSSD测一下读写速度是否正常,毕竟鲁大师跑硬盘分有点扯犊子了.但是同样花钱买来的NVMe,别人跑6万多,你的为啥只有5 ...

  4. nvme固态硬盘开机慢_解决win10系统下nvme固体硬盘开机慢的方法

    随着 具体方法: 步骤一.进入电脑的BIOS界面(方法:开机后立刻连续敲击F2键或者关机后通过novo小孔选择BIOS Setup),选择到Configuration页面,将SATA Controll ...

  5. h61 nvme硬盘_谁更快?PCIe 4.0时代的NVMe固态硬盘性能对决

    PCIe 4.0到底有多快?显卡暂时无法告诉你答案,但是NVMe固态硬盘可以.除三星980Pro和西数SN850之外,台湾公版SSD主控双雄--慧荣和群联也给出了各自的答案. 下表是PCEVA评测室整 ...

  6. nvme固态硬盘开机慢_别让谣言害了你!关于固态硬盘的谣言以及使用误区 NVMe固态硬盘卡慢怎么办 NVMe固态硬盘卡慢解决方法【详解】-宝商在线...

    凭借高速特性,固态硬盘逐步取代机械硬盘已是大势所趋,关于固态硬盘的话题,自然也就多了起来.今天装机之家小编就来告诉大家,关于固态硬盘的谣言以及使用误区,来看看你中招了没 [误区一:想中毒,哪有这么容易 ...

  7. ESXi-6.7.0U3b nvme固态硬盘无法识别解决方法

    # 不想听我啰嗦请看另一篇 https://blog.csdn.net/dnpao/article/details/109289515 因为之前主板安装过ESXI-6.7.0版本,今天突然想Esxi重 ...

  8. y700支持m2硬盘_别再浪费电脑的潜力,这些笔记本电脑都能升级NVMe固态硬盘

    [来自IT168] M.2正在成为固态硬盘的主流形式,除了台式机之外,很多笔记本电脑都内置有可支持NVMe固态硬盘的M.2插槽.购买低配机型的用户也可以通过后期加装体验到NVMe固态硬盘带来的极致性能 ...

  9. 华硕z97不识别m2固态_华硕主板Z97-A无法识别intel M.2 NVME固态硬盘的解决方法

    硬件信息说明 主板:华硕z97-a 固态硬盘:英特尔(intel)760p系列 256g nvme m.2 2280接口 ssd固态硬盘 bios:2015年发布的版本,点击下载最新的bios固件z9 ...

最新文章

  1. Paint.Net学习笔记——二、窗体(上)
  2. 经典面试题:链表的相交与环问题
  3. 【实践驱动开发3-005】TI WL1835MODCOM8 在android的移植 - SDIO and wifi 基础
  4. pandas忽略行列索引,纵向拼接多个dataframe
  5. Python选择结构注意事项
  6. markdown的基础语言
  7. python使用缩进来体现-Python 使用缩进来体现代码之间的逻辑关系 .
  8. [what is machine learning?]
  9. 机械设计参考CAD零件图纸常用素材资料(300张)
  10. XX公司2014年互联网信息化工作规划
  11. Python3.9安装Cartopy使用报错:DLL load failed while importing trace
  12. 技术大佬:我去,你写的 switch 语句也太老土了吧
  13. 机器学习_深度学习毕设题目汇总——运动活动动作
  14. 攻防世界mfw--详细笔记
  15. python电话模块_Python常用模块
  16. DOM Scripting 学习六 - Image Gallery
  17. 32强鹏城逐战!“共筑梦想、创赢未来” 2021年绿色产业创新创业大赛深圳赛区比赛精彩上演
  18. Python中整除(//)和取余(%)问题
  19. html 表格自动编号,excel表格批量自动编号
  20. 统计学-基于R (第四版) 贾俊平编著 第二章: 数据可视化 2.1, 2.2 习题答案 【自用】

热门文章

  1. 面试 SVM 算法不用慌,原理这次被扒的干干净净
  2. 识别到硬盘 计算机不显示盘符,笔者教你修复可以识别u盘但不显示盘符的问题...
  3. 微信JSSDK使用步骤(用于在微信浏览器中自定义分享,分享到朋友圈,拍照,扫一扫等功能)
  4. 通则ZLT X21 CPE使用指南
  5. 2023年,对人工智能的思考与展望
  6. 宽容、大度,扭转乾坤
  7. 自己的下拉框可以编辑的
  8. 谷歌浏览器提示您的连接不是私密连接
  9. 谁能教我62数据啊、
  10. 汇编程序设计与计算机体系结构软件工程师教程笔记:汇编语法基础知识