In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to mount the partition in Linux, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Establish mount point
Mkdir-p / mnt/yanxiaoyy
Use the mount command to mount sdb1 to this directory
Mount / dev/sdb1 / mnt/yanxiaoyydf-hT / dev/sdb1Filesystem Type Size Used Avail Use% Mounted on/dev/sdb1 ext3 2.0G 68M 1.9G 4% / mnt/yanxiaoyy
Uninstall the command umount
Umount / mnt/yanxiaoyydf-hT / dev/sdb1Filesystem Type Size Used Avail Use% Mounted on--492m 260K 491m 1 / dev
Edit / etc/fstab file to realize automatic mount
Add the following code to the last line: device name-mount point-type-defaults-0 0
/ dev/sdb1 / mnt/yaoxiaoyy ext3 defaults 0 0
Restart the system to check disk information. Sdb1 has been mounted automatically.
Df-hT / dev/sdb1Filesystem Type Size Used Avail Use% Mounted on/dev/sdb1 ext3 2.0G 68M 1.9G 4% / mnt/yanxiaoyy
P.s.
In theory, partitions can be mounted anywhere on the system, but the Linux system provides three mount directories (all empty directories) for users to use: / mnt,/media,/misc.
In general, / mnt is used to mount storage devices such as hard drives and USB drives, / media is used to mount multimedia devices such as CD-ROMs and DVD, and / misc is used to mount miscellaneous and other rare devices, such as tape drives.
The mount point must exist, that is, a corresponding empty directory must be established before mounting.
Partitions mounted manually through the mount command will fail after the system is rebooted, and the / etc/fstab file needs to be edited so that the partition can be mounted automatically after reboot.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
On how to mount partitions in Linux to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.