Your current location:Home > 刺客信条 text

开学第一课

天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。_我的网站

欢乐颂

A |     

Emergency repair workers from the State Grid city power supply company replace porcelain insulators in Wenling, East China's Zhejiang Province on August 10, 2026, to ensure the supply of power after Typhoon Dolphin made landfall. Photo: VCG
    Emergency repair workers from the State Grid city power supply company replace porcelain insulators in Wenling, East China's Zhejiang Province on August 10, 2026, to ensure the supply of power after Typhoon Dolphin made landfall. Photo: VCG
After Typhoon Dolphin, one of the most powerful tropical cyclones to hit China this year, made landfall twice in East China's Zhejiang Province on Sunday, bringing torrential rain and strong winds, it weakened into a tropical storm by Monday morning before moving inland. 
The typhoon traveled more than 6,000 kilometers before landfall, lasted more than three times as long as a typical typhoon and set a record as the eastern-most typhoon to make landfall in China. It is expected to continue moving northwestward with its extensive cloud system covering much of East China, bringing strong winds and heavy rain to more than a dozen provinces and regions. Extreme rainfall is expected not only near the landfall spot but also along its northward path, chinanews.com reported on Monday. 
Affected by Typhoon Dolphin, ferry services along the Yangtze River have been suspended, and traffic restrictions have been imposed along the entire Nanjing section of the river. All 64 ferry services have been suspended, with crews reinforcing mooring lines and maritime authorities deploying additional personnel on standby.
Traffic controls are in effect along the entire Nanjing section of the Yangtze River, with all vessel operations suspended. More than 1,000 vessels and over 7,000 crew members are sheltering, while emergency boats remain on standby for possible incidents. More than 100 high-speed trains at Nanjing South Railway Station have been suspended, while Metro Line S9 is also out of service. Traffic and urban management crews are working to drain accumulated water. Nanjing has also closed outdoor and water-based entertainment facilities at all rated tourist sites and suspended outdoor cultural and tourism activities amid the typhoon.
The Ministry of Finance and the Ministry of Emergency Management urgently allocated 180 million yuan ($26.74 million) in central government disaster relief funds on Monday. Of this amount, 120 million yuan was allocated to support Jiangsu, Zhejiang, Anhui, Fujian and Jiangxi in carrying out emergency flood and typhoon response and disaster relief efforts. The funds will support search and rescue,the relocation of affected residents, emergency measures to eliminate risks and hazards, the investigation and treatment of potential secondary disaster hazards, and repair to damaged homes. 
The National Development and Reform Commission urgently allocated 200 million yuan to support Zhejiang in post-typhoon emergency restoration and recovery, focusing on damaged infrastructure like roads and water conservancy, as well as public services such as schools and hospitals, per CCTV News.
Several government departments also jointly activated a Level IV national disaster relief emergency response on Monday after Typhoon Dolphin severely affected Zhejiang. A disaster relief team was sent to the province to assess damage and assist with evacuations, relief efforts and basic necessities, according to CCTV. 
Ma Jun, director of the Institute of Public and Environmental Affairs, told the Global Times that as the typhoon moves farther inland and northward, a much broader area in northern China also needs to prepare for heavy rainfall as the typhoon is carrying a significant amount of moisture and is capable of producing intense precipitation. 
The typhoon's impacts will extend into central China, with Henan and Shandong potentially seeing significant effects. Later, the storm could even affect the Beijing-Tianjin-Hebei region, Ma said. 
According to the National Meteorological Center (NMC), persistent heavy rainfall is expected across regions including Hubei, Henan and Hebei with torrential rain possible in some areas over the next three days. After Thursday, as the typhoon's remnants move northward and interact with cold air, significant rainfall is expected to continue in Beijing, Tianjin, Hebei and Liaoning, chinanews.com reported on Monday. 
A Level IV flood-control emergency response has been activated on Monday for Hubei and Shandong, Hebei and Henan provinces due to prospects of typhoon impacts, CCTV reported. 
The Ministry of Emergency Management urged affected regions to strengthen geological disaster prevention, clarify responsibilities, enhance interagency coordination and information sharing, and closely monitor rainfall, flooding and geological hazards, according to Xinhua. 
Beijing also issued multiple orange alerts for heavy rain, flash flood hazards and urban flooding on Monday. Several districts subsequently issued red alerts for torrential rain. Beijing plans to activate a Level II flood-control emergency response across the city on Tuesday morning, CCTV reported. 
。    

     阿里云优惠券 先领券再下单        前言    新买的天翼云4-8-5主机。匆匆装上宝塔面板,发现购买的100G磁盘并没有出现在宝塔面板里面。    于是询问天翼云的工作人员,了解到需要初始化Linux的数据盘,自己也在网上找了其他方法,最后还是用天翼云官方给的方法解决。    场景与条件    如何使用fdisk分区工具为数据盘设置分区,操作回显仅供参考。我自己装的是Debian系统,演示中是ContOS。但是大致命令都可以使用。

