Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create and mount XFS file system on Linux system

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to create and mount a Linux file system". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to create and mount a XFS file system on a Linux system.

Install the XFS system toolset

First, you need to install the XFS system toolset, which allows you to perform many XFS-related administrative tasks. (for example, formatting, extending, fixing, setting quotas, changing parameters, etc.)

Debian, Ubuntu, Linux Mint systems:

$sudo apt-get install xfsprogs

Fedora, CentOS, RHEL systems:

$sudo yum install xfsprogs

Other versions of Linux:

$sudo pacman-S xfsprogs

Create a partition in XFS format

First prepare a partition to create the XFS. Suppose your partition is in / dev/sdb, as follows:

$sudo fdisk / dev/sdb

Suppose the partition created by this is called / dev/sdb1.

Next, format the partition as XFS, using the mkfs.xfs command. If another file system has been created on this partition, you must add the "- f" parameter to overwrite it.

$sudo mkfs.xfs-f / dev/sdb1

At this point, you are ready to format the partition to mount. Assume that / storage is the XFS local mount point. Use the following command to mount:

$sudo mount-t xfs / dev/sdb1 / storage

Verify that the XFS mount is successful:

$df-Th / storage

If you want to automatically mount the XFS partition on / storage at startup, add the following line to / etc/fstab:

/ dev/sdb1 / storage xfs defaults 00 so far, I believe you have a better understanding of "how to create and mount a XFS file system on a Linux system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report