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
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[uuid](ubuntu)

Martin Hope
Sebr
Asked: 2020-08-19 02:43:51 +0800 CST

使用 UUID 或 PARTUUID 通过 fstab 自动挂载 HDD 更好吗?

  • 5

我正在尝试按照Akshit 的终端指南将我的外部硬盘驱动器设置为在启动时自动挂载。

我最初在 `/etc/fastab' 中使用了 PARTUUID 而不是 UUID:

UUID=191486e0-6049-46aa-973c-425d317b629a /mnt/nas exfat uid=1000,gid=1000,umask=0022,auto,rw 0 0

当我运行时,这给了我一个错误,findmnt --verify --verbose我重新检查blkid并注意到我一直在使用分区 ID:

/dev/sdb1: LABEL="My Book" UUID="20C9-C659" TYPE="exfat" PTTYPE="atari" PARTLABEL="My Book" PARTUUID="191486e0-6049-46aa-973c-425d317b629a"

所以我在 fstab 中添加了实际的 UUID,但现在我不确定我是否应该使用它或者我是否应该使用 PARTUUID,以及为什么我的 UUID 比我见过的其他示例短得多(特别是当“保证 UUID 是唯一的。据我所知,在宇宙的生命周期内不会发生碰撞”)。

fstab partitioning mount automount uuid
  • 2 个回答
  • 7139 Views
Martin Hope
loko
Asked: 2020-01-27 11:37:58 +0800 CST

如何获取设备的 UUID?

  • 0

从睡眠模式返回时,我的笔记本电脑的 LCD 只显示雪花(如没有信号的模拟电视)。除非我重新启动它,否则没有任何变化,没有显示输出。我在作者用来输出引导加载程序配置并添加要恢复的设备的地方发现了这个问题。sudo nano / etc / default / grub他没有具体说明 UUID 正在使用哪个设备,我想这是必须恢复的 GPU,但它可能是屏幕。我将尝试他们两个,看看哪一个可以工作,但我如何获得他们的 UUID?

suspend screen gpu-driver amdgpu uuid
  • 1 个回答
  • 429 Views
Martin Hope
xtrchessreal
Asked: 2020-01-04 22:23:28 +0800 CST

Ubuntu 16.04.6 & 19.10、Debian 10:启动超时;多操作系统共享交换

  • 0

最近安装多个操作系统后,我遇到了启动错误。我注意到很长的启动时间,看着启动加载代码过去了,显然卡在了一个需要 90 秒的启动作业上,然后才最终退出显示 [Timed] 和 [delay] 的失败,很难阅读整行跑出屏幕继续启动。它在引导期间几乎所有机器上的操作系统都有延迟。

我跑了journalctl -p err,发现以下内容:

Jan 03 12:37:48 z-Inspiron-N5010 systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-d85dac55\x2d2393\x2d412a\x2d8080\x2d8cb24061f7b0.device.
Jan 03 12:42:51 z-Inspiron-N5010 systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-d85dac55\x2d2393\x2d412a\x2d8080\x2d8cb24061f7b0.device.
Jan 03 12:48:34 z-Inspiron-N5010 systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-d85dac55\x2d2393\x2d412a\x2d8080\x2d8cb24061f7b0.device.
Jan 03 13:06:28 z-Inspiron-N5010 systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-d85dac55\x2d2393\x2d412a\x2d8080\x2d8cb24061f7b0.device.
z@z-Inspiron-N5010:~$ cat /etc/fstab
# /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/sda14 during installation
UUID=a78d855d-8b99-4920-8cf6-16dea3ff5d56 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda15 during installation
UUID=9c7b545a-642c-44ee-b9e6-f440b5aec755 /home           ext4    defaults        0       2
# swap was on /dev/sda5 during installation
UUID=d85dac55-2393-412a-8080-8cb24061f7b0 none            swap    sw              0       0
z@z-Inspiron-N5010:~$ 

在解析 Timed Out Devicedev-disk-by\x2duuid-d85dac55\x2d2393\x2d412a\x2d8080\x2d8cb24061f7b0.device.从每个用“\”分隔的 x2d 中提取后,我得出: UUID=d85dac55-2393-412a-8080-8cb24061f7b0 与 fstab 文件进行比较,很容易看出与错误相关的设备是/dev/sda5. 然后我运行sudo blkid /dev/sda5并确定分区实际上已分配UUID=bb3c892f-7584-42a3-a35a-0f0dfd517222

我意识到最后安装的操作系统是 2020 年 1 月 3 日的 Debian 10。我还记得安装程序要求我确认我定义的分区/并将/home被格式化,但它也添加swap到了列表中。

我启动到 Debian 操作系统并运行 blkid 并查看了 Debian fstab 文件,如下所示定义了两个交换 - 不是手动的,安装程序出现了一些错误。

root@debian:/home/x# cat /etc/fstab
# /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/sda14 during installation
UUID=199f052c-ccf7-4b75-874c-de83d1c37300 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda15 during installation
UUID=ab46faec-c492-403d-8452-c6cd79af1ca1 /home           ext4    defaults        0       2
/dev/mapper/fedora_localhost--live-swap none            swap    sw              0       0
# swap was on /dev/sda5 during installation
UUID=bb3c892f-7584-42a3-a35a-0f0dfd517222 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
root@debian:/home/x#

不知何故 Fedoraswap和共享/dev/sda5 swap在 Debian 的 fstab 中?所有系统启动,仅在交换超时时都会延迟 90 秒。自从 Ubuntu 16.04.6 接近 ESM 以来,我正在玩一些发行版。一旦我决定保留和删除哪些操作系统,我可能仍然会遇到问题。任何技术帮助将不胜感激和感谢。

dual-boot swap timeout uuid boot-time
  • 1 个回答
  • 641 Views
Martin Hope
masterleo
Asked: 2019-05-05 04:56:26 +0800 CST

在 ubuntu 18.04 上睡眠/休眠后黑屏

  • 0

我的问题是,如果我在我的带有 radeon hd graphics × 2 的 pavillon G7 AMD A6-4400m apu 上睡觉或休眠,屏幕将永远不会再次打开,背光灯打开但 lcd 保持黑色。我试图禁用挂起,只关闭显示器并锁定会话,但这没有帮助。我尝试了 Ubuntu MATE、Xubuntu、Lubuntu、Linux Mint,它在所有这些上都可以做到,但在 Windows 7 上从来没有。这台机器上的显示器没有 BIOS 设置。我试过 ctrl + alt + F1 和 alt + ctrl + Del 也没有用。请帮忙

grub2 drivers screen uuid
  • 1 个回答
  • 2616 Views
Martin Hope
Xu Shijie
Asked: 2019-05-04 06:54:21 +0800 CST

如何更改 /boot/grub/grub.cfg 中的 UUID

  • 5

我在问如何更改uuid,/boot/grub/grub.cfg以便 grub 可以在指定的分区上加载操作系统。

我有两个磁盘:

  • SSD /dev/sda1 与 uuid d7f0cf11-3edf-4859-b65a-3b5bc60ea7b9
  • 硬盘 /dev/sdb1 与 uuid 47d9205b-00a8-40e5-88d6-e8b9571799a7

两个磁盘都包含相同的内容(一个 Ubuntu 根目录)但不同的分区 uuid sda1,sdb1因为clonezilla

问题是/boot/grub/grub.cfg,它是自动生成的,包含:

           if [ x$feature_platform_search_hint = xy ]; then
              search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  47d9205b-00a8-40e5-88d6-e8b9571799a7
            else
              search --no-floppy --fs-uuid --set=root 47d9205b-00a8-40e5-88d6-e8b9571799a7
            fi
            echo    'Loading Linux 4.4.0-146-generic ...'
            linux   /boot/vmlinuz-4.4.0-146-generic root=UUID=47d9205b-00a8-40e5-88d6-e8b9571799a7 ro  quiet splash $vt_handoff

表明 grub 选择 Ubuntu rootsdb1而不是sda1,而我希望它选择sda1.

我尝试直接替换所有47d9205b-00a8-40e5-88d6-e8b9571799a7,d7f0cf11-3edf-4859-b65a-3b5bc60ea7b9然后运行update-grub,但随后一切都恢复了。

那么还有其他更好的解决方案吗?/boot/grub/grub.cfg实际上是自动生成的。如果我分离了sdb1,grub 将无法启动,因为它找不到sdb1.

谢谢


更新:

shijiex@shijie:~$ cat /etc/fstab
# /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>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=d7f0cf11-3edf-4859-b65a-3b5bc60ea7b9  /               ext4    errors=remount-ro 0       1

#UUID=47d9205b-00a8-40e5-88d6-e8b9571799a7 /old_os               ext4    errors=remount-ro 0       2
# /backup was on /dev/sda5 during installation
UUID=d36e69de-3af8-4302-a2b1-f32c2538493d /backup         ext4    defaults        0       0
# /home was on /dev/sda7 during installation
UUID=95ffe5be-ed1c-4d2b-b745-e31ba62ca63d /home           ext4    defaults        0       2
#UUID=e2ae897d-62b1-45d3-a17a-49e7a1b8fbe7 /home           ext4    defaults        0       2

# /vm was on /dev/sda8 during installation
#UUID=222bf555-b2d3-4607-a856-f5fd785b1862  /vm            ext4    defaults        0       2
# /opt was on /dev/sda8 during installation
UUID=ffbc1ea0-f426-4def-9349-a6f68b486b2f  /opt       ext4    defaults        0       0
# /other was on /dev/sda6 during installation
UUID=657778bc-fde8-4261-9fe6-4134c6a7fb3f /other          ext4    defaults        0       0


# /other was on /dev/sda6 during installation
#UUID=6db98036-2350-4289-b9ef-8e0a2ae52eeb /win           ext4    defaults        0       2


# swap was on /dev/sda9 during installation
UUID=71c498b2-3484-4d5b-b64a-270cc352841b  none            swap    sw              0       0
#UUID=05f1ba29-4188-40d1-8597-de708b48ed50  /tmp           swap    sw              0       0

和blkid:

 shijiex@shijie:~$ sudo blkid 

[sudo] password for shijiex: 
/dev/sda1: UUID="d7f0cf11-3edf-4859-b65a-3b5bc60ea7b9" TYPE="ext4" PARTUUID="2fe05ff9-01"
/dev/sda3: UUID="95ffe5be-ed1c-4d2b-b745-e31ba62ca63d" TYPE="ext4" PARTUUID="2fe05ff9-03"
/dev/sda4: UUID="8d114eed-5ce4-4d6f-8a28-8a7092b01d46" TYPE="ext4" PARTUUID="2fe05ff9-04"
/dev/sda5: UUID="94b0fb65-f56d-426d-81f9-d05a8ac783eb" TYPE="ext4" PARTUUID="2fe05ff9-05"
/dev/sdb1: UUID="47d9205b-00a8-40e5-88d6-e8b9571799a7" TYPE="ext4" PARTUUID="0001c588-01"
/dev/sdb10: LABEL="New Volume" UUID="6db98036-2350-4289-b9ef-8e0a2ae52eeb" TYPE="ext4" PARTUUID="0001c588-0a"
/dev/sdb11: UUID="ffbc1ea0-f426-4def-9349-a6f68b486b2f" TYPE="ext4" PARTUUID="0001c588-0b"
/dev/sdb5: UUID="d36e69de-3af8-4302-a2b1-f32c2538493d" TYPE="ext4" PARTUUID="0001c588-05"
/dev/sdb6: UUID="657778bc-fde8-4261-9fe6-4134c6a7fb3f" TYPE="ext4" PARTUUID="0001c588-06"
/dev/sdb7: UUID="e2ae897d-62b1-45d3-a17a-49e7a1b8fbe7" TYPE="ext4" PARTUUID="0001c588-07"
/dev/sdb8: UUID="222bf555-b2d3-4607-a856-f5fd785b1862" TYPE="ext4" PARTUUID="0001c588-08"
/dev/sdb9: UUID="71c498b2-3484-4d5b-b64a-270cc352841b" TYPE="swap" PARTUUID="0001c588-09"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
grub2 boot partitioning mount uuid
  • 5 个回答
  • 22513 Views
Martin Hope
Juan Leni
Asked: 2019-03-19 05:20:02 +0800 CST

更改 LVM2_member 的 UUID

  • 1

我已经克隆了我的 SSD 并使用 Live 发行版重新启动以更改相应的 UUID。

不幸的是,当我跑步时

tune2fs -U {some_UUID} /dev/sda5 

我得到错误

tune2fs: Bad magic number ....
/dev/sda5 contains a LVM2_member

两个副本都会发生这种情况..所以我无法更改 UUID。如果我尝试预订,由于 UUID 重复,系统无法启动。

在这种情况下如何更改 UUID?

ssd clone 18.04 uuid
  • 2 个回答
  • 1973 Views
Martin Hope
Ivan Sidaruk
Asked: 2019-02-21 08:38:21 +0800 CST

如何将已安装的 HDD UUID 更改为人类可读的?

  • 4

我在 SSD 上安装了 Ubuntu 18.04.2 LTS,我还安装了 HDD 以获取数据。但是当我这样做时,它的 UUID 包含随机的数字和字母集,例如 /mnt/9d79a504-bf86-4a1f-99e4-927b9e20df6e,即使我标记了它并给我的磁盘起了一个简单的名称 - 存储,我仍然无法像终端中的 cd /mnt/Storage 那样导航到它,我也尝试给它一个别名,但它失败了。那么有人可以帮助我吗?谢谢!

我检查了下面的这个链接,看起来很相似,但是,我不得不问这个问题。 如何在 nautilus 中为其他驱动器和分区提供简短、有意义的名称? 如何更改驱动器的名称?

终端画面

更新:

解决屏幕

partitioning mount hard-drive uuid
  • 2 个回答
  • 1593 Views
Martin Hope
Dananjaya Ariyasena
Asked: 2018-12-19 12:00:27 +0800 CST

Ubuntu 18.04 无法启动,UUID 错误

  • 1

突然我的笔记本电脑停止启动。我已经安装了 Ubuntu 18.04,现在启动时出现此错误。我搜索了它并尝试了我找到的所有解决方案,但仍然无法启动。请不要将此标记为重复,请帮助我!

错误

Gave up waiting for suspend/resume device
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! UUID=fcbf606a-0ac2-4da9-b0c6-ee8612ed5048 does not exist. Dropping to a shell!

BusyBox v1.27.2 (Ubuntu 1:1.27.2-2ubuntu2) built-in shell (ash)
Enter 'help' for a lost of built-in commands.
(initramfs) 

这里输出我尝试过的一些命令;

sudo blkid -c /dev/null -o 列表

device                             fs_type       label          mount point                            UUID
-------------------------------------------------------------------------------------------------------------------------------------------         
/dev/sda1                          vfat          BOOT           (not mounted)                          E467-B07A
/dev/sda2                          ext4                         (not mounted)                          fcbf606a-0ac2-4da9-b0c6-ee8612ed5048
/dev/sda3                          swap                         [SWAP]                                 76b0dd9f-0ee3-4a57-b2f7-085b5681353a
/dev/sda4                          ext4          WorkBench      (not mounted)                          5fc99d45-40ad-400e-993d-10e1c760136c
/dev/sda5                          ext4          Entertainment  (not mounted)                          dc3ed43c-e8df-4a8c-8717-b9ffae68873d
/dev/sr0                           iso9660       Ubuntu 18.04 LTS amd64 /cdrom                         2018-04-26-18-43-51-00
/dev/sr1                           iso9660       My CDROM       /media/ubuntu/My CDROM                 2017-01-14-16-54-41-00

须藤 blkid

/dev/sda1: LABEL="BOOT" UUID="E467-B07A" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="7cbed102-d376-4057-8a0d-eb2794ddf36c"
/dev/sda2: UUID="fcbf606a-0ac2-4da9-b0c6-ee8612ed5048" TYPE="ext4" PARTUUID="c12001d1-8c66-42f8-8d2d-f02c2c5535c8"
/dev/sda4: LABEL="WorkBench" UUID="5fc99d45-40ad-400e-993d-10e1c760136c" TYPE="ext4" PARTLABEL="WorkBench" PARTUUID="1b7cff28-a8a9-48ca-a14b-511f78814c59"
/dev/sda5: LABEL="Entertainment" UUID="dc3ed43c-e8df-4a8c-8717-b9ffae68873d" TYPE="ext4" PARTLABEL="Entertainment" PARTUUID="dd76139e-aeec-4963-98b6-3b2cc76e6c3d"
/dev/sr0: UUID="2018-04-26-18-43-51-00" LABEL="Ubuntu 18.04 LTS amd64" TYPE="iso9660" PTUUID="2b192737" PTTYPE="dos"
/dev/sda3: UUID="76b0dd9f-0ee3-4a57-b2f7-085b5681353a" TYPE="swap" PARTUUID="56845884-ee7e-4b17-bac0-0033a93641f3"

须藤分开 -l

Model: ATA TOSHIBA MQ04ABF1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name                  Flags
 1      1049kB  538MB   537MB   fat32           EFI System Partition  boot, esp
 2      538MB   205GB   205GB   ext4
 4      205GB   581GB   376GB   ext4            WorkBench
 5      581GB   994GB   413GB   ext4            Entertainment
 3      994GB   1000GB  6313MB  linux-swap(v1)

猫 /etc/fstab

overlay / overlay rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0

猫 /media/ubuntu/fcbf606a-0ac2-4da9-b0c6-ee8612ed5048/etc/fstab

# /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/sda2 during installation
UUID=fcbf606a-0ac2-4da9-b0c6-ee8612ed5048 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=E467-B07A  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/sda3 during installation
UUID=76b0dd9f-0ee3-4a57-b2f7-085b5681353a none            swap    sw              0       0

fdisk -l

Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 622D36C8-88E4-4F3B-85C6-FAF1850F0B74

Device          Start        End   Sectors   Size Type
/dev/sda1        2048    1050623   1048576   512M EFI System
/dev/sda2     1050624  401051647 400001024 190.8G Linux filesystem
/dev/sda3  1941192704 1953523711  12331008   5.9G Linux swap
/dev/sda4   401051648 1135054847 734003200   350G Linux filesystem
/dev/sda5  1135054848 1941192703 806137856 384.4G Linux filesystem

Partition table entries are not in disk order.


Disk /dev/sdb: 14.7 GiB, 15728640000 bytes, 30720000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2b192737

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1        2048 30717951 30715904 14.7G  c W95 FAT32 (LBA)

ls -l /media/ubuntu/fcbf606a-0ac2-4da9-b0c6-ee8612ed5048/boot

我通过使用 Live DVD 得到了这个输出。我将initramfs在此之后添加提示输出。

-rw------- 1 root root  4047147 Oct 23 14:44 System.map-4.15.0-39-generic
-rw------- 1 root root  4048025 Dec  3 22:18 System.map-4.15.0-42-generic
-rw-r--r-- 1 root root  1537997 Oct 23 14:44 abi-4.15.0-39-generic
-rw-r--r-- 1 root root  1538114 Dec  3 22:18 abi-4.15.0-42-generic
-rw-r--r-- 1 root root   217018 Oct 23 14:44 config-4.15.0-39-generic
-rw-r--r-- 1 root root   217023 Dec  3 22:18 config-4.15.0-42-generic
drwxr-xr-x 2 root root     4096 Oct 16 14:06 efi
drwxr-xr-x 5 root root     4096 Dec 14 19:38 grub
-rw-r--r-- 1 root root 55474757 Nov 20 14:43 initrd.img-4.15.0-39-generic
-rw-r--r-- 1 root root 55485262 Dec 14 19:38 initrd.img-4.15.0-42-generic
-rw-r--r-- 1 root root   182704 Jan 28  2016 memtest86+.bin
-rw-r--r-- 1 root root   184380 Jan 28  2016 memtest86+.elf
-rw-r--r-- 1 root root   184840 Jan 28  2016 memtest86+_multiboot.bin
-rw-r--r-- 1 root root        0 Oct 23 14:44 retpoline-4.15.0-39-generic
-rw-r--r-- 1 root root        0 Dec  3 22:18 retpoline-4.15.0-42-generic
-rw------- 1 root root  8277752 Oct 23 14:59 vmlinuz-4.15.0-39-generic
-rw------- 1 root root  8277752 Nov 15 19:04 vmlinuz-4.15.0-42-generic

sudo fsck -f /dev/sda2

fsck from util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
/dev/sda2 is mounted.
e2fsck: Cannot continue, aborting.

卸载后;

fsck from util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda2: 453874/12500992 files (0.4% non-contiguous), 8062067/50000128 blocks

ls -al /启动

total 136440
drwxr-xr-x  4 root root     4096 Dec 19 12:18 .
drwxr-xr-x 24 root root     4096 Dec 19 14:45 ..
-rw-r--r--  1 root root  1537997 Oct 23 20:14 abi-4.15.0-39-generic
-rw-r--r--  1 root root  1538114 Dec 4 03:48 abi-4.15.0-42-generic
-rw-r--r--  1 root root   217018 Oct 23 20:14 config-4.15.0-39-generic
-rw-r--r--  1 root root   217023 Dec 4 03:48 config-4.15.0-42-generic
drwx------  3 root root     4096 Jan 1  1970 efi
drwxr-xr-x  5 root root     4096 Dec 15 01:08 grub
-rw-r--r--  1 root root 55474757 Nov 20 20:13 initrd.img-4.15.0-39-generic
-rw-r--r--  1 root root 55485295 Dec 19 12:18 initrd.img-4.15.0-42-generic
-rw-r--r--  1 root root   182704 Jan 28  2016 memtest86+.bin
-rw-r--r--  1 root root   184380 Jan 28  2016 memtest86+.elf
-rw-r--r--  1 root root   184840 Jan 28  2016 memtest86+_multiboot.bin
-rw-r--r--  1 root root        0 Oct 23 20:14 retpoline-4.15.0-39-generic
-rw-r--r--  1 root root        0 Dec 4 03:48 retpoline-4.15.0-42-generic
-rw-------  1 root root  4047147 Oct 23 20:14 System.map-4.15.0-39-generic
-rw-------  1 root root  4048025 Dec 4 03:48 System.map-4.15.0-42-generic
-rw-------  1 root root  8277752 Oct 23 20:29 vmlinuz-4.15.0-39-generic
-rw-------  1 root root  8277752 Nov 16 00:34 vmlinuz-4.15.0-42-generic
boot fstab mount 18.04 uuid
  • 3 个回答
  • 7748 Views
Martin Hope
rkeating
Asked: 2018-07-31 13:23:10 +0800 CST

交换:从分区到文件,现在得到“没有匹配的交换设备可用”

  • 38

运行 Ubuntu 18.04,我从交换分区更改为交换文件。

swapon -s(摘要)并免费显示具有新大小的交换文件。/etc/fstab 已更改,交换文件的权限已更改,并且交换分区已删除。当有更新(apt-get 更新和升级)时,我收到此错误:

Setting up amd64-microcode (3.20180524.1~ubuntu0.18.04.2) ...
update-initramfs: deferring update (trigger activated)
amd64-microcode: microcode will be updated at next boot
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for initramfs-tools (0.130ubuntu3.1) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-29-generic
W: initramfs-tools configuration sets RESUME=UUID=c5a2c6f4-b67c-4d95-bc23-8333ed6c0f11
W: but no matching swap device is available.

那里列出的 UUID 用于旧的交换分区。我不认为交换文件有 UUID,但我不确定。其他一切似乎都很好。我应该如何进行故障排除和修复?

swap resume uuid
  • 3 个回答
  • 26612 Views
Martin Hope
SPooKYiNeSS
Asked: 2018-03-26 15:03:41 +0800 CST

硬盘的uuid是常数吗?[复制]

  • 2
这个问题在这里已经有了答案:
哪些情况会导致硬盘 UUID 发生变化? (1 个回答)
4年前关闭。

我知道您可以选择更改 uuid,但如果不理会它是否保持不变。具体来说,我正在升级我的主板,但不确定是否需要使用新的 uuid 更改我的 fstab,或者所有这些信息是否保持不变。

fstab motherboard uuid
  • 1 个回答
  • 548 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