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

Implementation of hard disk Partition mounting with linux

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

The realization of hard disk partition mount by linux? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

Partition operation

I personally use the fdisk command when operating the linux partition. First of all, take a look at the fdisk command to learn. Use fdisk-- help to view

Fdisk.png

You don't have to remember a lot of commands, you can use them when you don't know how to use them-- help can see these. Just see how to use it.

First use fdisk-l to check your computer's hard drive. Show the contents of the file that needs to be partitioned as much as possible.

Information about the partition

Use sudo fdisk / dev/sdb for partitioning. Enter m to help show. Tell us how to do it.

Partition a hard disk. PNG

Then press and hold n for partition operation. Create a new partition

N operation .png

Where e belongs to the extended partition and p represents the primary partition. Select the primary partition and enter 1 to indicate the first primary partition

Select p.png

Choose 1 cylinder by default and enter. Enter the start byte size, enter the end byte after enter, or enter + 500G represents an increase of 500G size over the start of the byte above.

P View partition .png

Finally, use the command p to view the partition.

I've divided the area for the time being and I can't operate it for the time being. Graphical operation:

Disk.png

Click Settings to edit the image to partition the image. Then set the disk size and the disk name of the disk, set it and save it.

Mounting

After the partition is completed, it needs to be mounted before it can be seen under the df-h command.

The bottom / dev/sdb is the newly added partition .png

1. You need to use mount command to mount. Mount / dev/sdb1 needs to be mounted. I am mounted in the / home/ruiqi/Desktop/free directory, and the mount point can be in any directory. Mount it according to your own needs.

2. The above is only a temporary mount. We need to mount it permanently. First check the partition uuid that needs to be added and its type. Sudo blkid / dev/sdb1 to check the uuid, save the uuid and type.

Uuid.png

3. Modify / etc/fstab file: under the zai file system, add the directory where uuid= "" is to be hung, and the disk file type. Default Action 0 2

The answer to the question about the implementation of hard disk partition mount by linux is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

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