Running out of space in /home folder

Hello everyone.

I recently been receiving notifications that my /home folder has 0% space left in MiB and that I need to take action (deleting files ofc) but I barely have anything on there with the exception of a few youtube vids. Is there a way to increase the size of my home folder? Also using 12.3 system which during installation I thought I had checked the option for a separate home partition.

Thanks

Please post the output of the following command in code tags! :slight_smile:

df -h

You can extend/move some partitions, though sometimes it can be a time consuming operating. It will always be risky, make sure you have external backups of all important data. That being said, it might not be required to mess with partitioning.

Edit: You can also use this command (don’t post the output here) to see what are the largest files in your home folder. Press q to exit the output of the command.

du ~/ | sort -rn | less
 

Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 1.9G  8.0K  1.9G   1% /dev
tmpfs                    1.9G  672K  1.9G   1% /dev/shm
tmpfs                    1.9G  6.0M  1.9G   1% /run
/dev/mapper/system-root   20G  5.8G   13G  31% /
tmpfs                    1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs                    1.9G  6.0M  1.9G   1% /var/lock
tmpfs                    1.9G  6.0M  1.9G   1% /var/run
/dev/mapper/system-home   25G   21G  3.0G  88% /home
/dev/sda1                152M  105M   39M  73% /boot


From your output your hard-drive is really quite small ~50G? Your root partition is 20Gb; which you could probably reduce to about 10Gb quite safely thus giving more room for your /home directory. I notice though that /home is far from empty as it contains 21Gb out of a partition size of 25Gb. So unless they are very huge youtube files there must be more data in there.

To recap, I would choose a / partition of about 10 leaving about 35Gb for /home. You can re-size etc but it maybe quicker to back up your data and do a fresh install.

Unless btrfs is the file system. I have heard that it will state it is full even when there isn’t enough data to fill it. I am not sure of the cause (or even if the user is using btrfs).

Thanks for the replies. To be honest I am not sure if btrfs is used as my filesystem, is there any way to check? This is a pretty new installation and I have the feeling that I may have to do a fresh install. Hopefully not.

fisk king1 wrote:
>
> Thanks for the replies. To be honest I am not sure if btrfs is used as
> my filesystem, is there any way to check? This is a pretty new
> installation and I have the feeling that I may have to do a fresh
> install. Hopefully not.
>
>
if you are using KDE Just click on Kinfoceneter/my computer and it will
tell you the file system your machine is using


GNOME 3.6.2
openSUSE Release 12.3 (Dartmouth) 64-bit
Kernel Linux 3.7.10-1.16-desktop

On Sat, 03 Aug 2013 01:36:03 +0000, fisk king1 wrote:

> To be honest I am not sure if btrfs is used as my filesystem, is there
> any way to check?

The output of the “mount” command will tell you.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 2013-08-03 01:16, Penguinclaw wrote:
> To recap, I would choose a / partition of about 10 leaving about 35Gb
> for /home. You can re-size etc but it maybe quicker to back up your data
> and do a fresh install.

It would be quicker to just use a symlinked directory on root to store
some files there, and delay reinstallation till next release :slight_smile:

(anyway, he has to make a backup to reinstall)


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))



systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/mapper/system-home on /home type ext4 (rw,relatime,data=ordered)
/dev/sda1 on /boot type ext4 (rw,relatime,data=ordered)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
gvfsd-fuse on /var/run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)


On 2013-08-03 18:16, fisk king1 wrote:
>
> hendersj;2576507 Wrote:
>> On Sat, 03 Aug 2013 01:36:03 +0000, fisk king1 wrote:
>>
>>> To be honest I am not sure if btrfs is used as my filesystem, is
>> there any way to check?
>>
>> The output of the “mount” command will tell you.

Root is missing here.

> Code:
> --------------------
> /dev/mapper/system-home on /home type ext4 (rw,relatime,data=ordered)
> /dev/sda1 on /boot type ext4 (rw,relatime,data=ordered)
> --------------------

You are using ext4, not btrfs. However, I think you are using encrypted
volumes or perhaps LVM (I’m not familiar with the later).


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

