如果电脑有2块硬盘,第二块硬盘挂载到哪里最好?
Tofloor
poster avatar
widon1104
deepin
2019-06-17 02:57
Author
我的笔记本电脑有2块硬盘,一块是固态硬盘,一块是机械硬盘
我是从ubuntu系统转到deepin的,/home我都是单独分区,以免丢资料,所以我选择自己分区
固态硬盘我挂载了1) efi分区,2) 根分区'/' 3) /home分区(不格式化)4) 交换空间
问题就出在我的那个机械硬盘上,装ubuntu时候我把这个分区挂载在 /warehouse上面,这个是我自定义的,但是deepin安装的时候只有可怜几个选项可以选,不能自己自定义挂载的位置,最后没办法,我把整整500G的机械硬盘挂载在了/opt下面,这显然是不好的,因为/opt已经默认安装了很多东西,我希望我的硬盘保持整洁,不能随便写东西进去


如果你电脑有2块硬盘,使用deepin,第二块硬盘(非系统盘)挂载到哪里最好?

我在github上面报了一个issue
https://github.com/linuxdeepin/developer-center/issues/1302
deepin官方人员告诉我说产品设计就是如此,不会改,感觉很郁闷


Reply Favorite View the author
All Replies
avatar
走钢丝
deepin
2019-06-17 03:09
#1
挂载到哪里都可以啊,可以自己建个文件夹,mount 命令挂载到这个文件夹就是了,如果要开机挂载写入 /etc/fstab就行了。
如果不设置挂载点,系统也会当成可移动设备加载的,默认在 /media/你的用户名/分区卷标 这个文件夹。
Reply View the author
avatar
widon1104
deepin
2019-06-17 03:13
#2
https://bbs.deepin.org/post/179352
挂载到哪里都可以啊,可以自己建个文件夹,mount 命令挂载到这个文件夹就是了,如果要开机挂载写入 /etc/fs ...

我是希望安装系统的时候就挂载好,但是deepin只给了少数几个选择,不能自定义,这不是很坑吗
现在我已经挂载到了/opt下面,能够反悔,自己重新挂载到/warehouse下面吗?
Reply View the author
avatar
走钢丝
deepin
2019-06-17 03:15
#3
本帖最后由 lidanger 于 2019-6-16 19:16 编辑
https://bbs.deepin.org/post/179352
我是希望安装系统的时候就挂载好,但是deepin只给了少数几个选择,不能自定义,这不是很坑吗
现在我已经 ...

可以啊,看 /etc/fstab就知道了。挂载到别处后,把其中已经安装的软件再复制到/opt文件夹即可。

Reply View the author
avatar
jzc
deepin
2019-06-17 03:20
#4
mount 手动挂载,需要开机自动挂载 就编辑 /etc/fstab。
楼主你这种情况本来就比较少见,deepin安装时也不能考虑到所有的情况
Reply View the author
avatar
widon1104
deepin
2019-06-17 03:22
#5
https://bbs.deepin.org/post/179352
可以啊,看 /etc/fstab就知道了。挂载到别处后,把其中已经安装的软件再复制到/opt文件夹即可。

...

widon@widon-PC:~$ cat /etc/fstab
# /dev/sdb2
UUID=30263b23-8708-458a-8969-e33e88784069        /                 ext4              rw,relatime,data=ordered        0 1

# /dev/sda1
UUID=ce82ef0a-3e60-4bda-8266-2768ef67a820        /opt              ext4              rw,relatime,data=ordered        0 2

# /dev/sdb4
UUID=3063ff42-e309-4605-a761-8c1cfee8dce3        /home             ext4              rw,relatime,data=ordered        0 2

# /dev/sdb1
UUID=EDC7-1CCD              /boot/efi         vfat              rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro        0 2

# /dev/sdb3
UUID=b5cfe4ea-9212-4be1-9c0d-fa03ae8be6a0        none              swap              defaults,pri=-2        0 0


我把/opt改成/warehouse就可以了吗?
Reply View the author
avatar
Feng Yu
deepin
2019-06-17 03:22
#6
手写/etc/fstab挂载
Reply View the author
avatar
走钢丝
deepin
2019-06-17 03:24
#7
https://bbs.deepin.org/post/179352
widon@widon-PC:~$ cat /etc/fstab
# /dev/sdb2
UUID=30263b23-8708-458a-8969-e33e88784069        /                  ...

嗯。是啊,不过要重启或 mount -a
Reply View the author
avatar
widon1104
deepin
2019-06-17 03:27
#8
https://bbs.deepin.org/post/179352
嗯。是啊,不过要重启或 mount -a

UUID是啥意思,这个UUID不用变吗?
Reply View the author
avatar
走钢丝
deepin
2019-06-17 03:27
#9
看我的挂载点多简单












Reply View the author
avatar
走钢丝
deepin
2019-06-17 03:29
#10
https://bbs.deepin.org/post/179352
UUID是啥意思,这个UUID不用变吗?

要改,不过可以改成绝对路径 /dev/sda1
Reply View the author
avatar
widon1104
deepin
2019-06-17 03:34
#11
https://bbs.deepin.org/post/179352
要改,不过可以改成绝对路径 /dev/sda1

/home不单独分区不好,以重装全部东西就得丢
Reply View the author
avatar
走钢丝
deepin
2019-06-17 03:37
#12
https://bbs.deepin.org/post/179352
/home不单独分区不好,以重装全部东西就得丢

嗯。这个看个人吧,我对系统有信心。以前上大学的时候别人的电脑老坏叫我去修,我的破电脑用了几年都没什么事儿。
Reply View the author
avatar
widon1104
deepin
2019-06-17 03:38
#13
https://bbs.deepin.org/post/179352
嗯。这个看个人吧,我对系统有信心。以前上大学的时候别人的电脑老坏叫我去修,我的破电脑用了几年 ...

我没有改UUID,直接把/opt替换成/warehouse就重新挂载成功了
Reply View the author
avatar
走钢丝
deepin
2019-06-17 03:42
#14
https://bbs.deepin.org/post/179352
我没有改UUID,直接把/opt替换成/warehouse就重新挂载成功了

对哟,我都绕晕了。uuid不应该改,它是分区的id。晕死。
Reply View the author