我在使用 snap 时遇到了一些问题,在系统启动时,启动服务时,出现了几个安装错误,这是由于将 .snap 文件放在硬盘分区上,而在我的主分区根目录下,我有 ssd,但我希望它以这种方式工作。(只是我个人的小心,试图延长 ssd 的使用寿命,包括一些我也直接放到硬盘上的缓存)。
简而言之,我需要将 snap 服务和其他 snap 放在最后,我不知道这是否也能解决问题,因为当我停止服务并重新启动时,在系统加载后,它似乎可以正常工作。所以这就是为什么我的想法把它放在最后。
您对此有何看法,或者您有其他想法吗?
啊啊!!!我记起来了,问题出在挂载点上,启动系统时,所有挂载点都无法挂载
命令> systemctl list-unit-files --state=enabled
单元文件状态供应商预设 snap-android\x2dstudio-99.mount 已启用 已启用
snap-chromium\x2dffmpeg-17.mount 已启用 已启用
snap-code\x2dinsiders-633.mount 已启用 已启用
snap-code\x2dinsiders-634.mount 已启用
已启用 snap-core-10583.mount 已启用 已启用
snap-core-10823.mount 已启用 已启用
snap-core18-1944.mount 已启用 已启用
snap-core18-1988.mount 已启用 已启用
snap-core20-875.mount 已启用 已启用
snap-core20-904.mount 已启用 已启用
snap-flutter-47.mount 已启用 已启用
snap-flutter-48.mount 已启用 已启用
snap-freemind-4.mount 已启用 已启用
snap-gnome\x2d3\x2d28\x2d1804-128.mount 已启用 已启用
snap-gnome\x2d3\x2d28\x2d1804-145.mount已启用 已启用
snap-gtk\x2dcommon\x2dthemes-1513.mount 已启用 已启用 snap
-gtk\x2dcommon\x2dthemes-1514.mount 已启用 已启用
snap-intellij\x2didea\x2dcommunity-270.mount 已启用 已启用
snap-intellij\x2didea\x2dcommunity-273.mount 已启用 已启用
snap-intellij\x2didea\x2dultimate-266.mount 已启用 已启用
snap-intellij\x2didea\x2dultimate-269.mount 已启用 已启用
snap-netbeans-35.mount 已启用 已启用
snap-netbeans-41.mount 已启用 已启用
snap-ngrok-29.mount 已启用 已启用
snap-notekit-9.mount 已启用 已启用
snap-opera-100.mount 已启用 已启用
snap-phpstorm-197.mount 已启用 已启用
snap-phpstorm-200.mount 已启用 已启用
snap-postman-131.mount 已启用 已启用
snap-postman-132.mount 已启用 已启用
snap-powershell-149.mount 已启用 已启用
snap-powershell-154.mount 已启用 已启用
snap-pycharm\x2deducational-34.mount 已启用 已启用
snap-pycharm\x2deducational-35.mount 已启用
已启用 snap-rider-141.mount 已启用 已启用
snap-rider-145.mount 已启用 已启用
snap-speedy\x2dduplicate\x2dfinder-28.mount 已启用 已启用
snap-webstorm-187.mount 已启用 已启用
snap-webstorm-189.mount 已启用 已启用
我的 dmesg
3.442499] /var/lib/snapd/snaps/android-studio_100.snap: Can't open blockdev
[ 3.444507] /var/lib/snapd/snaps/chromium-ffmpeg_17.snap: Can't open blockdev
[ 3.449011] /var/lib/snapd/snaps/code-insiders_654.snap: Can't open blockdev
[ 3.451956] /var/lib/snapd/snaps/code-insiders_655.snap: Can't open blockdev
[ 3.454076] /var/lib/snapd/snaps/core_10823.snap: Can't open blockdev
[ 3.457199] /var/lib/snapd/snaps/core_10859.snap: Can't open blockdev
[ 3.459780] /var/lib/snapd/snaps/core18_1944.snap: Can't open blockdev
[ 3.461674] /var/lib/snapd/snaps/core18_1988.snap: Can't open blockdev
[ 3.464448] /var/lib/snapd/snaps/core20_875.snap: Can't open blockdev
[ 3.466716] /var/lib/snapd/snaps/core20_904.snap: Can't open blockdev
[ 3.470740] /var/lib/snapd/snaps/flutter_50.snap: Can't open blockdev
[ 3.473131] /var/lib/snapd/snaps/flutter_56.snap: Can't open blockdev
[ 3.475676] /var/lib/snapd/snaps/freemind_4.snap: Can't open blockdev
[ 3.478013] /var/lib/snapd/snaps/gnome-3-28-1804_128.snap: Can't open blockdev
[ 3.479734] /var/lib/snapd/snaps/gnome-3-28-1804_145.snap: Can't open blockdev
[ 3.483103] /var/lib/snapd/snaps/gtk-common-themes_1513.snap: Can't open blockdev
[ 3.484713] /var/lib/snapd/snaps/gtk-common-themes_1514.snap: Can't open blockdev
[ 3.488181] /var/lib/snapd/snaps/intellij-idea-community_273.snap: Can't open blockdev
[ 3.490440] /var/lib/snapd/snaps/intellij-idea-community_286.snap: Can't open blockdev
[ 3.492518] /var/lib/snapd/snaps/intellij-idea-ultimate_269.snap: Can't open blockdev
[ 3.495582] /var/lib/snapd/snaps/intellij-idea-ultimate_282.snap: Can't open blockdev
[ 3.497450] /var/lib/snapd/snaps/netbeans_41.snap: Can't open blockdev
[ 3.500580] /var/lib/snapd/snaps/netbeans_45.snap: Can't open blockdev
[ 3.503074] /var/lib/snapd/snaps/ngrok_29.snap: Can't open blockdev
[ 3.505055] /var/lib/snapd/snaps/notekit_9.snap: Can't open blockdev
[ 3.508920] /var/lib/snapd/snaps/opera_100.snap: Can't open blockdev
[ 3.511047] /var/lib/snapd/snaps/phpstorm_197.snap: Can't open blockdev
[ 3.514017] /var/lib/snapd/snaps/phpstorm_200.snap: Can't open blockdev
[ 3.516575] /var/lib/snapd/snaps/postman_132.snap: Can't open blockdev
[ 3.518914] /var/lib/snapd/snaps/postman_133.snap: Can't open blockdev
[ 3.521315] /var/lib/snapd/snaps/powershell_158.snap: Can't open blockdev
[ 3.523103] /var/lib/snapd/snaps/powershell_160.snap: Can't open blockdev
[ 3.526926] /var/lib/snapd/snaps/pycharm-educational_35.snap: Can't open blockdev
[ 3.528944] /var/lib/snapd/snaps/pycharm-educational_36.snap: Can't open blockdev
[ 3.532341] /var/lib/snapd/snaps/rider_145.snap: Can't open blockdev
[ 3.535405] /var/lib/snapd/snaps/rider_161.snap: Can't open blockdev
[ 3.538108] /var/lib/snapd/snaps/speedy-duplicate-finder_28.snap: Can't open blockdev
[ 3.541525] /var/lib/snapd/snaps/webstorm_187.snap: Can't open blockdev
[ 3.544166] /var/lib/snapd/snaps/webstorm_189.snap: Can't open blockdev