CENTOS8挂载超过2T以上XFS文件系统硬盘

1、安装parted和gdisk工具。您可以使用以下命令在CentOS中安装它们:

dnf install -y parted gdisk

2、使用parted工具创建GPT分区表。使用以下命令打开parted:

parted /dev/sdX

请注意将X替换为您要分区的硬盘的字母标识符。在parted中,您可以使用以下命令创建GPT分区表:

mklabel gpt

mkpart extended 0% 100% (扩展分区extended ,主分区primary ,并使用整个硬盘)

print (查看一下)

quit

3、格式化新的分区。在创建新分区后,您需要格式化它以便在CentOS中使用。使用以下命令格式化分区:

如果使用XFS文件系统:

mkfs.xfs /dev/sdX1

如果使用EXT4文件系统:

mkfs.ext4 /dev/sdX1

4、挂载新分区。最后一步是将新分区挂载到CentOS文件系统中。使用以下命令挂载分区:

mount /dev/sdX1 /mnt/your_mount_point

5、重启开机自动挂载硬盘

编辑/etc/fstab文件

vi /etc/fstab

/dev/sdX1 /mnt/your_mount_point ext4 defaults 0 0

其中,
[硬盘设备文件名]为硬盘设备的文件名,
[挂载目录]为上一步中创建的目录,
[文件系统类型]为硬盘分区的文件系统类型,
defaults表示使用默认挂载选项,
0 0表示在启动时自动挂载。
sanradar
sanradar
文章: 104

