Centos7挂载数据盘

在新购买的linux服务器中往往需要我们自己挂载数据盘

1.  运行 fdisk -l 命令查看实例是否有数据盘

 

2.  创建一个单分区数据盘,依次执行以下命令:

  运行 fdisk /dev/sdb:对数据盘进行分区。

  输入 n 并按回车键:创建一个新分区。

  输入 p 并按回车键:选择主分区。因为创建的是一个单分区数据盘,所以只需要创建主分区。

  输入分区编号并按回车键。因为这里仅创建一个分区,可以输入 1

  输入第一个可用的扇区编号:按回车键采用默认值 1。

  输入最后一个扇区编号:因为这里仅创建一个分区,所以按回车键采用默认值。

  输入 wq 并按回车键,开始分区。

 

3. 查看新的分区:运行命令 fdisk -l。如果出现以下信息,说明已经成功创建了新分区 /dev/sdb1。

4. 在新分区上创建一个文件系统:运行命令 mkfs.xfs /dev/sdb1

本示例要创建一个 xfs 文件系统。也可以根据自己的需要,选择创建其他文件系统(ext4….)。

5.  挂载文件系统:运行命令 mount /dev/sdb1 /data挂载磁盘到/data目录

6. 开机自动挂载(防止系统重启后挂载丢失),/etc/fstab是在开机引导的时候自动挂载到linux的文件系统

向“/etc/fstab”写入新分区信息

7.最后可用命令“df -h”或“df -HT”查看是否挂载成功

qihong lu

