能否修改分区挂载点?
Tofloor
poster avatar
weiminnihao9
deepin
2012-04-21 00:50
Author
我有个1G的ext4分区,原来用作tmp,现在发现太浪费了,想挂载到var,不知道行不行?
Reply Favorite View the author
All Replies
cxbii
deepin
2012-04-21 01:05
#1
肯定可以!
可是我不会,而且这个很危险吧?
谷歌下很多类是的回答,但不一样。。。
不敢推荐了
Reply View the author
woodelf
deepin
2012-04-21 01:36
#2
可以。最好在chroot环境操作。
Reply View the author
weiminnihao9
deepin
2012-04-21 02:08
#3
修改不方便,那么可否与临近的根分区直接合并而不丢失数据?
Reply View the author
bsfmig
deepin
2012-04-21 17:42
#4
个人用户没必要搞那么多挂载点。甚至一个大根即可。
建议楼主直接使用gparted删除此分区,删除fstab当中对此分区的引用,然后用root账户在根目录下面建立一个/tmp。
顺便,1G对于/var太小,除非你到死不使用apt-get。
Reply View the author
cnchanghai
deepin
2012-04-22 04:02
#5
我的分区如下  可以参考

changhai@chpc:~$ df
文件系统           1K-块      已用      可用 已用% 挂载点
/dev/sda1             49213248   7008712  39704596  16% /
udev                   2051044         4   2051040   1% /dev
tmpfs                   824160      1136    823024   1% /run
none                      5120         0      5120   0% /run/lock
none                   2060392      1988   2058404   1% /run/shm
/dev/sda3            127255308  28729548  92061504  24% /data1
/dev/sda4            127256332  63214752  57577276  53% /data2
changhai@chpc:~$
Reply View the author
cnchanghai
deepin
2012-04-22 04:04
#6
补充  SDA2  做了一个swap  浪费啊! 如果你的内存不小,就不要用swap了
Reply View the author