AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-849355

Wingarmac's questions

Martin Hope
Wingarmac
Asked: 2022-11-05 11:58:41 +0800 CST

如何使系统监视器使用与 Ubuntu 22.10 Cinnamon 5.4.12 相同的主题

  • 6

带有 Cinnamon 桌面 5.4.12 的 Ubuntu 22.10未显示具有相同主题的系统监视器 42.0 :

系统主题

Ubuntu 版本于 2022 年 11 月 3 日从 22.04 更新,使用 lightdm 和 Cinnamon 到 Kinetic。

我没有找到任何允许更改它的设置:

流程设置

资源设置

文件系统设置

我怎样才能让它使用相同的主题?

我在 github 上发现了同样的问题,但问题来自 snap 版本。

我安装了它apt install gnome-system-monitor: apt-install-gnome-系统监视器

我当前的主题设置: 主题设置

我在Github上发现了另一个主题的相同问题。似乎是 gnome-system-monitor 对 GTK4 做错了。这里有另一篇文章:https ://www.phoronix.com/news/GNOME-HIG-2021-Design描述了他们自 2021 年以来一直忙于实施它。

从那以后就没有解决方法吗?

我做了其他测试,似乎只有 gnome 主题才提供 GTK2 支持。我对吗?

root@lubuton:/home/wingarmac# apt-cache search gnome-theme
gnome-themes-extra - Adwaita GTK+ 2 theme — engine
gnome-themes-extra-data - Adwaita GTK+ 2 theme — common files
gnome-theme-gilouche - openSUSE Gilouche Theme
gnome-themes-standard - Adwaita GTK+ 2 theme — engine - transitional package
gnome-themes-ubuntu - Ubuntu community themes

所以我可以推测这是因为 gnome-system-monitor 与 GTK4 不兼容?

如果是这样,我可以让它最终使用深色 GTK2 主题吗?

我还测试了snap 版本的安装:

root@lubuton:/home/wingarmac# snap install gnome-system-monitor
gnome-system-monitor 42.0 from Canonical✓ installed

两者的结果相同,在 Cinnamon 菜单中描述如下:

(我不知道哪个是快照,所以我都尝试了)

肉桂系统搜索

到目前为止,这些测试都是在我的个人电脑上进行的。所以我有另一台计算机进行测试,我确实安装了 Ubuntu 服务器 22.10。

安装后:

sudo su
apt update && apt upgrade
apt install ubuntu-desktop --no-install-recommends
apt install cinnamon
apt install ubuntu-mate-icon-themes
apt install nvidia-driver*
reboot

登录后,我已经像在我的个人电脑上一样使用 Adwaita 深色主题和 Yaru 红色图标配置了我的桌面。gnome-system-monitor 出现在黑暗中。

访问过的其他网站 (信息 - 来源 - 类似问题):

  • 如何在 Ubuntu 22.04 的 GNOME 会话中设置暗/亮模式?
  • https://manpages.ubuntu.com/manpages/focal/en/man1/gnome-session.1.html
  • https://www.phoronix.com/news/GNOME-HIG-2021-Design
  • Gnome-System-Monitor 没有 GTK 窗口装饰
  • https://github.com/dracula/gtk/issues/127
  • https://www.reddit.com/r/gnome/comments/tbqydi/gnome_42_dark_mode_not_applied_to_every_window/
  • https://gitlab.gnome.org/GNOME/Initiatives/-/wikis/D​​ark-Style-Preference#other
  • https://www.geeksforgeeks.org/how-to-install-adwaita-icon-theme-on-ubuntu/
  • https://github.com/ubuntu/gnome-shell-communitheme/issues/87
  • https://snapcraft.io/gnome-system-monitor
  • https://github.com/ubuntu/yaru/issues/296
themes
  • 1 个回答
  • 49 Views
Martin Hope
Wingarmac
Asked: 2022-06-18 20:13:24 +0800 CST

具有多个接口的 Ubuntu 22.04 共享互联网连接

  • 0

