步骤1、运行gparted,将磁盘格式化为ext4;
步骤2、sudo blkid 查询uuid,
步骤3、sudo gedit /etc/fstab ,添加:
复制代码 代码示例:
# /home/ray/data was on /dev/sda5 during installation
UUID=c4f4827c-8864-42a5-8d7a-1ae574297e7a /home/ray/data ext4 defaults 0 2
# /home/ray/bak was on /dev/sda3 during installation
UUID=b09a26d6-f445-4ba0-99ea-688b353fbd2e /home/ray/bak ext4 defaults 0 2
步骤4、sudo linuxjishu/9952.html target=_blank class=infotextkey>mount -a
到此,就完成了ubuntu中磁盘空间的追加,希望对大家有所帮助。