- 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
- 高性能混合信號(hào)ARM:ADuC7xxx原理與應(yīng)用開發(fā)
- 自動(dòng)控制原理
- B2B2C網(wǎng)上商城開發(fā)指南
- Ruby on Rails敏捷開發(fā)最佳實(shí)踐
- 工業(yè)控制系統(tǒng)測(cè)試與評(píng)價(jià)技術(shù)
- Salesforce Advanced Administrator Certification Guide
- Visual Studio 2010 (C#) Windows數(shù)據(jù)庫(kù)項(xiàng)目開發(fā)
- C++程序設(shè)計(jì)基礎(chǔ)(上)
- Excel 2007終極技巧金典
- 基于RPA技術(shù)財(cái)務(wù)機(jī)器人的應(yīng)用與研究
- 基于人工免疫原理的檢測(cè)系統(tǒng)模型及其應(yīng)用
- 巧學(xué)活用AutoCAD
- SQL語(yǔ)言與數(shù)據(jù)庫(kù)操作技術(shù)大全
- ASP.NET 4.0 MVC敏捷開發(fā)給力起飛
- 面向Agent的軟件設(shè)計(jì)開發(fā)方法