- Ubuntu 20.04 Essentials
- Neil Smyth
- 212字
- 2021-06-11 17:39:34
6.4 Mounting the New Partition
Next, we need to mount the new partition. In this example we will mount it in a directory named /data. You are free, however, to mount the new partition using any valid mount point you desire or to use it as part of a logical volume (details of which are covered in the chapter entitled “Adding a New Disk to an Ubuntu Volume Group and Logical Volume”). First we need to create the directory to act as the mount point:
# mkdir /data
Secondly, we need to edit the mount table in /etc/fstab so that the partition is automatically mounted each time the system starts. At the bottom of the /etc/fstab file, add the following line to mount the new partition (modifying the /dev/sda1 device to match your environment):
/dev/sda1 /data xfs defaults 0 0
Finally, we can manually mount the new partition (note that on subsequent reboots this will not be necessary as the partition will automount as a result of the setting we added to the /etc/fstab file above).
# mount /data
To check the partition, run the following command to display the available space:
# df -h /data
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 29G 62M 29G 1% /data
- 課課通計(jì)算機(jī)原理
- 大數(shù)據(jù)技術(shù)基礎(chǔ)
- R Data Mining
- 空間機(jī)器人遙操作系統(tǒng)及控制
- Visual C# 2008開發(fā)技術(shù)實(shí)例詳解
- 數(shù)據(jù)庫原理與應(yīng)用技術(shù)學(xué)習(xí)指導(dǎo)
- Docker Quick Start Guide
- 中國戰(zhàn)略性新興產(chǎn)業(yè)研究與發(fā)展·智能制造
- 現(xiàn)代傳感技術(shù)
- Linux服務(wù)與安全管理
- AI的25種可能
- 單片機(jī)原理實(shí)用教程
- Mastering MongoDB 3.x
- WPF專業(yè)編程指南
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)學(xué)習(xí)指導(dǎo)與練習(xí)(Windows XP+Office 2003)