[Seek Help] deepin硬盘默认挂载的代码是在哪里
Tofloor
poster avatar
wangxinpeng
deepin
2021-05-16 05:38
Author

如题,一般linux系统的分区挂载都在fstab里,但是我的fstab里有些分区并不是在这里。

df -h

文件系统        容量  已用  可用 已用% 挂载点

udev            3.8G  4.0K  3.8G    1% /dev

tmpfs           785M  3.1M  782M    1% /run

/dev/nvme0n1p1   98G   11G   83G   12% /

tmpfs           3.9G  220M  3.7G    6% /dev/shm

tmpfs           5.0M  4.0K  5.0M    1% /run/lock

tmpfs           3.9G     0  3.9G    0% /sys/fs/cgroup

/dev/nvme0n1p3  300M  6.6M  293M    3% /boot/efi

/dev/nvme0n1p4  349G  2.1G  330G    1% /home

tmpfs           785M  512K  784M    1% /run/user/1000

/dev/nvme1n1p4   51G  198M   50G    1% /media/jhon/Files

/dev/nvme1n1p3  188G  170G   18G   91% /media/jhon/Windows

 

cat fstab

# /dev/nvme0n1p1                                                                                                                                                          

UUID=8ecbe971-6476-4d90-acfb-9de61a70f0de   /           ext4        rw,relatime 0 1                                                                                                                                                                                                 

# /dev/nvme0n1p4                                                                                                                                                          

UUID=59372296-29da-4b40-9362-41afd61a3e61   /home       ext4        rw,relatime 0 2                                                                                                                                                                                                                                                                 

# /dev/nvme0n1p3                                                                                                                                                          

UUID=3E34-1818          /boot/efi   vfat        rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro   0 2                                                                                                                                                                                     

# /dev/nvme0n1p2                                                                                                                                                          

UUID=379e660c-afcc-4c9c-ab1d-1c16ae0626fa   none        swap        defaults,pri=-2 0 0  

 

Reply Favorite View the author
All Replies
wangxinpeng
deepin
2021-05-16 05:38
#1

nvme1n1p4    nvme1n1p3 在哪里挂载的

Reply View the author
Jack
deepin
2021-05-16 05:53
#2
wangxinpeng

nvme1n1p4    nvme1n1p3 在哪里挂载的

你电脑是双系统吧,P3挂载的是 windows的C盘,P4挂在的是Win下一个叫 File的盘,这个应该是你的D盘。

Reply View the author
gatty
deepin
2021-05-16 06:15
#3

同问。。。。

 

就是 这个 双系统的磁盘挂载

Reply View the author
wangxinpeng
deepin
2021-05-16 06:27
#4
Jack

你电脑是双系统吧,P3挂载的是 windows的C盘,P4挂在的是Win下一个叫 File的盘,这个应该是你的D盘。

恩,是的, 我在装系统时分区就设置好了。

我现在是不知道在linux系统中是在哪里写的,想学习一下。

Reply View the author
wangxinpeng
deepin
2021-05-16 06:35
#5

查到了,在/run/mount/utab中。

Reply View the author
wangxinpeng
deepin
2021-05-16 20:17
#6

请教一下各位大佬,有没有deepin 启动原理的最新资料,deepin百科上的太老了,好多都对不上。

Reply View the author
baidxi
deepin
2021-05-16 20:39
#7

because other disk need manual mount, if you want automount, need add to /etc/fstab

Reply View the author
wangxinpeng
deepin
2021-05-17 20:13
#8
baidxi

because other disk need manual mount, if you want automount, need add to /etc/fstab

我摸索出来了,是用户在登录成功后才自动挂载的,但是这块代码写在哪里不知道./run下是执行过程中生成的,并不是源码.

Reply View the author