<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>服务器安全维护工作室 &#187; 挂载EBS</title>
	<atom:link href="https://www.fuwuqiok.com/tag/%e6%8c%82%e8%bd%bdebs/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fuwuqiok.com</link>
	<description></description>
	<lastBuildDate>Sun, 01 Mar 2020 07:28:40 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.26</generator>
	<item>
		<title>CentOS下挂载EBS</title>
		<link>https://www.fuwuqiok.com/centos%e4%b8%8b%e6%8c%82%e8%bd%bdebs/</link>
		<comments>https://www.fuwuqiok.com/centos%e4%b8%8b%e6%8c%82%e8%bd%bdebs/#comments</comments>
		<pubDate>Sat, 01 Aug 2015 00:45:51 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[aliyun服务器代维]]></category>
		<category><![CDATA[Amazon AWS]]></category>
		<category><![CDATA[服务器迁移]]></category>
		<category><![CDATA[系统安全代维]]></category>
		<category><![CDATA[网站代维]]></category>
		<category><![CDATA[网站防挂马]]></category>
		<category><![CDATA[AWS EBS]]></category>
		<category><![CDATA[aws服务器代维]]></category>
		<category><![CDATA[CentOS下挂载EBS]]></category>
		<category><![CDATA[小说站代维]]></category>
		<category><![CDATA[挂载EBS]]></category>
		<category><![CDATA[服务器基础环境搭建]]></category>

		<guid isPermaLink="false">https://www.fuwuqiok.com/?p=2344</guid>
		<description><![CDATA[<p>EBS(Elastic Block Store)是Amazon EC2实例的持久性数据块级存储卷。 在简单介绍 [&#8230;]</p>
<p><a rel="nofollow" href="https://www.fuwuqiok.com/centos%e4%b8%8b%e6%8c%82%e8%bd%bdebs/">CentOS下挂载EBS</a>，首发于<a rel="nofollow" href="https://www.fuwuqiok.com">服务器安全维护工作室</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>EBS(Elastic Block Store)是Amazon EC2实例的持久性数据块级存储卷。</p>
<p>在简单介绍一下，购买EBS以后如何挂载到EC2。</p>
<p>环境：CentOS6.5</p>
<p>EBS：300GB</p>
<h2>CentOS6.5下挂载EBS</h2>
<h3>1. 先用fdisk命令查看Device名。</h3>
<pre># fdisk -l

Disk /dev/xvdg: 40.3 GB, 40256929792 bytes
255 heads, 63 sectors/track, 4894 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: 0x00000000

Disk /dev/xvde: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 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: 0x00000000

Disk /dev/xvdf: 322.1 GB, 322122547200 bytes
255 heads, 63 sectors/track, 39162 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: 0x00000000
</pre>
<p>根据容量判断，/dev/xvdf是购买的EBS。</p>
<h3>2. 创建ext4文件系统</h3>
<pre># mkfs -t ext4 /dev/xvdf</pre>
<h3>3. 创建目录及挂载</h3>
<div class="custom"><code># mkdir /data<br />
# mount /dev/xvdf /data</code></div>
<h3>4. 确认</h3>
<pre># df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvde       7.9G  650M  6.9G   9% /
tmpfs           7.4G     0  7.4G   0% /dev/shm
/dev/xvdf       296G  191M  281G   1% /data
</pre>
<h3>5. 修改/etc/fstab</h3>
<p>在/etc/fstab文件的最后进行添加。</p>
<pre># vi /etc/fstab
/dev/xvdf  /data     ext4    defaults         0 0
</pre>
<h3>6. 重启系统进行确认</h3>
<pre># shutdown -r now
# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvde       7.9G  651M  6.9G   9% /
tmpfs           7.4G     0  7.4G   0% /dev/shm
/dev/xvdf       296G  191M  281G   1% /data
</pre>
<p><a rel="nofollow" href="https://www.fuwuqiok.com/centos%e4%b8%8b%e6%8c%82%e8%bd%bdebs/">CentOS下挂载EBS</a>，首发于<a rel="nofollow" href="https://www.fuwuqiok.com">服务器安全维护工作室</a>。</p>
]]></content:encoded>
			<wfw:commentRss>https://www.fuwuqiok.com/centos%e4%b8%8b%e6%8c%82%e8%bd%bdebs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