90 COMMENTS

  • Appreciating the time and energy you put into your
    site and in depth information you offer. It’s nice to come across a blog every once in a while that isn’t the same out of date rehashed material.
    Fantastic read! I’ve saved your site and I’m
    including your RSS feeds to my Google account.

  • I just want to tell you that I am very new to blogs and truly loved this blog site. Probably I’m planning to bookmark your blog post . You actually have terrific posts. Thank you for revealing your blog site.

  • You made a number of good points there. I did a search on the subject and found the majority of persons will agree with your blog.

  • Aw, this was a very nice post. In thought I want to put in writing like this additionally – taking time and precise effort to make an excellent article… but what can I say… I procrastinate alot and by no means appear to get something done.

  • Hi there, this weekend is nice in support of me,
    because this occasion i am reading this wonderful educational paragraph here at my home.

  • Hey just wanted to give you a quick heads up. The text in your post seem to be running off the screen in Internet explorer. I’m not sure if this is a format issue or something to do with browser compatibility but I figured I’d post to let you know. The design look great though! Hope you get the problem fixed soon. Many thanks

  • I have learned a number of important things via your post. I would also like to convey that there might be situation where you will apply for a loan and never need a cosigner such as a U.S. Student Support Loan. In case you are getting a borrowing arrangement through a common loan provider then you need to be made ready to have a co-signer ready to make it easier for you. The lenders will certainly base any decision over a few variables but the largest will be your credit history. There are some financial institutions that will furthermore look at your job history and come to a decision based on that but in many cases it will hinge on your ranking.

  • Hi my family member! I want to say that this article is awesome, nice written and include almost all important infos. I would like to peer extra posts like this .

  • It’s a shame you don’t have a donate button! I’d without a doubt donate to this excellent blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to brand new updates and will talk about this site with my Facebook group. Talk soon!

  • I am glad for writing to let you know of the magnificent discovery my friend’s princess found browsing the blog. She came to understand numerous things, which included what it’s like to have a very effective coaching mood to get other folks quite simply learn about certain complex things. You actually exceeded readers’ desires. Thank you for imparting these necessary, safe, edifying and even unique guidance on this topic to Jane.

  • Sapid Agency is a Search Engine Optimization company in New York City that provides SEO Services. Their proprietary SEO strategies help struggling websites and aspiring business owners to rank their websites higher in multiple search engines like Google , Yahoo and Bing. They provide local and gmb map ranking for businesses in NYC and many other local areas. Find more at https://www.sapidagency.com/ @ 145 E 57TH NEW YORK, NY 10022, USA, +1 971 341 5608 USA

  • obviously like your website but you have to test the spelling on several of your posts.
    Many of them are rife with spelling problems and I in finding it very troublesome to tell the truth nevertheless I will certainly
    come back again.

  • Howdy would you mind letting me know which web host you’re using?
    I’ve loaded your blog in 3 different internet browsers and I must say
    this blog loads a lot quicker then most. Can you suggest a good internet hosting provider at a
    fair price? Thanks, I appreciate it!

  • Greetings from Idaho! I’m bored to tears at work so I decided
    to check out your blog on my iphone during lunch break. I enjoy the
    knowledge you present here and can’t wait to take a look when I get home.
    I’m shocked at how fast your blog loaded on my phone ..
    I’m not even using WIFI, just 3G .. Anyhow, good site!

  • Thanks for one’s wonderful post! We definitely liked reading it, you could be an great contributor. I shall always take a note of this blog page and will often come back later on, I wish to motivate that you continue this great job, enjoy your evening? BTW have you read Gaddafi remarkable headlines Regards Independent Financial Advisor

  • Have you ever thought about adding a little bit more than just your articles? I mean, what you say is fundamental and everything. But think about if you added some great pictures or videos to give your posts more, “pop”! Your content is excellent but with pics and videos, this website could definitely be one of the most beneficial in its field. Terrific blog!

  • Someone necessarily assist to make critically posts I would state. This is the first time I frequented your website page and so far? I amazed with the analysis you made to create this actual publish amazing. Wonderful job!

  • Hi there! This post could not be written any better! Reading through this post reminds me of my previous room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thank you for sharing!

  • I found your weblog web site on google and verify a number of of your early posts. Continue to keep up the superb operate. I just additional up your RSS feed to my MSN News Reader. Looking for ahead to reading more from you afterward!…

  • Hey there, You have done a fantastic job. I will definitely digg it and personally recommend to my friends. I’m confident they will be benefited from this website.

  • I should say also believe that mesothelioma is a exceptional form of most cancers that is commonly found in these previously subjected to asbestos. Cancerous tissues form in the mesothelium, which is a protecting lining that covers most of the body’s areas. These cells usually form inside the lining with the lungs, abdomen, or the sac that encircles one’s heart. Thanks for expressing your ideas.

  • Every weekend i used to pay a quick visit this web
    site, for the reason that i wish for enjoyment, for the reason that this this site
    conations in fact fastidious funny data too.

  • Admiring the dedication you put into your site and detailed
    information you offer. It’s awesome to come across a blog
    every once in a while that isn’t the same old rehashed
    information. Great read! I’ve saved your site and I’m adding your RSS feeds to my
    Google account.

  • informatii interesante si utile postate pe blogul dumneavoastra. dar ca si o paranteza , ce parere aveti de cazarea la particulari ?.

  • Excellent beat ! I wish to apprentice while you amend your site, how could i subscribe for a weblog website? The account helped me a applicable deal. I were a little bit familiar of this your broadcast provided brilliant transparent idea

  • There is perceptibly a bunch to realize about this. I consider you made certain good points in features also.

  • Amusing article. It seems that most of the ways are depending on the creative thinking aspect. “All marriages are mixed marriages.” by Chantal Saperstein..

  • Hey very interesting blog!

  • Hi there to every one, it’s genuinely a pleasant for me to pay a visit
    this site, it contains important Information.

  • Thank you, I have just been searching for information about this topic for ages and yours is the greatest I have discovered till now.

    But, what about the conclusion? Are you sure about the supply?

  • Currently it sounds like Movable Type is the best blogging platform available right now.

    (from what I’ve read) Is that what you’re using on your blog?

  • Appreciating the dedication you put into your website and detailed information you provide.

    It’s nice to come across a blog every once in a while
    that isn’t the same outdated rehashed material. Wonderful read!

    I’ve bookmarked your site and I’m adding your RSS feeds to
    my Google account.

  • Somebody essentially assist to make seriously posts I might state. This is the first time I frequented your web page and thus far? I surprised with the research you made to make this particular submit incredible. Wonderful task!

  • There couple of intriguing points in time in this post but I do not know if I see these people center to heart. There is some validity but I most certainly will take hold opinion until I investigate it further. Great post , thanks and we want more! Included in FeedBurner likewise

  • Saved as a favorite, I really like your site!

  • Youre so cool! I dont suppose Ive read something like this before. So nice to find any individual with some original ideas on this subject. realy thanks for beginning this up. this website is one thing that is wanted on the web, somebody with slightly originality. helpful job for bringing one thing new to the web!

  • Thank you for every other fantastic article. Where else may anybody get that type of info in such
    an ideal way of writing? I’ve a presentation next week, and I am on the look for such information.

  • Hey There. I found your blog using msn. This is a really well written article. I’ll be sure to bookmark it and return to read more of your useful info. Thanks for the post. I’ll certainly return.

  • I was suggested this blog by my cousin. I am not sure whether
    this post is written by him as no one else know such detailed about my trouble.
    You’re amazing! Thanks!

  • Greetings! Very useful advice within this article!
    It is the little changes that make the largest changes.
    Thanks for sharing!

  • I do not even know the way I ended up right here, but I believed this submit used to be good.
    I do not recognise who you’re however certainly
    you are going to a well-known blogger for those who aren’t already.
    Cheers!

  • I like what you guys are up also. Such smart work and reporting! Keep up the excellent works guys I’ve incorporated you guys to my blogroll. I think it’ll improve the value of my website 🙂

  • Your method of explaining the whole thing in this paragraph is in fact
    good, all can without difficulty understand it, Thanks a lot.

  • MetroClick specializes in building completely interactive products like Photo Booth for rental or sale, Touch Screen Kiosks, Large Touch Screen Displays , Monitors, Digital Signages and experiences. With our own hardware production facility and in-house software development teams, we are able to achieve the highest level of customization and versatility for Photo Booths, Touch Screen Kiosks, Touch Screen Monitors and Digital Signage. Visit MetroClick in NYC at http://www.metroclick.com/ or , 121 Varick St, New York, NY 10013, +1 646-843-0888

  • You are a very bright person!

  • I like the valuable information you provide in your articles. I’ll bookmark your weblog and check again here frequently. I’m quite sure I’ll learn lots of new stuff right here! Good luck for the next!

  • I like the valuable info you provide in your articles. I will bookmark your weblog and check again here regularly. I am quite certain I’ll learn many new stuff right here! Good luck for the next!

  • Sapid Agency is a Search Engine Optimization company in New York City that provides SEO Services. Their proprietary SEO strategies help struggling websites and aspiring business owners to rank their websites higher in multiple search engines like Google , Yahoo and Bing. They provide local and gmb map ranking for businesses in NYC and many other local areas. Find more at https://www.sapidagency.com/ @ 145 E 57TH NEW YORK, NY 10022, USA, +1 971 341 5608 USA

  • I have been absent for some time, but now I remember why I used to love this web site. Thank you, I’ll try and check back more frequently. How frequently you update your web site?

  • My partner and I stumbled over here coming from a different website and thought I might check things out. I like what I see so i am just following you. Look forward to exploring your web page repeatedly.

  • Magnificent items from you, man. I have remember your stuff prior to and you’re simply too great.
    I actually like what you’ve received here, certainly like what
    you are stating and the way in which by which you say it.
    You’re making it enjoyable and you continue to care for to stay it sensible.
    I can not wait to read far more from you. This is actually a tremendous website.

  • Sapid Agency is a Search Engine Optimization company in New York City that provides SEO Services. Their proprietary SEO strategies help struggling websites and aspiring business owners to rank their websites higher in multiple search engines like Google , Yahoo and Bing. They provide local and gmb map ranking for businesses in NYC and many other local areas. Find more at https://www.sapidagency.com/ @ 145 E 57TH NEW YORK, NY 10022, USA, +1 971 341 5608 USA

  • Do you have a spam problem on this site; I also am a blogger, and I
    was wanting to know your situation; we have created some nice procedures
    and we are looking to exchange solutions with others, be sure to shoot me an e-mail if interested.

  • You made some decent factors there. I appeared on the web for the issue and located most people will go along with with your website.

  • This is the proper weblog for anybody who desires to find out about this topic. You notice so much its virtually exhausting to argue with you (not that I really would need…HaHa). You definitely put a brand new spin on a topic thats been written about for years. Nice stuff, simply great!

  • Thank you for some other informative blog. Where else could I get that type of info written in such a perfect approach? I’ve a project that I’m just now working on, and I have been at the glance out for such information.

  • Simply a smiling visitant here to share the love (:, btw outstanding layout.

  • Faytech North America is a touch screen Manufacturer of both monitors and pcs. They specialize in the design, development, manufacturing and marketing of Capacitive touch screen, Resistive touch screen, Industrial touch screen, IP65 touch screen, touchscreen monitors and integrated touchscreen PCs. Contact them at http://www.faytech.us, 121 Varick Street, New York, NY 10013, +1 646 205 3214.

  • As a Newbie, I am constantly searching online for articles that can help me. Thank you

  • Howdy! I simply wish to give an enormous thumbs up for the good info you have right here on this post. I will likely be coming again to your weblog for extra soon.

  • Hi there very nice web site!! Guy .. Excellent .. Amazing .. I’ll bookmark your site and take the feeds additionally…I’m satisfied to search out a lot of useful info right here within the publish, we need work out extra strategies on this regard, thanks for sharing. . . . . .

  • I’m more than happy to discover this website. I need to to thank you for ones time for this fantastic read!! I definitely enjoyed every little bit of it and i also have you book marked to check out new things in your site.

  • This is perfect time to put together some preparations for the long-run. I have go through this blog post and if I have the ability to, I want to propose you some remarkable recommendations.

  • I wish to show my admiration for your kind-heartedness for men and women who actually need guidance on the area of interest. Your special dedication to getting the message all around has been really beneficial and have always permitted folks much like me to achieve their targets. Your warm and friendly hints and tips denotes much to me and substantially more to my peers. Many thanks; from all of us.

  • I do agree with all of the ideas you’ve introduced to your post. They are really convincing and will definitely work. Nonetheless, the posts are too brief for newbies. May you please prolong them a bit from next time? Thanks for the post.

  • Hiya there, just turned out to be familiar with your blog page through Bing, and realized that it’s very informative. I’ll take pleasure in if you persist this idea.

  • I merely hope to notify you that I am new to blogging and undeniably liked your write-up. Likely I am going to remember your blog post . You indeed have lovely article blog posts. Love it for swapping with us your own blog information

  • Excellent site. A lot of useful info here. I’m sending it to several friends ans also sharing in delicious. And certainly, thanks for your effort!

  • Hi there! This post couldn’t be written any better! Reading through this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing!

  • Wow! This could be one particular of the most helpful blogs We’ve ever arrive across on this subject. Actually Excellent. I’m also a specialist in this topic therefore I can understand your effort.

  • It really is practically close to impossible to come across well-aware users on this subject, yet somehow you appear like you be aware of the things you’re raving about! Gratitude

  • Simply wish to say your article is as astonishing. The clarity to your put up is just excellent and i could assume you’re knowledgeable in this subject. Well together with your permission let me to seize your RSS feed to stay up to date with imminent post. Thank you one million and please keep up the rewarding work.

  • I like this post, enjoyed this one appreciate it for putting up. “To affect the quality of the day that is the art of life.” by Henry David Thoreau.

  • Hi my friend! I wish to say that this article is awesome, great written and come with almost all significant infos. I would like to look more posts like this .

  • I know this if off topic but I’m looking into starting my own blog and was curious what all is required to get set up? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web savvy so I’m not 100% positive. Any tips or advice would be greatly appreciated. Appreciate it

  • I have noticed that expenses for internet degree gurus tend to be a terrific value. For example a full Bachelor’s Degree in Communication in the University of Phoenix Online consists of Sixty credits at $515/credit or $30,900. Also American Intercontinental University Online provides a Bachelors of Business Administration with a total course feature of 180 units and a worth of $30,560. Online learning has made getting the certification far less difficult because you can earn the degree in the comfort of your dwelling place and when you finish from office. Thanks for all tips I’ve learned from your web-site.

  • Excellent blog here! Also your site lots up very fast! What host are you the use of? Can I am getting your associate hyperlink to your host? I want my web site loaded up as fast as yours lol

  • My wife and i ended up being now glad Peter could do his reports by way of the precious recommendations he had out of the weblog. It’s not at all simplistic to just choose to be giving out facts other people may have been making money from. And we recognize we’ve got the writer to appreciate because of that. The most important illustrations you made, the straightforward site navigation, the relationships you will aid to foster – it’s most terrific, and it is facilitating our son and us recognize that this theme is brilliant, which is certainly extraordinarily serious. Thanks for all the pieces!

  • Greetings here, just got mindful of your blog page through Bing and yahoo, and have found that it’s very interesting. I will take pleasure in should you carry on such.

  • It really is mostly extremely difficult to come across well-educated viewers on this matter, however , you appear like you be aware of exactly what you’re covering! Thank You

  • I merely intend to show you that I am new to blogging and utterly cherished your information. Probably I am most likely to bookmark your blog post . You truly have excellent article blog posts. Acknowledge it for discussing with us your own internet site post

  • I conceive this website has some real wonderful info for everyone. “I have learned to use the word ‘impossible’ with the greatest caution.” by Wernher von Braun.

  • Thanks for the sensible critique. Me and my neighbor were just preparing to do some research on this. We got a grab a book from our area library but I think I learned more clear from this post. I’m very glad to see such great info being shared freely out there.

  • We’re a group of volunteers and starting a new scheme in our community. Your web site offered us with valuable info to work on. You’ve done a formidable job and our whole community will be grateful to you.

  • I precisely had to say thanks all over again. I do not know the things I would’ve followed without the creative ideas shared by you about this problem. Previously it was a very horrifying issue for me personally, but viewing the professional fashion you processed the issue took me to leap for gladness. I am happy for your support and pray you are aware of a powerful job you were getting into instructing people today via a web site. More than likely you have never got to know all of us.

  • You could definitely see your expertise in the paintings you write. The arena hopes for more passionate writers like you who aren’t afraid to say how they believe. At all times go after your heart.

  • Some really wonderful posts on this website, thanks for contribution. “Gratitude is not only the greatest of virtues, but the parent of all others.” by Cicero.

  • I have been reading out a few of your posts and i can claim nice stuff. I will make sure to bookmark your site.

  • It¡¦s really a great and useful piece of info. I am happy that you just shared this helpful info with us. Please keep us up to date like this. Thanks for sharing.

  • Hey there! This is my 1st comment here so I just wanted to give a quick shout out and tell you I genuinely enjoy reading your posts. Can you suggest any other blogs/websites/forums that deal with the same topics? Appreciate it!

发表评论

电子邮件地址不会被公开。 必填项已用*标注