無法寫入分區表

無法寫入分區表

我擁有一台 Asus UX31A Prime - 8GB RAM 和 SSD 256GB - SanDisk。它是在大約兩週前休眠後開始的(Windows)。問題是啟動/恢復時有庫存。我透過嘗試安裝 Windows 和 Linux 來搜尋它。我在 Linux 和 Wind 安裝程式上分割區時遇到 I/O 錯誤,出現黑畫面和白色遊標(我在網路上發現是 SSD/HDD 錯誤)

我嘗試刪除 Linux Live CD/USB 上的分割區,但沒有成功 - I/O 錯誤。

現在,我認為它是由於某種原因無法編輯的分區表。我將在下面發布 Fedora Linux 終端機的一些命令輸出。

取得分區表

sudo fdisk -l

輸出:

Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 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: 0x90e5b865

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048    206847    204800   100M  7 HPFS/NTFS/exFAT
/dev/sda2          206848 246163455 245956608 117.3G  7 HPFS/NTFS/exFAT
/dev/sda3       246163456 500115455 253952000 121.1G  7 HPFS/NTFS/exFAT

取得 ASCII 格式的分區表並另存為 TXT:

sudo sfdisk -d /dev/sda > PT.txt

輸出

Completed

上傳相同的表 - 無需編輯到 SSD:

sudo sfdisk --no-reread -f /dev/sda -O PT.save < PT.txt

輸出 - 有錯誤:

Disk /dev/sda: 31130 cylinders, 255 heads, 63 sectors/track
Old situation:
Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+     12-     13-    102400    7  HPFS/NTFS/exFAT
/dev/sda2         12+  15322-  15311- 122978304    7  HPFS/NTFS/exFAT
/dev/sda3      15322+  31130-  15808- 126976000    7  HPFS/NTFS/exFAT
/dev/sda4          0       -       0          0    0  Empty
New situation:
Units: sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sda1   *      2048    206847     204800   7  HPFS/NTFS/exFAT
/dev/sda2        206848 246163455  245956608   7  HPFS/NTFS/exFAT
/dev/sda3     246163456 500115455  253952000   7  HPFS/NTFS/exFAT
/dev/sda4             0         -          0   0  Empty
sfdisk: Warning: partition 1 does not end at a cylinder boundary
sfdisk: Warning: partition 2 does not start at a cylinder boundary
sfdisk: Warning: partition 2 does not end at a cylinder boundary
sfdisk: Warning: partition 3 does not start at a cylinder boundary
sfdisk: Warning: partition 3 does not end at a cylinder boundary
sfdisk: Failed writing the partition on /dev/sda: Input/output error
Re-reading the partition table ...
sfdisk: Error closing /dev/sda: Input/output error
sfdisk: If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)

你能幫助我嗎?謝謝!

答案1

從 Fedora 安裝 USB/DVD 運行

dd bs=1M if=/dev/zero of=/dev/sdX

X驅動器顯示的字母在哪裡(大概/dev/sdb

答案2

首先嘗試讀取整個磁碟。如果發生錯誤,您的磁碟已損壞:

dd if=/dev/sda of=/dev/null bs=4M status=progress

然後擦除整個磁碟。錯誤(除了“沒有更多空間”意味著磁碟已損壞):

dd if=/dev/zero of=/dev/sda bs=4M status=progress conv=fsync
sync

相關內容