B |     条件:已挂载数据盘至云主机或物理机,且数据盘还没有被初始化。

C |     操作教程    我们首先通过SSH链接进入服务器,先不要装宝塔(如果已经装了,建议卸除)。首先要初始化磁盘。    查看新增数据盘    执行命令 fdisk -l,查看新增数据盘。    

天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。
    当前的云主机有两块磁盘,/dev/vda是默认的系统盘,且已经拥有了一个分区/dev/vda1,/dev/vdb是本次新增需要初始化的数据盘,容量为40G。    创建MBR分区    下面介绍使用fdisk工具为新增数据盘/dev/vdb创建MBR分区的操作。

D |     1.执行命令 fdisk /dev/vdb,进入fdisk分区工具。回显如下:    

天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。
    2.输入“n”,按“Enter”,开始新建分区。回显如下:    
天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。
    3.从回显信息可以看到,磁盘有两种分区类型:“p”表示主要分区,“e”表示延伸分区。

E |     4.以创建一个主要分区为例,输入“p”,按“Enter”,开始创建一个主分区。回显如下:    

天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。
    5.“Partition number”表示主分区编号,用户可以选择1到4之间的数字。    6.以分区编号选择“1”为例,用户在这里可以输入主分区编号“1”,按“Enter”。

F | 回显如下:    7.“First sector”表示初始磁柱区域,可以选择2048-83886079,默认为2048。这里我们都选择默认    8.以选择默认初始磁柱编号2048为例,直接按“Enter”。回显如下:    

天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。</p><p><img src=

G | ">

    “Last sector”表示截止磁柱区域,可以选择2048-83886079,默认为83886079。

H |     9.以选择默认截止磁柱编号83886079为例,按“Enter”。回显如下:    

天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。
    分区已经创建成功,您已经为40GB的数据盘新建了1个分区。    10.输入“p”,按“Enter”,查看新建分区的详细信息。回显如下:    
天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。
    11.输入“w”,按“Enter”,将分区结果写入分区表中。

I | 回显如下:    

天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。
    12.出现以上信息说明为磁盘/dev/vdb创建分区/dev/vdb1完成。如果之前分区操作有误,用户可输入“q”来退出fdisk分区工具,并且之前的分区结果也不会被保留。    13.最后,执行命令 partprobe,将新的分区表变更同步至操作系统即可。

J |     创建文件系统并挂载    1.执行命令 mkfs -t ext4 /dev/vdb1,为新建的分区创建文件系统,本示例中创建的是ext4格式的文件系统,请根据您的业务需求选择合适的文件系统。    说明对于容量较大的云硬盘,mkfs命令可能执行时间较长,如需要缩短命令执行时间,您可以为mkfs命令添加如下参数:    ext2、ext3、ext4文件系统:添加-E nodiscard参数。    xfs文件系统:添加-K参数    

天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。
    格式化需要等待一段时间,不要退出,直到显示格式化完成。    2.执行命令 mkdir /mnt/sdc,新建挂载点。本示例中/mnt/sdc为挂载点。

K |     3.执行命令 mount /dev/vdb1 /mnt/sdc,将新建分区挂载到新建的挂载路径下。    注意:这里创建好后宝塔也会显示/mnt/sdc,我的建议是直接改成/www    4.执行命令 df -TH,查看挂载结果。回显如下:    

