ubuntu创建新硬盘分区挂载/usr 解决系统/ 目录存储空间不足的问题

一、问题描述:

因为Ubuntu用户安装的应用和包都默认存放在/usr 目录下,导致装系统时分给/分区的30G空间存满。

二、解决办法:

1.创建一块新的硬盘分区:

因为windows中D盘空间比较富裕,遂进入Windows将D盘压缩出50G的未分配空间。

进入Ubuntu,run “sudo fdisk -l” 查看当前硬盘分区情况, Linux filesystem 在/dev/sdb上。

sudo fdisk /dev/sdb

    Command (m for help):
    输入 m 为帮助;
    Command action
       a   toggle a bootable flag
       b   edit bsd disklabel
       c   toggle the dos compatibility flag
       d   delete a partition
       l   list known partition types
       m   print this menu
       n   add a new partition
       o   create a new empty DOS partition table
       p   print the partition table
       q   quit without saving changes
       s   create a new empty Sun disklabe

  • 5
    点赞
  • 43
    收藏
    觉得还不错? 一键收藏
  • 14
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 14
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值