So I have dual booted my 1 TB hard disk with Windows and Ubuntu.
The disk partition looks as following
As you can see there is 326 GB
of unallocated space that is not usable.
It is an MBR disk so I am aware that the maximum number of partitions can be 4.
Current primary partitions run contain the following:
- Partition 2
/dev/sda2
Windows Filesystem - Partition 5
/dev/sda5
Linux Filesystem - Partition 6
/dev/sda6
Linux Swap - Partition 7
/dev/sda7
Linux Files
Is it possible to make this space usable?
Please link any previously answered questions if this has already been answered.
The output of sudo fdisk -l
is
Disk /dev/loop0: 202.9 MiB, 212713472 bytes, 415456 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: 320.2 MiB, 335728640 bytes, 655720 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: 320.2 MiB, 335794176 bytes, 655848 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: 202.3 MiB, 212099072 bytes, 414256 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: 181.1 MiB, 189870080 bytes, 370840 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: 89 MiB, 93327360 bytes, 182280 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: 8.4 MiB, 8839168 bytes, 17264 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/loop7: 180.2 MiB, 188928000 bytes, 369000 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.5 GiB, 1000204886016 bytes, 1953525168 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
Disklabel type: dos
Disk identifier: 0x6436f9fc
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1026047 1024000 500M 7 HPFS/NTFS/exFAT
/dev/sda2 1026048 686035516 685009469 326.7G 7 HPFS/NTFS/exFAT
/dev/sda3 1323407360 1324374015 966656 472M 27 Hidden NTFS WinRE
/dev/sda4 1324378110 1953523711 629145602 300G 5 Extended
/dev/sda5 1324378112 1359499263 35121152 16.8G 83 Linux
/dev/sda6 1359501312 1375123455 15622144 7.5G 82 Linux swap / Solaris
/dev/sda7 1375125504 1953523711 578398208 275.8G 83 Linux
Partition 4 does not start on physical sector boundary.
Disk /dev/loop8: 85 MiB, 89128960 bytes, 174080 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/loop9: 88.7 MiB, 92983296 bytes, 181608 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/loop10: 8.4 MiB, 8835072 bytes, 17256 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/loop11: 8.6 MiB, 9019392 bytes, 17616 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
EDIT
Ok from other answers I figured that if I boot using a live CD/USB then I can resize the disk using GParted by bringing the unallocated disk next to the other disk and merging them.
Here is a screenshot of GParted
Now I want to merge some of the unallocated
space to /dev/sda5
and remaining to /dev/sda7
.
Is it possible to do this? Will this work using a live CD/USB?
sda2
, then movesda3
, then add the rest of space tosda4
and so on... And of course, you need to use a live-USB! – mook765 Sep 22 '19 at 21:14sda7
has plenty of free space, no need to add there. Better you add some space tosda2
which isntfs
and doesn't have much space left.ntfs
needs more free space for the purpose of defragmentation. – mook765 Sep 22 '19 at 21:21sda4
). Please understand that unallocated space is not a partition, you cannot move it, you move partitions, the result is basically the same. https://askubuntu.com/q/151968/590937 – mook765 Sep 22 '19 at 21:46