65 评论

  1. hey there and thank you for your information – I have definitely picked up
    something new from right here. I did however expertise a few
    technical issues using this site, since I experienced to reload the site lots of times previous to I could get it to load correctly.

    I had been wondering if your web hosting is OK? Not that I’m complaining,
    but slow loading instances times will sometimes affect your placement in google
    and can damage your quality score if ads and marketing with Adwords.
    Well I am adding this RSS to my email and could look out for a lot more of your respective fascinating content.

    Make sure you update this again very soon.. Escape rooms hub

  2. Good post. I learn something totally new and challenging on sites I stumbleupon every day. It will always be helpful to read through content from other authors and practice something from other web sites.

  3. I absolutely love your website.. Excellent colors & theme. Did you build this amazing site yourself? Please reply back as I’m planning to create my very own blog and would like to know where you got this from or what the theme is called. Thanks.

  4. An interesting discussion is worth comment. There’s no doubt that that you should publish more about this subject, it might not be a taboo subject but generally folks don’t talk about such issues. To the next! All the best!

  5. Right here is the right web site for anyone who would like to understand this topic. You understand a whole lot its almost tough to argue with you (not that I actually would want to…HaHa). You certainly put a fresh spin on a topic that has been written about for decades. Great stuff, just wonderful.

  6. Spot on with this write-up, I actually think this website needs a great deal more attention. I’ll probably be returning to read more, thanks for the advice.

  7. You are so awesome! I do not believe I’ve read anything like this before. So nice to discover another person with a few unique thoughts on this subject matter. Really.. thanks for starting this up. This website is something that’s needed on the internet, someone with a little originality.

  8. I’m impressed, I must say. Seldom do I come across a blog that’s both educative and entertaining, and without a doubt, you have hit the nail on the head. The issue is something which not enough men and women are speaking intelligently about. I am very happy that I stumbled across this in my hunt for something regarding this.

  9. After looking at a number of the blog articles on your website, I seriously like your way of blogging. I saved as a favorite it to my bookmark site list and will be checking back in the near future. Take a look at my website too and let me know your opinion.

  10. Nice post. I learn something totally new and challenging on sites I stumbleupon every day. It’s always helpful to read content from other writers and use a little something from other sites.

  11. I was very happy to discover this page. I need to to thank you for your time for this particularly wonderful read!! I definitely liked every little bit of it and I have you saved as a favorite to check out new information in your site.

  12. Spot on with this write-up, I actually believe that this web site needs a lot more attention. I’ll probably be returning to read more, thanks for the advice.

  13. An outstanding share! I’ve just forwarded this onto a friend who was doing a little homework on this. And he actually ordered me dinner due to the fact that I discovered it for him… lol. So allow me to reword this…. Thank YOU for the meal!! But yeah, thanx for spending time to talk about this topic here on your site.

  14. May I simply say what a comfort to uncover somebody that actually knows what they are talking about on the net. You definitely realize how to bring a problem to light and make it important. More and more people ought to read this and understand this side of your story. I was surprised you’re not more popular because you surely possess the gift.

  15. I blog often and I truly thank you for your content. Your article has truly peaked my interest. I’m going to take a note of your website and keep checking for new information about once per week. I opted in for your Feed as well.

  16. You’re so cool! I do not suppose I’ve truly read a single thing like this before. So good to discover somebody with some genuine thoughts on this issue. Really.. many thanks for starting this up. This web site is one thing that is required on the web, someone with a little originality.

  17. I blog quite often and I seriously appreciate your information. This article has really peaked my interest. I will bookmark your website and keep checking for new information about once per week. I opted in for your Feed too.

  18. Right here is the perfect web site for anybody who would like to find out about this topic. You realize so much its almost hard to argue with you (not that I really will need to…HaHa). You certainly put a new spin on a subject that has been discussed for a long time. Great stuff, just great.

  19. I really love your website.. Pleasant colors & theme. Did you build this site yourself? Please reply back as I’m attempting to create my very own blog and would love to know where you got this from or just what the theme is called. Thanks.

  20. It’s nearly impossible to find well-informed people about this subject, but you sound like you know what you’re talking about! Thanks

  21. The very next time I read a blog, I hope that it won’t disappoint me just as much as this particular one. I mean, Yes, it was my choice to read, nonetheless I truly believed you would probably have something interesting to say. All I hear is a bunch of whining about something that you can fix if you weren’t too busy seeking attention.

  22. Hey there! Do you know if they make any plugins to help with SEO?
    I’m trying to get my site to rank for some targeted keywords but I’m not seeing very good
    results. If you know of any please share. Thanks! I saw similar article here: Eco product

  23. Aw, this was a really good post. Taking the time and actual effort to generate a great article… but what can I say… I put things off a whole lot and don’t seem to get anything done.

  24. An impressive share! I’ve just forwarded this onto a co-worker who was conducting a little research on this. And he actually ordered me dinner because I stumbled upon it for him… lol. So let me reword this…. Thanks for the meal!! But yeah, thanx for spending time to discuss this topic here on your internet site.

  25. A motivating discussion is worth comment. There’s no doubt that that you need to write more on this topic, it may not be a taboo matter but typically folks don’t talk about such issues. To the next! Cheers!

  26. You’re so cool! I don’t suppose I’ve read through anything like that before. So great to find somebody with a few original thoughts on this subject matter. Seriously.. thanks for starting this up. This site is something that is needed on the web, someone with a bit of originality.

  27. I have to thank you for the efforts you have put in writing this blog. I am hoping to see the same high-grade content from you later on as well. In truth, your creative writing abilities has motivated me to get my very own blog now 😉

  28. Your style is really unique compared to other people I’ve read stuff from. I appreciate you for posting when you have the opportunity, Guess I will just book mark this site.

  29. I have to thank you for the efforts you have put in writing this site. I’m hoping to check out the same high-grade blog posts from you in the future as well. In fact, your creative writing abilities has encouraged me to get my very own website now 😉

  30. Right here is the right webpage for anybody who really wants to find out about this topic. You know so much its almost tough to argue with you (not that I personally would want to…HaHa). You definitely put a fresh spin on a subject that’s been discussed for many years. Great stuff, just wonderful.

留下评论

您的邮箱地址不会被公开。 必填项已用 * 标注