You are not logged in.

#1 2017-01-03 07:54:45

X04D
Member
Registered: 2008-01-20
Posts: 22

[SOLVED] Missing nearly half of my SSD space

Hi,

I'm not particularly new to Arch, but the issue I'm experiencing is probably simpler than I'm thinking it is.

I have my OS installed to an SSD drive (128GB). 

Here's the output of fdisk -l /dev/sdc:

Disk /dev/sdc: 119.2 GiB, 128035676160 bytes, 250069680 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: gpt
Disk identifier: 6AD36C61-4902-4579-901D-19CB2FC36064

Device         Start       End   Sectors  Size Type
/dev/sdc1       2048   1050623   1048576  512M EFI System
/dev/sdc2    1050624 125829119 124778496 59.5G Linux filesystem
/dev/sdc3  125829120 142606335  16777216    8G Linux swap

Here's what parted has to say (nothing I can see suggests unallocated space):

Model: ATA M4-CT128M4SSD2 (scsi)
Disk /dev/sdc: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  538MB   537MB   fat32                 boot, esp
 2      538MB   64.4GB  63.9GB  ext4
 3      64.4GB  73.0GB  8590MB  linux-swap(v1)

Can anyone shine some light onto what might be happening here?

Last edited by X04D (2017-01-07 21:09:50)

Offline

#2 2017-01-03 08:00:39

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: [SOLVED] Missing nearly half of my SSD space

try

sudo cgdisk

parted and fdisk tend to miss freespace on gpt

Offline

#3 2017-01-03 08:34:21

X04D
Member
Registered: 2008-01-20
Posts: 22

Re: [SOLVED] Missing nearly half of my SSD space

Docbroke wrote:

try

sudo cgdisk

parted and fdisk tend to miss freespace on gpt

Sorry, I don't seem to have the package for cgdisk, nor can I find it in pacman/AUR.

Offline

#4 2017-01-03 08:42:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: [SOLVED] Missing nearly half of my SSD space

gptfdisk package

Offline

#5 2017-01-03 14:02:33

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Missing nearly half of my SSD space

@X04D, you can search for packages which contain particular files using pacman or pkgfile.

https://wiki.archlinux.org/index.php/Pa … cific_file

Offline

#6 2017-01-03 15:42:12

frostschutz
Member
Registered: 2013-11-15
Posts: 1,658

Re: [SOLVED] Missing nearly half of my SSD space

use print free with parted to see unallocated

parted /dev/sdc unit mib print free

It looks like you indeed didn't partition all the available space.

You'll probably want to delete the swap partition, resize the ext4 partition to end-8GiB and create a new swap partition in the last 8GiB...

Last edited by frostschutz (2017-01-03 15:44:32)

Offline

#7 2017-01-04 21:19:35

X04D
Member
Registered: 2008-01-20
Posts: 22

Re: [SOLVED] Missing nearly half of my SSD space

Awesome, thanks guys.  Finding the unallocated space clarified it a lot. 

I turned swap off, deleted the partition with parted, resized the partition with parted, then used resize2fs.  Everything seems to have worked perfectly.

Thanks!

Offline

#8 2017-01-05 01:19:38

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: [SOLVED] Missing nearly half of my SSD space

nice, kindly mark this thread solved by prepending [solved] to the title, you can do this by editing your first post.

Offline

Board footer

Powered by FluxBB