天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。
    表示新建分区“/dev/vdb1”已挂载至“/mnt/sdc”。    设置开机自动挂载磁盘    这一步应当设置,不确定服务器是否会出现宕机情况。    如果您需要在云主机系统启动时自动挂载磁盘,不能采用在/etc/fstab直接指定/dev/vdb1的方法,因为云中设备的顺序编码在关闭或者开启云主机过程中可能发生改变,例如/dev/vdb1可能会变成/dev/vdb2。推荐使用UUID来配置自动挂载数据盘。磁盘的UUID(Universally Unique Identifier)是Linux系统为磁盘分区提供的唯一的标识字符串。    1.执行命令 blkid /dev/vdb1,查询磁盘分区/dev/vdb1的UUID和文件系统类型。回显如下:    
天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。
    2.执行命令 vi /etc/fstab,使用VI编辑器打开“fstab”文件。按“i”,进入编辑模式,将光标移至文件末尾,按“Enter”,添加如下内容,其中UUID=处的内容请输入您在上一步中查询到的UUID,操作如图所示:    
天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。
    3.按“ESC”后,输入“:wq”,按“Enter”。保存设置并退出编辑器。

L |     4.验证自动挂载功能,首先卸载已挂载的分区,执行命令 umount /dev/vdb1,操作如图所示:    

天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。</p><p><img src=

M | ">

    5.执行命令 mount -a来重新加载/etc/fstab文件的所有内容,操作如图所示:    
天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。
    6.执行命令 mount |grep /mnt/sdc来查询文件系统挂载,操作及回显如图所示:    
天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。</p><p><img src=

N | ">

    如果出现图中回显信息,说明自动挂载设置成功。    安装宝塔    做完上面的事情后,你在安装宝塔,当安装宝塔后,就正常显示了数据盘了。

o | 也有可能需要重启宝塔面板进行初始化就可以看到。但我没有尝试。    其他办法    还有其他方法,但这些方法我没有尝试过,所以贴出来放给大家。    连接成功后执行下面命令:    yum install wget -ywget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.shbash auto_disk.sh    这个就是宝塔官方的挂载工具。

p |     系统开始执行自动挂载分区操作,如下图:    

天翼云主机初始化Linux数据盘,解决新装宝塔不显示挂载磁盘。
    当出线停顿以后输入:y,回车,宝塔服务将自动停止,然后开始安装服务和搬迁数据。    当出现move disk会停顿很长时间,不要慌,数据不会丢失,继续等待就行。    安装成功后会自动启用宝塔,登录宝塔面板后会自动显示新挂的磁盘。

q |     总结    这个方法或许适用其他的服务厂商。    本文由2号站长网,五车二原创,转载请注明出处:https://www.zz2zz.com/236496.html

        
    

申请创业报道,分享创业好点子。点击此处,共同探讨创业新机遇!。

Current article:http://eqq7uoq.cengzaodengchawonin.cyou/list_kb6rsv/tncyuz.html

Published on:16:17:34


 Live broadcast Hall
·小柴购超市售卖洪水泡过的饮料
·市场监管总局部署实施2026年度燃气燃烧器具相关产品CCC认证有效性抽查
·高校回应学生可携带宠物上学:正建设一个专门放宠物的园区,目前还没有说要额外收费,后续可能会有
·DC fixed Oct 31 for hearing arguments on the bail application in the money laundering case against Satyendar Jain
·马雷斯卡:内托在右路表现更好,但我们还有马杜埃凯和桑乔
 Press release
·live图再有活人感,我也不想发朋友圈了
·四川省地震局:成都高新减灾研究所冒用“中国地震预警网”名义发布地震预警信息
·食神AI 如何定义你家厨房?
·微软发布了一个新的Windows10免费主题:金鱼、羊毛和蝴蝶
·明基推出苹果 iMac 一体机专用屏幕挂灯 iScreenBar
 Collection of municipal and local releases
·广汽传祺6月最新购车权益上线 涉及多款车型,权益各不相同
·EVGA推出RTX2060“小脂肪”图形卡:单风扇,2.75插槽
·【透视社·头条】大搞权钱交易、将政协委员资格等私相授受,正部级“老虎”董云虎被提起公诉
·6182025年活动什么时候开始?618和国补可以叠加吗?618买手机真的会便宜吗?
·新加坡家长纷纷开始鸡体育!这个项目超适合我们家娃

 

Copyright © 2020-2099 开学第一课 All Rights Reserved 开学第一课 Copyright