准确地说,我使用Lubuntu 22.04 LTS 和 Cinnamon桌面。

我的主板上有一个带有单个接口的网络设备。

enp5s0是与我的 ISP 路由器连接的一个,具有固定IP 192.168.1.19/24。

我有另一个具有 4 个接口的网络设备:

在此处输入图像描述

我想将第二个网络设备用作路由器。我应该如何进行?

目前,我只能通过更改方法和编辑 IP 来共享到一个接口:

共享 enp7s4f0 接口

networking
  • 1 个回答
  • 997 Views
Martin Hope
Wingarmac
Asked: 2022-06-17 09:51:19 +0800 CST

如何禁用 - Lubuntu 的图形 grub 主题

  • 3

我在我的电脑上使用 Lubuntu 22.04 LTS,并且正在测试 grub 编辑。

似乎 Lubuntu 正在使用某种图形界面来显示 grub。 在此处输入图像描述

我可以禁用它以使用与 Ubuntu 的默认设置相同的功能吗?

这是我的 grub 配置文件:cat /etc/default/grub

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT="0"
GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT="0"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER="false"

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE="640x480"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

这些是update-grub的结果

Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Sourcing file `/etc/default/grub.d/lubuntu-grub-theme.cfg'
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/lubuntu-grub-theme/theme.txt
Found linux image: /boot/vmlinuz-5.15.0-39-generic
Found initrd image: /boot/initrd.img-5.15.0-39-generic
Found linux image: /boot/vmlinuz-5.15.0-25-generic
Found initrd image: /boot/initrd.img-5.15.0-25-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/sda4@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done

我可以看到它指向两个文件:`/etc/default/grub.d/lubuntu-grub-theme.cfg' /usr/share/grub/themes/lubuntu-grub-theme/theme.txt

解决方案是否应该删除/usr/share/grub/themes/lubuntu-grub-theme/theme.txt使其不加载?这行得通吗?

grub2
  • 2 个回答
  • 379 Views
Martin Hope
Wingarmac
Asked: 2022-06-14 00:00:34 +0800 CST

制作 grub 启动项以加载恢复菜单

  • 1

制作 grub 启动项以加载恢复菜单

使用 Lubuntu 22.04 LTS

我正在尝试添加一个能够加载菜单的 grub 条目。这个菜单应该有 4 个选项:

  1. 备份sda dd if=/dev/nvme0n1 of=/mnt/data/backup/nvme0n1.img bs=4M conv=noerror status=progress
  2. 恢复 sdadd if=/mnt/data/backup/nvme0n1.img of=/dev/nvme0n1 bs=4M conv=noerror status=progress
  3. 返回 grub 根菜单
  4. 重启

我在这里找到了如何制作一个 bash 脚本来制作一个菜单,该菜单将使用 dd 来备份或恢复我的系统磁盘。这是我做的:

#!/bin/sh
show_menu(){
    normal=`echo "\033[m"`
    menu=`echo "\033[36m"` #Blue
    number=`echo "\033[33m"` #yellow
    bgred=`echo "\033[41m"`
    fgred=`echo "\033[31m"`
    printf "\n${menu}*********************************************${normal}\n"
    printf "${menu}**${number} 1)${menu} Backup sda ${normal}\n"
    printf "${menu}**${number} 2)${menu} Restore sda ${normal}\n"
    printf "${menu}**${number} 3)${menu} Restart computer ${normal}\n"
    printf "${menu}**${number} 4)${menu} Back to grub ${normal}\n"
    printf "${menu}**${number} 5)${menu} Test${normal}\n"
    printf "${menu}*********************************************${normal}\n"
    printf "Please enter a menu option and enter or ${fgred}x to exit. ${normal}"
    read opt
}

option_picked(){
    msgcolor=`echo "\033[01;31m"` # bold red
    normal=`echo "\033[00;00m"` # normal white
    message=${@:-"${normal}Error: No message passed"}
    printf "${msgcolor}${message}${normal}\n"
}