On Sat, 03 Aug 2013 16:16:08 +0000, fisk king1 wrote:

> /dev/mapper/system-home on /home type ext4 (rw,relatime,data=ordered)

ext4 is the file system used for /home on your system.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Yes the drive is encrypted. I chose the option to encrypt the drive during installation. Just funny how my hard drive is 465GiB guess the encryption took up alot of space (I guess). Thanks for the help everyone also.

a 100 meg video here a 100 meg video there pretty soon we are talking about some real space :slight_smile:

On 2013-08-04 03:46, fisk king1 wrote:

> Yes the drive is encrypted. I chose the option to encrypt the drive
> during installation. Just funny how my hard drive is 465GiB guess the
> encryption took up alot of space (I guess). Thanks for the help
> everyone also.

No, encryption takes no space at all, AFAIK.

You could post the output of “fdisk -l” and we’ll see about the
remaining space.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

>No, encryption takes no space at all, AFAIK.

>You could post the output of “fdisk -l” and we’ll see about the
>remaining space.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

No problem :). Hope this helps.

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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 identifier: 0x1a001f58

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      321535      159744   83  Linux
/dev/sda2          321536   976773119   488225792   8e  Linux LVM

Disk /dev/mapper/cr_ata-Hitachi_HTS545050B9A300_110618PBN408372XWU2E-part2: 499.9 GB, 499941113856 bytes
255 heads, 63 sectors/track, 60781 cylinders, total 976447488 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/mapper/system-home: 26.8 GB, 26843545600 bytes
255 heads, 63 sectors/track, 3263 cylinders, total 52428800 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/mapper/system-root: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 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/mapper/system-swap: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders, total 4194304 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


Your swap is kind of huge. at most should be 1 to 2 X memory up to about 4 Gig of memory tnen leave at about 4 gig unless you have extrodinary needs But it does not seem to be continues with the home partition so using any extra space from swap in home may not be easy

gogalthorp wrote:
> Your swap is kind of huge. at most should be 1 to 2 X memory up to about
> 4 Gig of memory tnen leave at about 4 gig unless you have extrodinary
> needs But it does not seem to be continues with the home partition so
> using any extra space from swap in home may not be easy

Err, did you misread the fdisk, or did I? The swap looks to me to be 2
GB, which seems reasonable. And it’s all on LVM so there’s no need for
partitioning or for space to be contiguous.

I don’t understand the system layout. What is

/dev/mapper/cr_ata-Hitachi_HTS545050B9A300_110618PBN408372XWU2E-part2

That takes up almost the whole of the disk and isn’t listed anywhere.
Fisk King1, please provide more description of how your system is set up.

Also, I’d suggest posting the output of

pvscan
vgscan
lvscan

On 2013-08-06 10:58, Dave Howorth wrote:

> I don’t understand the system layout. What is
>
> /dev/mapper/cr_ata-Hitachi_HTS545050B9A300_110618PBN408372XWU2E-part2
>
> That takes up almost the whole of the disk and isn’t listed anywhere.

It is the encrypted volume. It is LVM on top of an encrypted volume, or
the other way round (I don’t have that clear). Both should occupy almost
500 GB, the same space. Home, swap, system, should be inside the LVM,
and thus modifiable.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

Carlos E. R. wrote:
> On 2013-08-06 10:58, Dave Howorth wrote:
>
>> I don’t understand the system layout. What is
>>
>> /dev/mapper/cr_ata-Hitachi_HTS545050B9A300_110618PBN408372XWU2E-part2
>>
>> That takes up almost the whole of the disk and isn’t listed anywhere.
>
> It is the encrypted volume. It is LVM on top of an encrypted volume, or
> the other way round (I don’t have that clear). Both should occupy almost
> 500 GB, the same space. Home, swap, system, should be inside the LVM,
> and thus modifiable.

So from the sound of it, all the OP needs to do is extend the home LV,
grow the filesystem inside it and he’s done. But I don’t understand
enough about the encryption moving parts to know how that is done.