登录 立即注册

首页 > 绿虎论坛 > 电脑 > Linux/Unix (发帖)

标题: [自用] btrfs fstab

作者: @Ta

时间: 2020-12-14发布,2020-12-15修改

点击: 25597

root@hu60tx:~# cat /etc/fstab
# /dev/nvme1n1p2
UUID=fb5899d8-57a4-4476-9f22-1c4f7e364d81       /               btrfs           rw,relatime,ssd,space_cache,discard=async                       0 0
UUID=fb5899d8-57a4-4476-9f22-1c4f7e364d81       /parent         btrfs           rw,relatime,ssd,space_cache,discard=async,subvolid=0            0 0

UUID=3f0842c7-29e8-4220-93da-e3fea5b3bbcd       /data           btrfs           rw,relatime,ssd,space_cache,discard=async,subvolid=0            0 0

# /dev/nvme1n1p1 LABEL=EFI\040System\040Partition
UUID=2A5B-83D2          /boot/efi       vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro   0 2

# bind
/data/work            /work                   none    bind    0       0
/data/work            /home/hu60/work         none    bind    0       0
/data/games           /home/hu60/Games        none    bind    0       0
/data/apps            /home/hu60/Apps         none    bind    0       0
/data/home/Desktop    /home/hu60/Desktop      none    bind    0       0
/data/home/Documents  /home/hu60/Documents    none    bind    0       0
/data/home/Downloads  /home/hu60/Downloads    none    bind    0       0
/data/home/Music      /home/hu60/Music        none    bind    0       0
/data/home/Pictures   /home/hu60/Pictures     none    bind    0       0
/data/home/Videos     /home/hu60/Videos       none    bind    0       0

[隐藏样式|查看源码]


『回复列表(17|显示机器人聊天)』

