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-1591468

Nishnabe's questions

Martin Hope
Nishnabe
Asked: 2023-09-12 08:34:38 +0800 CST

Ubuntu 22.04 台式计算机由于安装问题而无法启动

  • 5

问候,我丢失了 USB 备份驱动器,我猜由于依赖绑定安装点,它无法启动。确实出现了一条消息......

(  13.098039) EXT4-fs (sdc1): VFS: Can't find ext4 filesystem
(  14.437082)
You are in emergency mode. After logging in type "Journalctl -xb"
 to view
system logs. "systemctl reboot" to reboot "systemctl default" or "exit"
to boot into default mode.
(or press Control-D to continue):​

选择了 Control-D......进行了某种系统检查并显示了一个看起来很有趣的提示。无法记住所有这些代码命令,因此将其关闭。

发现备份 USB 已插入,计算机现在可以正常启动了。然而,现在关心这个微型USB关机机器。如果 USB 被意外损坏怎么办?想知道是否有办法从系统中删除钩子?如果需要的话,请准备一些关于安装座的文档。

它是戴尔,Ubuntu 22.04

/etc/fstab

注意:可能出现 chown、chmod“学习”错误,其中所有权和控制权“可能”指向 USB 驱动器而不是挂载点。不知道任何录制选项=否-(fstab.bak up)。可以通过 GUI 安装第 3 方安装绑定/挂钩。

来自替代论坛的评论。可能的解决方案。-卸载了磁盘--然后我重新安装了它,磁盘恢复了它本身的原始安装点-我发现通过使用驱动器的UUID作为安装点解决了这个问题。

- 通过 PPA 更新修复 错误修复 PPA

上述尝试未能解决问题。UUID改变,没试过。

    # /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=8256fca0-2723-4e9a-bc64-ac669b1cdd7d   /                   ext4   errors=remount-ro>
# /boot/efi was on /dev/sda2 during installation
UUID=A9EF-3FF7                              /boot/efi           vfat   umask=0077       >
/swapfile                                   none                swap   sw               >
/dev/sda1                                   /mnt/SSD2           ext4   defaults         >
/dev/sdg1                                   /media/unity/sdg1   ext4   defaults         >

                                    [ Read 14 lines ]

将使用任何 ext4 格式的 USB 启动/关闭。钩子还在那里。如果需要的话,提供可疑“钩子”的样本。

boot
  • 1 个回答
  • 169 Views
Martin Hope
Nishnabe
Asked: 2022-12-11 12:12:19 +0800 CST

Sudo update-grub 不起作用(单引导 Ubuntu 22.04)

  • 6

Ubuntu 22.04 KDE 5.15.0-52 Nvidia 470 专有。我看到有很多关于这个主题的问题,但我读过的所有答案都没有解决问题。我编辑 GRUB,保存它,它会保留更改。当我“sudo update-grub”时,它不起作用。它给了我这个读出来。Sourcing file /etc/default/grub /usr/sbin/grub-mkconfig: 1: /etc/default/grub: /#: not found

- 这是 grub 文件,我添加了以下行... GRUB_SAVEDEFAULT=true GRUB_DEFAULT=saved。

/# 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=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_SAVEDEFAULT=true
GRUB_DEFAULT=saved

# 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"
GRUB_DISABLE_OS_PROBER=false

默认情况下,我尝试在内核 5.15.0-52 上启动。我无意中完全升级到 5.15.0-53,随后升级到 5.15.0-56,现在有两个不需要的内核,它不会让我清除或删除它们。(错误、未签名等)(了解到 Nvidia 专有和 nouveau w 内核升级不起作用)这是我尝试过的,它教会了我很多东西,但文件和脚本在那里。一切似乎都在它应该在的地方。

创建 update-grub 命令是为了让事情变得更简单——它只是 /usr/sbin/ 中的一个 shell 脚本:

#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"

如果没有,您可以自己制作。为此,请运行它并粘贴上面的脚本:

sudo nano /usr/sbin/update-grub

使用 Ctrl+O 保存,使用 Ctrl+X 退出。

然后运行这些:

sudo chown root:root /usr/sbin/update-grub
sudo chmod 755 /usr/sbin/update-grub

您现在应该能够运行 update-grub。:-)

我还运行了“sudo update-grub”以及其他一些小事,但仍然没有更新 grub。有谁知道我错过了什么?

grub2
  • 1 个回答
  • 162 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