我的硬盘有500G的怎么系统盘才20G啊
Tofloor
poster avatar
ktvsp1
deepin
2017-12-28 02:34
Author
我的硬盘有500G的怎么系统盘才20G啊,我想把500G全部划给系统盘,怎么搞的啊。
Reply Favorite View the author
All Replies
avatar
jhkwei
deepin
2017-12-28 03:19
#1
重新安装这样简单。
Reply View the author
avatar
ktvsp1
deepin
2017-12-28 03:29
#2
https://bbs.deepin.org/post/150745
重新安装这样简单。

就是不想安装
Reply View the author
avatar
comzhong
deepin
2017-12-28 03:31
#3
本帖最后由 comzhong 于 2017-12-27 19:33 编辑

如果想单分区,分区工具可以扩大分区,先删掉其它分区,然后把系统分区扩大,最后 U盘启动 live 环境进行操作
另一方法是把不同目录通过挂载,转移到其它分区
Reply View the author
avatar
jlice
deepin
2017-12-28 03:32
#4
备份资料 修改fstab
Reply View the author
avatar
ktvsp1
deepin
2017-12-28 03:41
#5
https://bbs.deepin.org/post/150745
备份资料 修改fstab

兄弟你会吗?我就是一个小白啊
Reply View the author
avatar
wangc
deepin
2017-12-28 04:03
#6
个人意见,重装简单粗暴。专门一个分区做/home。系统/目录。以后万一要重装了,就只在/目录重装,/home不格式化。
Reply View the author
avatar
jhkwei
deepin
2017-12-28 04:09
#7

操作起来比较复杂所以不推荐:
1)用分区工具把没有用的磁盘分区,如用 fdisk , gpart, 下面就是fdisk 来分区,你可以到网上找一下相关资料,先确认磁盘设备名
  1. sudo fdisk -l
Copy the Code


下面是我的电脑:
  1. 设备       启动      Start     末尾     扇区   Size Id 类型
  2. /dev/sda1  *          2048  167776255  167774208    80G  7 HPFS/NTFS/exFAT
  3. /dev/sda2        167778302 1953523711 1785745410 851.5G  f W95 扩展 (LBA)
  4. /dev/sda5        167778304  415244287  247465984   118G  7 HPFS/NTFS/exFAT
  5. /dev/sda6        415246336  660615167  245368832   117G  7 HPFS/NTFS/exFAT
  6. /dev/sda7        660617216  904945663  244328448 116.5G  7 HPFS/NTFS/exFAT
  7. /dev/sda8        904947712 1100257279  195309568  93.1G 83 Linux
  8. /dev/sda9       1100259328 1295568895  195309568  93.1G 83 Linux
  9. /dev/sda10      1295570944 1953523711  657952768 313.8G 83 Linux
Copy the Code


现在我在/dev/sda上分区,再输入
  1. sudo fdisk /dev/sda
Copy the Code

再输入 n  新加分区,这里最好你在网上弄清楚再去弄,不过不写入 w 确认分区是没有问题的,主要是分区起始及大小等设置,分好后,再用
  1. sudo mkfs.ext4 /dev/sdxxxx #xxxx 是你的磁盘号
Copy the Code
这里你也可以指定别的格式.最后就是编写/etc/fstab 先是查看 uuid ,
  1. ls -al /dev/disk/by-uuid/
  2. 下面是我的:
  3. lrwxrwxrwx 1 root root  10 12月 27 19:58 00046EA2000EC1D0 -> ../../sda7
  4. lrwxrwxrwx 1 root root  10 12月 27 19:58 00087D250001BB16 -> ../../sda5
  5. lrwxrwxrwx 1 root root  10 12月 27 19:58 0009EE8A000FE1C8 -> ../../sda1
  6. lrwxrwxrwx 1 root root  10 12月 27 19:58 000D1E7C0002735C -> ../../sda6
  7. lrwxrwxrwx 1 root root  10 12月 27 19:58 65f1241a-7535-4a5c-88b7-03eed177163d -> ../../sda8
  8. lrwxrwxrwx 1 root root  10 12月 27 19:58 aaeeefec-9b1e-4d8b-957c-29d763abd65b -> ../../sda9
  9. lrwxrwxrwx 1 root root  11 12月 27 19:58 e81acba5-e3ad-4ab8-8489-dc4bba57ba39 -> ../../sda10
Copy the Code

再看一下,/etc/fstab
  1. cat /etc/fstab
  2. # /etc/fstab: static file system information.
  3. #
  4. # Use 'blkid' to print the universally unique identifier for a
  5. # device; this may be used with UUID= as a more robust way to name devices
  6. # that works even if disks are added and removed. See fstab(5).
  7. #
  8. #               
  9. # / was on /dev/sda8 during installation
  10. UUID=65f1241a-7535-4a5c-88b7-03eed177163d /               ext4    errors=remount-ro 0       1
  11. # /home was on /dev/sda10 during installation
  12. UUID=e81acba5-e3ad-4ab8-8489-dc4bba57ba39 /home           ext4    defaults        0       2
  13. # /opt was on /dev/sda9 during installation
  14. UUID=aaeeefec-9b1e-4d8b-957c-29d763abd65b /opt            ext4    defaults        0       2
Copy the Code

你照样写就是了,总之操作十分复杂,还是重新装来得快,这里就没有完,你先把原来的复制到新的盘,也指定 /home 分区之类,重启后没有问题你再把原来的分区作别的事.
Reply View the author
avatar
ktvsp1
deepin
2017-12-28 05:30
#8
https://bbs.deepin.org/post/150745
操作起来比较复杂所以不推荐:
1)用分区工具把没有用的磁盘分区,如用 fdisk , gpart, 下面就是fdisk 来 ...

完全看不懂
Reply View the author
avatar
wtz
deepin
2017-12-28 11:40
#9

所以说建议你重装啊。
如果愿意学习的话,就做好备份,然后按照楼上提示折腾吧。
不想折腾,就重装,简单粗暴。
Reply View the author
avatar
nbxwj
deepin
2017-12-28 16:14
#10
我的扩容经历,供参考。
https://bbs.deepin.org/post/37317
如果是连续空间,用Gparted分区管理很方便的
Reply View the author
avatar
ktvsp1
deepin
2018-04-16 22:20
#11
https://bbs.deepin.org/post/150745
我的扩容经历,供参考。
https://bbs.deepin.org/post/37317#
如果是连续空 ...

谢谢兄弟我已经提升了
Reply View the author