clear
show_menu
while [ $opt != '' ]
    do
    if [ $opt = '' ]; then
      exit;
    else
      case $opt in
        1) clear;
            option_picked "Option 1 Picked";
            dd if=/dev/nvme0n1 of=/mnt/data/backup/nvme0n1.img bs=4M conv=noerror status=progress;
            show_menu;
        ;;
        2) clear;
            option_picked "Option 2 Picked";
            dd if=/mnt/data/backup/nvme0n1.img of=/dev/nvme0n1 bs=4M conv=noerror status=progress;
            show_menu;
        ;;
        3) clear;
            option_picked "Option 3 Picked";
            "back to root menu";
            show_menu;
        ;;
        4) clear;
            option_picked "Option 4 Picked";
            reboot;
            show_menu;
        ;;
        x)exit;
        ;;
        \n)exit;
        ;;
        *)clear;
            option_picked "Pick an option from the menu";
            show_menu;
        ;;
      esac
    fi
done

此 bash 脚本在 Ubuntu 服务器上运行的结果: 此 bash 脚本在 Ubuntu 服务器上运行的结果 它可以解决问题,但这并不容易我可能在磁盘和文件位置上犯了错误,因为我的系统无法再启动了。我很适合重新安装它。

我想在我的默认 grub 中加入这样的菜单项。因此,我想我可以在/etc/grub.d/40.custom中添加一个条目

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry 'Lubuntu Root Terminal' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5bba636c-5b61-4ef9-857b-c5d4bf51c2cd' {
    recordfail
    load_video
    gfxmode $linux_gfx_mode
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_gpt
    insmod ext2
    search --no-floppy --fs-uuid --set=root 5bba636c-5b61-4ef9-857b-c5d4bf51c2cd
    linux   /boot/vmlinuz-5.15.0-37-generic root=UUID=5bba636c-5b61-4ef9-857b-c5d4bf51c2cd \ ro init=/bin/bash rw $vt_handoff
    initrd  /boot/initrd.img-5.15.0-37-generic
}

我还没有通过这个菜单项让系统启动到终端。我可能做错了什么。

我正在寻找如何通过此条目在我的 grub 菜单中添加 TTY 选项,但没有找到确切的方法。例如,我想知道如何以 root 身份安装系统并使用制作的 bash 启动 shell。

Ubuntu 服务器最小化在同一磁盘的一个小分区上。 从那里我将尝试设置 bash 以启动。问题是服务器命令和配置似乎不同。我无法让我的 raid-0 分区工作/映射。所以我无权访问我的文件进行测试。

我试图构建一个自定义内核 ,我在构建后安装这些包时出错了。重点是在不包含 X11 模块的恢复分区上构建内核。对我来说,这似乎是一个复杂的过程。我在证书方面遇到了问题,并且在我的系统上安装了软件包时,一切都崩溃了。

TTS0 grub 条目:我还找到了有关可以添加到 grub 的终端 TTS0 会话的信息。但是当我在启动时选择它时,我就像往常一样进入我的系统。

这是我的自定义 grub 条目 TTYS0:

recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='hd0,gpt2'  adf801ee-4bd7-4e13-aeef-210e10ef58e8
else
  search --no-floppy --fs-uuid --set=root adf801ee-4bd7-4e13-aeef-210e10ef58e8
fi
linux   /boot/vmlinuz-5.15.0-25-generic root=UUID=adf801ee-4bd7-4e13-aeef-210e10ef58e8 ro  quiet splash $vt_handoff  vga=787 console=tty0 console=ttyS0,115200n8
initrd  /boot/initrd.img-5.15.0-25-generic

我知道我在这里有更多问题:

  1. 什么是最好的:

    一个。 一个启动我的脚本菜单的终端?

    湾。一个单独的系统引导来克隆分区?

  2. 如何添加进入 TTY 的 grub 条目以加载 bash 脚本?

  3. 或者我如何构建自定义内核(如果它是正确的替代方案)以在没有桌面的情况下启动我在另一个分区上的相同安装并将此条目添加到启动。

