前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Linux R720挂载M.2固态硬盘

Linux R720挂载M.2固态硬盘

作者头像
用户8664418
修改2021-07-13 18:12:32
2.7K0
修改2021-07-13 18:12:32
举报
文章被收录于专栏:自留地2

因为预算问题,没法买服务器级别的PCIE固态,于是在某东买了一块

M.2固态硬盘 和 一个 M.2转PCIE的卡。

顺便重温下Linux挂载硬盘

[root@localhost ~]# fdisk -l

Disk /dev/nvme0n1: 500.1 GB, 500107862016 bytes

64 heads, 32 sectors/track, 476940 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00000000

Disk /dev/sda: 249.5 GB, 249510756352 bytes

255 heads, 63 sectors/track, 30334 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x000173a3

[root@localhost ~]# fdisk /dev/nvme0n1

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel with disk identifier 0x78189e91.

Changes will remain in memory only, until you decide to write them.

After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to

switch off the mode (command 'c') and change display units to

sectors (command 'u').

Command (m for help): n

Command action

e extended

p primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-476940, default 1):

Using default value 1

Last cylinder, +cylinders or +size{K,M,G} (1-476940, default 476940):

Using default value 476940

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

Syncing disks.

[root@localhost ~]# fdisk -l

Disk /dev/nvme0n1: 500.1 GB, 500107862016 bytes

64 heads, 32 sectors/track, 476940 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x78189e91

Device Boot Start End Blocks Id System

/dev/nvme0n1p1 1 476940 488386544 83 Linux

[root@localhost ~]# mkfs -t ext4 /dev/nvme0n1

mke2fs 1.41.12 (17-May-2010)

Discarding device blocks: done

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

Stride=0 blocks, Stripe width=0 blocks

30531584 inodes, 122096646 blocks

6104832 blocks (5.00%) reserved for the super use

First data block=0

Maximum filesystem blocks=4294967296

3727 block groups

32768 blocks per group, 32768 fragments per group

8192 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,

102400000

Checking for bad blocks (read-only test): done

Writing inode tables: done

Creating journal (32768 blocks): done

Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 32 mounts o

180 days, whichever comes first. Use tune2fs -c or -i to override.

[root@localhost ~]# mkdir /ssdm2

[root@localhost ~]# mount /dev/nvme0n1 /ssdm2

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
文件存储
文件存储(Cloud File Storage,CFS)为您提供安全可靠、可扩展的共享文件存储服务。文件存储可与腾讯云服务器、容器服务、批量计算等服务搭配使用,为多个计算节点提供容量和性能可弹性扩展的高性能共享存储。腾讯云文件存储的管理界面简单、易使用,可实现对现有应用的无缝集成;按实际用量付费,为您节约成本,简化 IT 运维工作。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档