Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1146  / 2 Years ago, wed, august 3, 2022, 6:08:29

I am trying to dual boot my system, but I'm facing this error Input/Output error during write on /dev/sda at the step when I need to configure the partitions. I have tried many desktop environments thinking the error maybe with the ISO or anything but every one of that failed with this error. I checked out Can't install Ubuntu 18.04, error writing on /dev/sda this as well, but I couldn't found desired solution.


I have also checked my hard disks health. I have attached a screenshot of hard disk checkup using Hard Disk Sentinel.


screenshot here


Is there an issue with the hard disk health or there is any other problem?


Here is a screenshot of my drive properties, and it certainly isn't dynamic (currently there isn't any unpartitioned space).


screenshot


Here is the output of sudo fdisk -l -u (while I was in the live environment), I got an error like this The primary GPT table is corrupt, but the backup appears OK, so that will be used.


Disk /dev/loop0: 2.33 GiB, 2498256896 bytes, 4879408 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


Disk /dev/loop1: 4 KiB, 4096 bytes, 8 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


Disk /dev/loop2: 155.63 MiB, 163188736 bytes, 318728 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


Disk /dev/loop3: 61.89 MiB, 64901120 bytes, 126760 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


Disk /dev/loop4: 248.76 MiB, 260841472 bytes, 509456 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


Disk /dev/loop5: 81.26 MiB, 85209088 bytes, 166424 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


Disk /dev/loop6: 43.63 MiB, 45748224 bytes, 89352 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


Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: TOSHIBA MQ01ABD1
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: 5FFA138B-665C-4351-A262-D14538238857

Device Start End Sectors Size Type
/dev/sda1 2048 206847 204800 100M EFI System
/dev/sda2 206848 239615 32768 16M Microsoft reserved
/dev/sda3 239616 208671372 208431757 99.4G Microsoft basic data
/dev/sda4 208672768 209715199 1042432 509M Windows recovery environment
/dev/sda5 209717248 1743806463 1534089216 731.5G Microsoft basic data


Disk /dev/sdb: 14.59 GiB, 15664676864 bytes, 30595072 sectors
Disk model: Cruzer Blade
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: gpt
Disk identifier: 4D93C4BE-8A6E-4BB5-8609-37256EB1685D

Device Start End Sectors Size Type
/dev/sdb1 2048 30595038 30592991 14.6G Microsoft basic data

Here is the output of sudo parted -l


Error: Input/output error during read on /dev/sda
Retry/Ignore/Cancel? Ignore
Error: The primary GPT table is corrupt, but the backup appears OK, so that will
be used.
OK/Cancel? ok
Model: ATA TOSHIBA MQ01ABD1 (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 106MB 105MB fat32 EFI system partition boot, esp
2 106MB 123MB 16.8MB Microsoft reserved partition msftres
3 123MB 107GB 107GB ntfs Basic data partition msftdata
4 107GB 107GB 534MB ntfs hidden, diag
5 107GB 893GB 785GB ntfs Basic data partition msftdata


Model: SanDisk Cruzer Blade (scsi)
Disk /dev/sdb: 15.7GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 15.7GB 15.7GB fat32 Main Data Partition msftdata

Here is some of the distros I have tried to install



  1. Xubuntu 22.04

  2. Linux mint 20.2 Uma

  3. Ubuntu 22.04


Here is the methods I use



  1. First create an installation media with the iso using rufus/ balena etcher

  2. make writable parttion using create and format hard disk partition from windows

  3. Installing the image by booting into the live media


In the step where we need to configure the root drive, swap partition manually I am getting the error that it could not create the partition and following that I was getting error writing on /dev/sda.


Edit 2: Since then I have tried different things mentioned in the answers but none of them worked, here is what I have tried the following. (Earlier I mentioned different flavors of ubuntu, which I am removing to make it platform specific.)



  1. Tried fix the gpt by following the suggestions (didn't work)

  2. Tried installing windows afresh and then tried to install Ubuntu 22.04. Below is the screenshot of the partitions I have before install partition menu

  3. To my surprise the boot menu didn't recognize that I am running windows boot menu1, and I selected something else and just added the as root directory and continue and hit the dead end with boot menu2 just the same error I was facing earlier. Sorry for the low end pictures as I couldn't screenshot while the installer is on.
    Note : I have followed the official tutorial for installing Ubuntu


More From » dual-boot

 Answers
2

All your diskspace is allocated.
Boot into the Live environment and delete a NTFS partition because there is no unallocated space. Do that with GParted. Or you can do that in Windows.
Or you can change the format from NTFS to EXT4.
Or you can unallocate space ( delete a partition ) in Windows.
Maybe you can choose 'other options' during the installation procedure to delete a partition and create the EXT4 partition for your installation, although I never tried that before, so I'm not sure about that.


[#352] Thursday, August 4, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aveerakfas

Total Points: 106
Total Questions: 148
Total Answers: 129

Location: Monaco
Member since Sun, Jan 1, 2023
1 Year ago
;