1.
(/@Ta/2020-12-14 17:10//)

2. 我在哪,我是谁?这是啥?
(/@Ta/2020-12-14 17:51//)

4.

我知道这是开机自动挂载文件系统,,,,可还是没看懂帖子
我们有着共同的敌人——天命;
你却认命了,还对我说天命不可违‮

(/@Ta/2020-12-14 23:23//)

5.

@MFVPNHAHA@乄杺@蓝猫淘气,这只是我的/etc/fstab,我忘记标自用。

(/@Ta/2020-12-15 00:14//)

6.
(/@Ta/2020-12-15 16:59//)

7.
09:32:18 fsmove: progress: 1.9% done, 110.6 gigabytes still to move
09:32:34 fsmove: progress: 3.8% done, 108.5 gigabytes still to move, estimated 10 minutes left
09:32:36 fsmove: ERROR: failed to open source file `/tmp/fstransform.mount.14309/var/lib/deepin/deepin_security_verify.whitelist': Operation not permitted
         
09:32:36 ERROR! fstransform: command '/usr/sbin/fsmove -- /tmp/fstransform.mount.14309 /tmp/fstransform.loop.14309 --exclude /tmp/fstransform.mount.14309/.fstransform.loop.14309' failed (exit status 255)
                this is potentially a problem.
                you can either quit now by pressing ENTER or CTRL+C,
                
                or, if you know what went wrong, you can fix it yourself,
                then manually run the command '/usr/sbin/fsmove -- /tmp/fstransform.mount.14309 /tmp/fstransform.loop.14309 --exclude /tmp/fstransform.mount.14309/.fstransform.loop.14309'
                (or something equivalent)
                and finally resume this script by typing CONTINUE and pressing ENTER: CONTINUE
10:33:21 fstransform: unmounting and running '/usr/sbin/fsck' (disk check) on loop file '/tmp/fstransform.mount.14309/.fstransform.loop.14309'
10:33:22 fsck: fsck from util-linux 2.33.1
(/@Ta/2020-12-19 20:05//)

8.
10:33:54 fsremap: starting in-place remapping. this may take a LONG time ...
10:35:21 fsremap: progress: 3.2% done, 110.4 gigabytes still to relocate
11:11:06 fsremap: progress: 83.8% done,  21.3 gigabytes still to relocate, estimated  7 minutes left
11:18:23 fsremap: clearing 1.49 gigabytes free-space from device ...
11:56:59 fsremap: job completed.
11:56:59 fstransform: running again '/usr/sbin/fsck' (disk check) on device '/dev/sda4'
11:56:59 fsck: fsck from util-linux 2.33.1
11:56:59 fstransform: completed successfully. device '/dev/sda4' now contains 'btrfs' file-system
(/@Ta/2020-12-19 20:03//)

9.
## Generated by deepin-installer
deb [by-hash=force] https://home-packages.chinauos.com/home plum main contrib non-free
#deb-src [by-hash=force] https://home-packages.chinauos.com/home plum main contrib non-free


## Generated by deepin-installer
#deb [by-hash=force] https://community-packages.deepin.com/deepin/ apricot main contrib non-free
#deb-src https://community-packages.deepin.com/deepin/ apricot main contrib non-free


#deb https://mirrors.aliyun.com/debian buster main contrib non-free
deb https://mirrors.aliyun.com/debian buster-backports main contrib non-free
#deb https://mirrors.huaweicloud.com/debian sid main contrib non-free
#deb https://mirrors.huaweicloud.com/debian experimental main contrib non-free
(/@Ta/2020-12-28 20:56//)

10.
/var/lib/deepin/developer-mode/enabled
(/@Ta/2020-12-28 21:39//)

11.

/usr/local/bin/chroot-system

#!/bin/sh

if [ "$1" = "" ]; then
    chroot
    exit
fi

cd "$1"
mount --bind /dev dev
mount --bind /dev/pts dev/pts
mount --bind /dev/shm dev/shm

mount --bind /proc proc
mount --bind /sys sys
mount --bind /run run
mount --bind /tmp tmp

mount --bind /boot/efi boot/efi

if ! [ -f "etc/resolv.conf" ]; then
        rm etc/resolv.conf
        touch etc/resolv.conf
fi
mount --bind /etc/resolv.conf etc/resolv.conf

chroot "$@"

umount etc/resolv.conf boot/efi tmp run sys proc dev/shm dev/pts dev
(/@Ta/2021-01-02 22:22//)

12.
deb https://home-store-packages.chinauos.com/appstore eagle appstore
(/@Ta/2021-01-05 15:56//)

13. @乄杺@MFVPNHAHA@蓝猫淘气@du2005https://hu60.cn/q.php/bbs.topic.94200.html
可以参考一下一个。还是懂的懂。
(/@Ta/2021-01-05 18:51//)

14.
(/@Ta/2021-01-05 21:12//)

15.
(/@Ta/2021-01-05 21:32//)

16.
(/@Ta/2021-01-10 08:21//)

17.

添加deepin应用商店软件源

在终端运行以下命令:

echo 'deb https://cdn-package-store6.deepin.com/appstore eagle appstore' | sudo tee /etc/apt/sources.list.d/appstore.list

然后运行

sudo dpkg --add-architecture i386

然后运行

sudo apt update

该命令会报错,错误提示里面有个NO_PUBKEY,后跟一串字母数字。运行以下命令手动导入缺失的公钥:

sudo apt-key adv --keyserver keyserver.ubuntu.con --recv 把上一步看到的那一串字母数字粘贴在这里,不要无视这句话

然后验证

sudo apt update

如果报错没了就继续,否则重复上一步。


如果你看不懂上面的操作要你做什么,那就执行以下命令,这可以自动导入缺失的公钥,自动解决“无法验证以下签名: NO_PUBKEY ……”的问题:

sudo apt-get update 2>&1 | tee /tmp/apt.tmp; cat /tmp/apt.tmp | grep 'NO_PUBKEY' | awk -F'NO_PUBKEY' '{print $2}' | sort | uniq | xargs sudo apt-key adv --keyserver keyserver.ubuntu.com --recv

反复运行上面的命令,直到“由于没有公钥,无法验证下列签名:NO_PUBKEY”提示不再出现。


查找qq软件包:

apt list | grep ^com.qq

看到包名后

sudo apt install 包名

应用安装后图标不会出现,执行以下命令可以让图标出现:

find /opt/apps/*/entries /opt/durapps/*/entries -type f | while read f; do dst="~/.local/share/$(echo "$f" | awk -F'/entries/' '{print $2}')"; dstdir=`dirname "$dst"`; echo -e "$f\n\t-> $dst"; mkdir -p "$dstdir"; ln -sf "$f" "$dst"; done

如果以后不想要图标了,自己去 ~/.local/share/applications/ 删除。

(/@Ta/2021-01-23 17:03//)

18.

.bashrc

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
(/@Ta/2021-01-27 19:59//)

回复需要登录

11月26日 00:47 星期二

本站由hu60wap6华为CPU驱动

备案号: 京ICP备18041936号-1