在分区中创建 ext4 文件系统无法安装 Ubuntu?

sub*_*odh 2 partitioning boot usb-drive usb system-installation

我为 ubuntu-18.04.1-desktop-amd64 制作了一个可启动的笔式驱动器,现在我的安装每次都失败并出现以下错误

在 SCSI2(0,0,0)(sda) 的 partition#2 中创建 ext4/ext3 文件系统失败

我也尝试过 ext4 和 ext 3。

我试过的,创建了以下分区

  • 一个引导分区 /boot 并给它 50GB 的空间,选择 ext4 作为格式。
  • 一个根分区 / 并给它 200GB 的空间和 ext4 格式
  • 一个交换分区 /swap 并给它 5GB 的空间(它将格式化为交换)
  • 一个 home 分区 /home 并给它 500GB 的空间并将其格式化为 ext4

但它每次都失败了,对 ext3 分区也尝试过同样但没有成功。

在此之后,我选择 Ubuntu 应该处理也因相同错误而失败的分区工作。

即使下面的链接也不能帮助我解决问题。

尝试通过 Windows 安装 Ubuntu 时,文件系统创建失败

U盘分区创建ext4文件系统失败

修复“在 SCSI5 (0,0,0) (sda) 的分区 #1 中创建 ext4 文件系统失败

请查看所附图片

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

编辑 1

命令的输出dmesg

type=1400 audit(1539844636.229:220): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/snap/core/4917/usr/lib/snapd /snap-confine" pid=6585 comm="apparmor_parser" [ 115.810207] 审计:type=1400 审计(1539844636.229:221):apparmor="STATUS" operation="profile_replace" info="与当前配置文件相同,跳过" profile= “unconfined” name="/snap/core/4917/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=6585 comm="apparmor_parser" [ 433.021303] sda: sda1 sda2 sda3 sda sda5 > [ 433.250758] 在 /dev/sda1 上添加 4881404k 交换。优先级:-2 范围:1 跨:4881404k FS [440.560267] ata2.00:[sda] 读取容量 (16) 失败:结果:hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK [515.895154] sd 1:0:0:0: [sda] 感知不可用。[515.895343]sd 1:0:0:0:[sda]读取容量(10)失败:结果:hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK [515.895344]sd 1:0:0:0:[sda]感知不可用。[ 515.895479] sd 1:0:0:0: [sda] 0 512 字节逻辑块:(0 B/0 B) [ 515.895481] sd 1:0:0:0: [sda] 4096 字节物理块 [ 515.895575] sd 1:0:0:0: [sda] 写保护开启 [ 515.895576] sd 1:0:0:0: [sda] 模式感知:ab 2a 28 ff [ 515.895930] sda: 检测到容量从 0102016 变化到 0 [ 515.901323] sd 1:0:0:0: [sda] 读取容量 (16) 失败:结果:hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK [515.901327] sd 1:0:0:0: [sda] 感觉不可用. [515.901348]sd 1:0:0:0:[sda]读取容量(10)失败:结果:hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK [ 515.901350] sd 1:0:0:0: [sda] 感知不可用。[ 515.901660] sd 1:0:0:0: [sda] 写保护关闭 [ 515.901662] sd 1:0:0:0: [sda] 模式感知:00 00 00 00 [ 618.129090] scsi_io_16 抑制回调618.129096] sd 1:0:0:0: [sda] tag#0 FAILED 结果:hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK [618.129101] sd 1:0:0:0: [sda] tag#0 CDB: ATA 命令通过(16) 85 06 20 00 00 00 00 00 00 00 00 00 00 00 e5 00 [ 1217.889362] sd 1:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DARGET17s8_DARGET18000 00 00 e5 00 [1217.889362] 1:0:0:0: [sda] tag#0 CDB: ATA 命令通过(16) 85 06 20 00 00 00 00 00 00 00 00 00 00 00 e5 00 [ 1818.068632] 00 [1818.068632] 0:0:0 :[sda] tag#0 FAILED 结果:hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK [1818.068637] sd 1:

编辑 2

在此处输入图片说明

编辑 3

ubuntu@ubuntu:~$ sudo smartctl -A /dev/sda
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-29-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   253   178   021    Pre-fail  Always       -       2083
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       956
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   098   098   000    Old_age   Always       -       1960
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       952
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       337
193 Load_Cycle_Count        0x0032   188   188   000    Old_age   Always       -       37488
194 Temperature_Celsius     0x0022   113   099   000    Old_age   Always       -       34
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   200   200   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   200   200   000    Old_age   Offline      -       0
Run Code Online (Sandbox Code Playgroud)

Jan*_*ier 5

不得不发布作为答案,因为评论不允许您输入图像:如果您打开 gparted,则其中有一个菜单。当您打开时,View -> Device Information您应该看到如下内容: 设备信息

如果您的分区表不是 gpt,请使用(从菜单中)Device -> Create Partition Table创建分区表

并确保从下拉列表中选择 gpt。

您的磁盘具有 gpt 分区表,您应该能够毫无问题地安装 ubuntu。

编辑:但是!如果您查看您帖子的 EDIT3(我之前没有阅读过),您的磁盘似乎出现故障。请参阅值Raw_Read_Error_RateSeek_Error_Rate他们都非常高。还有一些消息dmesg表明您的驱动器出现故障并需要更换。