连接第二个磁盘时 Fedora 启动挂起

连接第二个磁盘时 Fedora 启动挂起

我在跑步

# uname -a
Linux UlanBator 5.16.11-200.fc35.x86_64 #1 SMP PREEMPT Wed Feb 23 17:08:49 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

# 

我有这些磁盘

# fdisk -l
Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST9500423AS     
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: dos
Disk identifier: 0x1015d719

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sda1  *       2048   2099199   2097152     1G 83 Linux
/dev/sda2       2099200 976773119 974673920 464.8G 8e Linux LVM

Disk /dev/mapper/fedora-root: 50 GiB, 53687091200 bytes, 104857600 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

Disk /dev/mapper/fedora-swap: 7.91 GiB, 8493465600 bytes, 16588800 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

Disk /dev/zram0: 7.74 GiB, 8313110528 bytes, 2029568 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/mapper/fedora-home: 406.85 GiB, 436849344512 bytes, 853221376 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

Disk /dev/sdb: 1.82 TiB, 2000398933504 bytes, 3907029167 sectors
Disk model: OneTouch HDD    
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: dos
Disk identifier: 0x011b8246

Device     Boot      Start        End    Sectors   Size Id Type
/dev/sdb1             2048 1953514583 1953512536 931.5G 83 Linux
/dev/sdb2       1953515520 3907029166 1953513647 931.5G 83 Linux

#

sdb 是通过 USB-3 连接的外部驱动器。

# blkid -o list
device                   fs_type      label        mount point  UUID
--------------------------------------------------------------------------------------------------------
/dev/mapper/fedora-swap  swap                      [SWAP]       6b92c40e-8f23-4360-90a9-fba7670ebeeb
/dev/mapper/fedora-home  ext4                      /home        2124d813-f982-4d49-b2d7-a26522ce254a
/dev/mapper/fedora-root  ext4                      /            65a51d0a-4132-4af0-8170-94be6c67deef
/dev/sda2                LVM2_member               (in use)     MM7jJv-ar5b-KC6l-bez8-9cPQ-CJmJ-6KAwxW
/dev/sda1                ext4                      /boot        981faec7-1770-4f29-96aa-30e7fc479e59
/dev/zram0               swap         zram0        [SWAP]       dc6e7c08-ef58-4118-9716-dbb41ba94129
/dev/sdb2                ext4         partition-2  /mnt/sg/2    9ee90eaf-d345-4d75-a2e4-fe1439fa8f12
/dev/sdb1                ext4         partition-1  /mnt/sg/1    ed902376-506e-4ff9-98f0-b32f796d43a6

# grep -v ^# /etc/fstab
/dev/mapper/fedora-root                   /               ext4  defaults        1 1
UUID=981faec7-1770-4f29-96aa-30e7fc479e59 /boot           ext4  defaults        1 2
/dev/mapper/fedora-home                   /home           ext4  defaults        1 2
/dev/mapper/fedora-swap                   swap            swap  defaults        0 0
UUID=ed902376-506e-4ff9-98f0-b32f796d43a6 /mnt/sg/1       ext4  rw,relatime,seclabel,noauto        1 2
UUID=9ee90eaf-d345-4d75-a2e4-fe1439fa8f12 /mnt/sg/2       ext4  rw,relatime,seclabel,noauto        1 2
angkorwat:/mnt/lc/a/media                 /mnt/media      nfs   rw,noatime,nfsvers=3,rsize=32768,wsize=32768 0 0
angkorwat:/mnt/lc/a/projects              /mnt/projects   nfs   rw,noatime,nfsvers=3,rsize=32768,wsize=32768 0 0
angkorwat:/mnt/lc/b/java                  /mnt/java       nfs   rw,noatime,nfsvers=3,rsize=32768,wsize=32768 0 0

#

我遇到的问题是,每当外部驱动器连接到系统时,即使 sg 安装在 fstab 中被注释掉,重启也会挂起。我能想到的唯一可能性是 sdb 具有 dos 标签类型,这几乎肯定不是问题,因为 sda 也有一个,并且 sdb 使用主分区 1 和 2,这不太可能是问题,因为两者都没有标记为可启动。

答案1

这意味着您的计算机正在尝试从第二个磁盘启动。在显示登录屏幕之前请勿插入驱动器。

相关内容