我在 Help Ubuntu 上找到的信息建议了一种使用 dd 备份我的系统的方法。我正在寻找一些已经可用、小型且可通过 bash 命令行访问的东西。

我需要有关 make 命令的帮助,以便为我的目标构建获取正确的配置。

或者

我想在添加 grub 条目的方式上获得帮助,该条目使用我当前的系统 TTY 在启动时加载菜单 bash。

有没有办法做到这些?

我找到了一个很好的例子:Clonezilla on HD

我按照说明使用Grub Customizer将其添加到 /etc/grub.d/40_custom 中:

menuentry "Clonezilla" {
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root=(hd0,gpt1)
linux /recovery/vmlinuz boot=live union=overlay username=user config components quiet noswap nolocales edd=on nomodeset ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" keyboard-layouts= ocs_live_batch=\"no\" locales= vga=788 ip=frommedia nosplash live-media-path=/recovery bootfrom=/dev/nvme0n1 toram=recovery,syslinux,EFI
initrd /recovery/initrd.img
}

这是Linux系统盘分区信息:

nvme0n1                259:0    0 119.2G  0 disk   
├─nvme0n1p1            259:1    0  26.1G  0 part   
├─nvme0n1p2            259:2    0  87.9G  0 part   /
└─nvme0n1p3            259:3    0   5.3G  0 part   /boot/efi
  • p1 是恢复分区
  • p2 是 lubuntu 根分区
  • p3 是 efi-boot 分区

当我尝试启动此引导条目时,它会创建一个新条目。当我尝试新的时,我收到一个错误,它找不到所需的引导文件。

这是我的恢复分区的内容:

ls /mnt/recovery
amd64-release.txt                         EFI                  live
boot                                      GPL                  lost+found
clonezilla-live-20220522-jammy-amd64.zip  home                 syslinux
Clonezilla-Live-Version                   linux-5.18.4.tar.xz  utils

我认为它来自不正确的 grub 入口路径。 我不确定这个值必须填写什么......

bootfrom=/dev/nvme0n1

或者

bootfrom=/dev/nvme0n1p1

我在文件夹名称中发现了错误,应该更改为“live-hd”而不是“live”,并编辑了 grub 条目,如下所示:

我获取了 Lubuntu 的 grub 条目的信息,并根据我在 gnome-disk-utility 中看到的内容更改了磁盘 ID,并删除了 commands recordfail - load_video - gfxmode $linux_gfx_mode。

menuentry "Clonezilla" {
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root=(hd0,gpt1)
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='hd0,gpt1'  22d397bb-9bf4-4486-a84f-e2b193a49e85
else
  search --no-floppy --fs-uuid --set=root 22d397bb-9bf4-4486-a84f-e2b193a49e85
fi
linux /live-hd/vmlinuz boot=live union=overlay username=user config components quiet noswap nolocales edd=on nomodeset ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" keyboard-layouts= ocs_live_batch=\"no\" locales= vga=788 ip=frommedia nosplash live-media-path=/live-hd bootfrom=/dev/nvme0n1p1 toram=live-hd,syslinux,EFI
initrd /live-hd/initrd.img
}

带有 Clonezilla 条目的默认 grub

之后,我选择了 Clonezilla,它在 grub 菜单中创建了一个具有相同名称的新条目:

双 Clonezilla 条目

所以我尝试在新条目上启动,它运行良好,但为什么它首先进入第二个条目?

关键是它启动了,我可以克隆安装 Clonezilla 的磁盘的系统分区作为恢复分区。

最重要的是,我很高兴 Clonezilla 在没有任何额外设置的情况下检测到我的 FakeRaid 及其上的分区。我可以将图像保存在上面而不会带来不便。

Clonezilla 分区到文件

包括验证在内大约需要 10 分钟。现在我仍在寻找如何使其成为仅在备份或还原之间进行选择的菜单,并且始终交替使用相同的源和目标。我想这一定是可能的,所以我继续我的研究。

