You are not logged in.

#1 2019-07-14 12:02:53

biesmir
Member
Registered: 2019-07-14
Posts: 6

only 8GB of 240GB partition aviable

HI!

I have recently installed arch on my older laptop.

I made 3 partitions with dos partition table:
100M sda1 for boot
235GB sda2 for /
3.5GB sda3 for swap

Both fdisk and gparted says it is 235GB partition but baobab and df says it is 8.4GB disc and its almost full.

Is this issue related to dos partition table or is it due to wrong system configuration?

Offline

#2 2019-07-14 12:10:57

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,515

Re: only 8GB of 240GB partition aviable

I made 3 partitions with dos partition table

What command / tool did you use ?

As root run

# lsblk -f
# fdisk -l

and post output.

If you're unsure how to get those outputs on the internet, see https://wiki.archlinux.org/index.php/Li … in_clients


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2019-07-14 12:51:17

biesmir
Member
Registered: 2019-07-14
Posts: 6

Re: only 8GB of 240GB partition aviable

What command / tool did you use ?

fdisk

# lsblk -f

NAME   FSTYPE LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINT
sda                                                                     
|-sda1 vfat         7FCE-9332                                           
|-sda2 ext4         b641b57e-830d-4d22-b696-c489bfd4e954   86.1M    94% /
`-sda3                                                                  
# fdisk -l

Disk /dev/sda: 223.58 GiB, 240057409536 bytes, 468862128 sectors
Disk model: KINGSTON SUV400S
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: 0x7df6a92d

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1  *         2048    206847    204800  100M 83 Linux
/dev/sda2          206848 461580287 461373440  220G 83 Linux
/dev/sda3       461580288 468862127   7281840  3.5G 83 Linux

Offline

#4 2019-07-14 13:21:57

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,515

Re: only 8GB of 240GB partition aviable

Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Those values match a drive using 4K sectors aka Advanced Format  .
Such drives often have big disadvantages when used with small files.

please post

dumpe2fs /dev/sda2 -h

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2019-07-14 15:38:44

biesmir
Member
Registered: 2019-07-14
Posts: 6

Re: only 8GB of 240GB partition aviable

please post

dumpe2fs /dev/sda2 -h
Filesystem volume name:   <none>
Last mounted on:          /
Filesystem UUID:          b641b57e-830d-4d22-b696-c489bfd4e954
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              524288
Block count:              2097152
Reserved block count:     104857
Free blocks:              132826
Free inodes:              330666
First block:              0
Block size:               4096
Fragment size:            4096
Group descriptor size:    64
Reserved GDT blocks:      1023
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Sat Jul 13 12:01:18 2019
Last mount time:          Thu Oct 25 18:05:50 2012
Last write time:          Thu Oct 25 18:05:50 2012
Mount count:              6
Maximum mount count:      -1
Last checked:             Wed Oct 24 18:05:24 2012
Check interval:           0 (<none>)
Lifetime writes:          8 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          256
Required extra isize:     32
Desired extra isize:      32
Journal inode:            8
First orphan inode:       8578
Default directory hash:   half_md4
Directory Hash Seed:      569e7bcb-23d3-418f-94d4-05dc767e18f3
Journal backup:           inode blocks
Checksum type:            crc32c
Checksum:                 0x749399f6
Journal features:         journal_incompat_revoke journal_64bit journal_checksum_v3
Journal size:             64M
Journal length:           16384
Journal sequence:         0x000009c1
Journal start:            1
Journal checksum type:    crc32c
Journal checksum:         0x4727b88a

Offline

#6 2019-07-14 16:57:29

loqs
Member
Registered: 2014-03-06
Posts: 19,101

Re: only 8GB of 240GB partition aviable

2097152×4096÷(1024×1024×1024)=8

The filesystem is 8GB in size while the partition is 235GB.  How did you create the filesystem?

Offline

#7 2019-07-14 17:04:44

biesmir
Member
Registered: 2019-07-14
Posts: 6

Re: only 8GB of 240GB partition aviable

I believe it was

 mkfs.ex4 /dev/sda2 

Offline

#8 2019-07-14 18:19:22

loqs
Member
Registered: 2014-03-06
Posts: 19,101

Re: only 8GB of 240GB partition aviable

Please ensure you have a backup of all the data and that sda2 is not mounted then the following should expand the filesystem to fill the partition.  Seem man resize2fs for more details.

resize2fs /dev/sda2

Offline

#9 2019-07-14 18:31:28

biesmir
Member
Registered: 2019-07-14
Posts: 6

Re: only 8GB of 240GB partition aviable

Please ensure you have a backup of all the data and that sda2 is not mounted then the following should expand the filesystem to fill the partition.  Seem man resize2fs for more details.

resize2fs /dev/sda2

Thanks, it worked out

Offline

#10 2019-07-14 18:36:40

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: only 8GB of 240GB partition aviable

Did you use to have some ext4 partition there before?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#11 2019-07-14 18:47:22

biesmir
Member
Registered: 2019-07-14
Posts: 6

Re: only 8GB of 240GB partition aviable

Did you use to have some ext4 partition there before?

yes, I had encrypted ext4 partition
It was about 230GB though

Offline

Board footer

Powered by FluxBB