You are not logged in.

#1 2020-11-22 20:42:25

atomikegg
Member
Registered: 2019-08-14
Posts: 128

Fix Overlapping Partitions

I (foolishly) tried to shrink the boot partition on the active OS (i know, i know).
Used gnome disks, which hung during the attempt.

image.png

Strange thing is, the computer still boots, and everything works.
But i assume i must first fix this error, before shrinking the book partition (the right way).

Trying to follow these steps,
https://gparted.org/h2-fix-msdos-pt.php … partitions

Just wanted to get some confirmation before i proceed.

The boot partition doesn't seem to overlap anything.

# fdisk -l /dev/sda

Disk /dev/sda: 149.5 GiB, 160041885696 bytes, 312581808 sectors
Disk model: FUJITSU MHW2160B
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: 0x11b511b4

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1  *         2048  69398726  69396679 33.1G  7 HPFS/NTFS/exFAT
/dev/sda2        69400576  80957439  11556864  5.5G  6 FAT16
/dev/sda3        80959488  81922047    962560  470M 27 Hidden NTFS WinRE
/dev/sda4        81922110 312580160 230658051  110G  f W95 Ext'd (LBA)
/dev/sda5        81922112 250687487 168765376 80.5G  7 HPFS/NTFS/exFAT
/dev/sda6       250689536 266416127  15726592  7.5G 83 Linux
/dev/sda7       274792448 293687295  18894848    9G 83 Linux
/dev/sda8       272730112 274790399   2060288 1006M 82 Linux swap / Solaris
/dev/sda9       266418176 312580160  46161985   22G 83 Linux

If you read the partition in order of start, then it looks like sda9 is the too-big partition. It overlaps the beginning of sda8.

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1  *         2048  69398726  69396679 33.1G  7 HPFS/NTFS/exFAT
/dev/sda2        69400576  80957439  11556864  5.5G  6 FAT16
/dev/sda3        80959488  81922047    962560  470M 27 Hidden NTFS WinRE
/dev/sda4        81922110 312580160 230658051  110G  f W95 Ext'd (LBA)
/dev/sda5        81922112 250687487 168765376 80.5G  7 HPFS/NTFS/exFAT
/dev/sda6       250689536 266416127  15726592  7.5G 83 Linux
/dev/sda9       266418176 312580160  46161985   22G 83 Linux
/dev/sda8       272730112 274790399   2060288 1006M 82 Linux swap / Solaris
/dev/sda7       274792448 293687295  18894848    9G 83 Linux

So sda9 the one who's end-sector i should edit, correct?

(I noticed sda9 end is the same as sda4 end. sda4 is the extended partition, so i don't need to worry about it, right?)

Last edited by atomikegg (2020-11-22 20:45:05)

Offline

#2 2020-11-23 01:56:39

twobooks
Member
From: rainforest
Registered: 2020-06-23
Posts: 47

Re: Fix Overlapping Partitions

before doing anything, please backup your data.

Offline

#3 2020-11-23 10:03:46

siepo
Member
Registered: 2020-11-23
Posts: 10

Re: Fix Overlapping Partitions

Just an observation: 7 and 8 lie wholly within 9.

Offline

Board footer

Powered by FluxBB