grub2
  • 1 个回答
  • 394 Views
Martin Hope
Wingarmac
Asked: 2022-05-29 08:38:05 +0800 CST

RST RAID-0 NTFS 分区不可挂载

  • 2
  • 我在单独的磁盘上有一个双引导 Windows 10 和 Ubuntu 伴侣(F8 引导选择)。
  • 我在 RST 上的 Windows 10 中制作了一个 RAID-0 块,它可以作为辅助磁盘正常工作。这个块并不意味着启动,只是为了在两个系统之间存储和共享数据。

我在 Ubuntu Mate 上看不到这个 raid 块的分区,虽然 gdisk 没有列出分区, gnome-disk-utility 看到 GPT,但没有要挂载的分区。

$ sudo gdisk -l /dev/dm-0
[sudo] Mot de passe de wingarmac : 
GPT fdisk (gdisk) version 1.0.8

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/dm-0: 3907039744 sectors, 1.8 TiB
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): F554FF29-FF7D-4A79-8D05-3ADF30EF3BED
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 3907039710
Partitions will be aligned on 8-sector boundaries
Total free space is 2527 sectors (1.2 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              34           32767   16.0 MiB    0C01  Microsoft reserved ...
   2           32768      3907035135   1.8 TiB     0700  Basic data partition
   3      3907035136      3907037183   1024.0 KiB  8300

我用开始菜单打开 Gparted,我可以看到我的 RAID-0 显示为: /dev/mapper/isw_cfjifbibag_Volume1 我无法以这种方式在 Gparted 中进行任何修改。

我可以看到我的 RAID 块在 gnome-disk-utility 中被调用:/dev/dm-0

我尝试使用终端和命令打开 Gparted:

$ sudo gparted /dev/dm-0

我试了一下,将“基本数据分区”上的标志更改为irst,然后改回msftres. 这使得分区映射到 /dev/mapper/isw_module_Volume1p1。我什至可以浏览文件夹并在已安装的分区上创建内容。重启后问题依旧。它似乎重置了操作完成。即使在我尝试更改 gnome-disks 中的挂载选项之后。

我发现 /etc/mtab 是存储当前磁盘映射(如 USB 驱动器和其他热插拔)的位置。我尝试将有关正确分区挂载的行添加到 fstab,但重新启动后分区未挂载:

/dev/mapper/isw_cfjifbibag_Volume1p2 /media/wingarmac/Data fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0

恢复问题:

线索 1:为什么我的 raid 块有两个映射?:

  • /dev/mapper/isw_cfjifbibag_Volume1
  • /dev/dm-0

这个问题的答案似乎是 /dev/mapper/isw_cfjifbibag_Volume1 是在引导时检测到的 raid 卷设备,而 /dev/dm-0 是该驱动器用于驱动器系统安装的映射。

线索 2:为什么我需要更改标志才能挂载 ntfs 分区?

当我这样做时,就像对分区进行了新的检查,并启用了这些分区的驱动器映射。

线索3:为什么重启后不能自动挂载这个分区?

我发现 Windows 使用 GPT 将磁盘初始化为 2Tb。还建议磁盘应该包含更多为 4 个分区。关键是 Ubuntu 在启动时似乎并没有照顾 GPT 磁盘上的 MBR 分区。列出了我的 dm-0(GPT 磁盘),但没有映射 dm-1(包含 MBR 分区)。

当我使用 gparted /dev/dm-0 时,我能够看到包含的 MBR NTFS 分区和另一个保留的分区。通过将分区上的标志更改为任何其他标志并返回,使分区映射到 /dev/dm-1。然后 gparted 能够验证它,因为它是映射的。在验证过程中,gparted 请求调整大小,导致“不需要调整大小”。但这使得分区能够被 Ubuntu 挂载。尽管重启后一切都重置了,即使我在 fstab 中输入了挂载详细信息。

关键是封装的 MBR 在启动时未映射到 dm-1。它似乎甚至没有被检测到,因为 dm-1 被映射,卷 /dev/mapper/isw_module_Volume1p1 还没有被发现。只有块 (/dev/mapper/isw_module_Volume1) 和 raid 成员在引导后在 gdisk 中列出。

当我输入命令时:

$ sudo file -s /dev/dm-0

我得到这些结果:

/dev/dm-0 DOS/MBR 引导扇区 MS-MBR Windows 7 英语在偏移量 0x163 “无效分区表”在偏移量 0x17b “错误加载操作系统”在偏移量 0x19a “缺少操作系统”,磁盘签名 0x87d4000f;分区 1 : ID=0x27, start-CHS (0x0,32,33), end-CHS (0x3ff,254,63), startsector 2048, 3907033088 个扇区

该分区是在 Windows 上创建的,但 Windows 安装在另一个驱动器上。就像驱动器在启动时未映射,因为它无法在其上找到系统。我不需要这个分区作为启动项,只是它会自动挂载在 Ubuntu 中。我可以禁用此磁盘/分区上的操作系统检查吗?

我想知道在检测到这个磁盘/分区时是否可以重复 gparted 在启动时所做的操作。以下是能够挂载它的 Gparted GUI 操作示例: gparted_details

通过使用命令,我找到了有关块设备的 UUID 的重要信息:

udevadm info -a -n /dev/dm-0

这给了我这个驱动器上 UUID 的结果:ATTR{dm/uuid}=="DMRAID-isw_cfjifbibag_Volume1"

现在我只收到关于我的 raid-0 的以下错误,使用命令sudo journalctl -p 3

kernel: ntfs3: Unknown parameter 'windows_names'

但是挂载点上不再出现 fstab 错误,并且仍然没有映射分区。

在这里,您将找到所有使用的识别命令及其各自的结果。

我找到了一种在重新启动后映射分区的更好方法,而不是使用 gparted。现在我只需要输入命令:sudo dmraid -ay -f isw结果:

RAID set "isw_cfjifbibag_Volume1" already active
RAID set "isw_cfjifbibag_Volume1p1" was activated

现在我可以像其他人一样将分区挂载在 gnome-disk 中。剩下的唯一问题是,在此设备上更新 GRUB 毫无意义,因为它是用于存储的。所以我不知道如何让引导过程进行检查dmraid -ay -f isw,而不是dmraid -ay像看起来那样。

partitioning
  • 1 个回答
  • 151 Views
Martin Hope
Wingarmac
Asked: 2021-02-20 21:20:36 +0800 CST

Ubuntu 20.10 - 数据恢复

  • 0

Ubuntu 20.10 groovy (x86-64) 内核:5.8.0-43-generic

我正在寻找一种可以从安装过程中删除的分区中恢复数据的工具。安装过程中选择了错误的磁盘。

我有一些想要恢复的数据。

  • 当我在 Ubuntu 中查看“GParted”工具并尝试启动磁盘恢复时,我收到一条消息,我应该安装“gpart”包。
  • 我试图按照这里的说明进行操作。但我无法安装 Foremost。
  • 我在写作时启动了 R-Linux 来分析磁盘。如果被问到,我会在评论中写下结果。

有机会在 Ubuntu Groovy 上恢复我的数据磁盘的最佳方法是什么?

data-recovery
  • 2 个回答
  • 150 Views
Martin Hope
Wingarmac
Asked: 2021-02-18 10:56:48 +0800 CST

键盘输出复位

  • 0

Ubuntu 20.10 常规 (x86-64)

内核:5.8.0-43-generic

肉桂:4.6.7

问题:键盘输出复位

我的比利时键盘输出(布局没问题),每次都会重置,我每次都必须使用sudo setxkbmap be命令将其设置回来。 示例:“t^ete”而不是“tête”(在法语中表示头部)

我提到的结果总是取自终端本身作为参考。该问题也出现在其他一些应用程序中,例如 Messenger(app)、Google Docs、...

keyboard-layout
  • 1 个回答
  • 117 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve