In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
What the editor shares today is about the storage structure and disk partition. Maybe you are no stranger to the storage structure and disk partition, or you have never understood the storage structure and disk partition. But don't worry, today the editor will explain the principle of storage structure and disk partition with the simplest description.
Storage structure and disk Partition
Add a native hard disk
A / primary partition 1-4, extended partition 1-4, logical partition 5 ~
B / virtual machine shutdown, add hard disk by editing virtual machine settings
B / create a primary partition through the fdisk command: P "View partition information", n "add new partition", w "save and exit", Q "exit do not save" step is "add partition-format-mount" three steps
[important reminder] add a small bug for the system partition, and use the partprobe command "twice"
[format] because enter the mkfs name in the Shell terminal and then click the Tab key to complete the command twice
[Mount] you can create a directory or mount to an existing directory
C / create a swap partition through the fdisk command:
The difference from the ordinary primary partition is that the formatting and mounting commands are not the same.
Mkswap, a special format command for SWAP partitions. Use the free-m command to query the current swap partition size before mounting, and then mount it through swapon 'device name'.
two。 Mount network storage, take Nas as an example
A / Editor / etc/fstab vim/etc/fstab
B / mount operation, check operation, mount-t specify file system type, nfs network file system path mount directory
Mount network storage, take Windows as an example
Notice the file system type mount-t cifs-o username=*,password=** / / path / mount directory.
The above is about the storage structure and disk partition made a brief introduction, of course, the detailed use of the above differences have to be used by everyone to understand. If you want to know more, welcome to follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.