<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Linux下的磁盘管理]]></title><description><![CDATA[<p dir="auto">一，hdparm<br />
二，lshw<br />
三，inxi<br />
四，Smartctl<br />
五，lsblk<br />
六，fdisk<br />
sudo fdisk /dev/sda<br />
g   大于２TB的磁盘必须使用GPT模式的分区表（配合UEFI）<br />
n  创建分区（GPT没有扩展分区和逻辑分区　可以创建128个分区）<br />
w　保存<br />
sudo mkfs.ext4 -F /dev/sda1<br />
sudo vi /etc/fstab<br />
/dev/sda1 /data_raid1 ext4 defaults 0 0<br />
/dev/sdc1 /ceph_disk1 ext4 defaults 0 0<br />
/dev/sdd1 /ceph_disk2 ext4 defaults 0 0<br />
/dev/sde1 /ceph_disk3 ext4 defaults 0 0<br />
sudo mount -a<br />
df<br />
七，hwinfo</p>
<p dir="auto">参考：<br />
<a href="https://ostechnix.com/how-to-find-hard-disk-drive-details-in-linux/#:~:text=Find%20Hard%20Disk%20Drive%20Details%20In%20Linux%20Using%20Lsblk,udev%20db%22%20to%20gather%20information" rel="nofollow ugc">https://ostechnix.com/how-to-find-hard-disk-drive-details-in-linux/#:~:text=Find Hard Disk Drive Details In Linux Using Lsblk,udev db" to gather information</a>.</p>
]]></description><link>http://an.forum.genostack.com/topic/52/linux下的磁盘管理</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 09:36:55 GMT</lastBuildDate><atom:link href="http://an.forum.genostack.com/topic/52.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Aug 2020 12:10:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Linux下的磁盘管理 on Wed, 20 Dec 2023 08:14:44 GMT]]></title><description><![CDATA[<p dir="auto">清理磁盘的分区表</p>
<p dir="auto">sudo gdisk /dev/sdb<br />
GPT fdisk (gdisk) version 0.8.10</p>
<p dir="auto">Partition table scan:<br />
MBR: protective<br />
BSD: not present<br />
APM: not present<br />
GPT: present</p>
<p dir="auto">Found valid GPT with protective MBR; using GPT.</p>
<p dir="auto">Command (? for help): x</p>
<p dir="auto">Expert command (? for help): z<br />
About to wipe out GPT on /dev/sdb. Proceed? (Y/N): Y<br />
GPT data structures destroyed! You may now partition the disk using fdisk or<br />
other utilities.<br />
Blank out MBR? (Y/N): Y</p>
]]></description><link>http://an.forum.genostack.com/post/2418</link><guid isPermaLink="true">http://an.forum.genostack.com/post/2418</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Wed, 20 Dec 2023 08:14:44 GMT</pubDate></item><item><title><![CDATA[Reply to Linux下的磁盘管理 on Tue, 04 Aug 2020 12:21:38 GMT]]></title><description><![CDATA[<p dir="auto">R740的分区情况<br />
服务器上的磁盘已经分区了 各个盘的目的如下：<br />
/dev/sdb1   RAID1   安装了OS<br />
/dev/sda1   RAID1   挂在 /data_raid1  8TB    保存比较重要的数据<br />
/dev/sdc1   RAID0   挂在 /ceph_disk1  8TB    测试ceph分布式集群<br />
/dev/sdd1   RAID0   挂在 /ceph_disk2  8TB    测试ceph分布式集群<br />
/dev/sde1   RAID0   挂在 /ceph_disk3  8TB    测试ceph分布式集群</p>
]]></description><link>http://an.forum.genostack.com/post/74</link><guid isPermaLink="true">http://an.forum.genostack.com/post/74</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Tue, 04 Aug 2020 12:21:38 GMT</pubDate></item></channel></rss>