为什么突然出现挂载了/media/username/disk?

为什么突然出现挂载了/media/username/disk?

为了

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:    22.04
Codename:   jammy

就在今天,几分钟前通过Dock,我确实意识到安装了/media/username/disk以下内容的位置:

command-chain  data-dir  etc  gnome-platform  lib  meta  sbin  snap  usr  var

已安装位置的大小为 509MB ... 可以通过窗口卸载,Files但该项目仍保留在窗口中Dock,并且Files已卸载

问题

  • 为何会突然出现挂载的/media/username/disk

这正常吗?如何让该图标消失Dock

更多细节

执行时mount | grep disk命令出现:

/var/lib/snapd/snaps/gnome-42-2204_126.snap (deleted) on /media/manueljordan/disk type squashfs (ro,nosuid,nodev,relatime,errors=continue,threads=single,uhelper=udisks2)

执行时lsblk -ap -o +MODEL命令出现:

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS                            MODEL
/dev/loop0    7:0    0     4K  1 loop /snap/bare/5                           
/dev/loop1    7:1    0  18.4M  1 loop /snap/chromium-ffmpeg/30               
/dev/loop2    7:2    0   9.4M  1 loop /snap/chromium-ffmpeg/34               
/dev/loop3    7:3    0  55.7M  1 loop /snap/core18/2785                      
/dev/loop4    7:4    0  63.4M  1 loop /snap/core20/1974                      
/dev/loop5    7:5    0  55.7M  1 loop /snap/core18/2790                      
/dev/loop6    7:6    0  63.5M  1 loop /snap/core20/2015                      
/dev/loop7    7:7    0  73.9M  1 loop /snap/core22/858                       
/dev/loop8    7:8    0  73.9M  1 loop /snap/core22/864                       
/dev/loop9    7:9    0 137.8M  1 loop /snap/drawio/184                       
/dev/loop10   7:10   0   137M  1 loop /snap/drawio/186                       
/dev/loop11   7:11   0   186M  1 loop /snap/opera/263                        
/dev/loop12   7:12   0 236.9M  1 loop /snap/firefox/3131                     
/dev/loop13   7:13   0 164.8M  1 loop /snap/gnome-3-28-1804/194              
/dev/loop14   7:14   0 164.8M  1 loop /snap/gnome-3-28-1804/198              
/dev/loop15   7:15   0 349.7M  1 loop /snap/gnome-3-38-2004/140              
/dev/loop16   7:16   0 349.7M  1 loop /snap/gnome-3-38-2004/143              
/dev/loop17   7:17   0 485.5M  1 loop /media/manueljordan/disk               
/dev/loop18   7:18   0  91.7M  1 loop /snap/gtk-common-themes/1535           
/dev/loop19   7:19   0 240.5M  1 loop /snap/firefox/3206                     
/dev/loop20   7:20   0   497M  1 loop /snap/gnome-42-2204/141                
/dev/loop21   7:21   0     0B  1 loop                                        
/dev/loop22   7:22   0  45.9M  1 loop /snap/snap-store/638                   
/dev/loop23   7:23   0  12.3M  1 loop /snap/snap-store/959                   
/dev/loop24   7:24   0  40.8M  1 loop /snap/snapd/20092                      
/dev/loop25   7:25   0  40.8M  1 loop /snap/snapd/19993                      
/dev/loop26   7:26   0   428K  1 loop /snap/snapd-desktop-integration/57     
/dev/loop27   7:27   0   452K  1 loop /snap/snapd-desktop-integration/83     
/dev/loop28   7:28   0 320.4M  1 loop /snap/vlc/3078                         
/dev/loop29   7:29   0 496.9M  1 loop /snap/gnome-42-2204/132                
/dev/loop30   7:30   0   186M  1 loop /snap/opera/261                        
/dev/sda      8:0    0 698.6G  0 disk                                        ST750LM022 HN-M750MBB
├─/dev/sda1   8:1    0   512M  0 part /boot/efi                              
└─/dev/sda2   8:2    0 698.1G  0 part /var/snap/firefox/common/host-hunspell 
                                      /                                      
/dev/sr0     11:0    1  1024M  0 rom                                         hp DVDRAM GT80N

答案1

手册:我发现如果挂载点连接速度不够快,它就会将文件放入我的 /mnt(您的 /media)中。

我通过在 /etc/fstab 挂载语句中添加以下内容来主要减少此问题:noauto,x-systemd.automount

(注意标点符号!先是逗号,然后是连字符,最后是句号。)

相关内容