Disk resizing

hi,
i am looking to resize /user but i can’t figure out how to unmount it.
also can someone give me the commandline and complete steps to expand the /user to 88 GB?

thanks,
Nathan Saunders

Are you sure you have a fiile system on a mountpoint named /user?
Please post

mount | grep '^/dev'

And I see you are new here (welcome!), thus i want to point you to ahidden, buut much used Feature on the forums:
Please CODE tags around copied/pasted computer text in a post. It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is including the prompt, the command, the output and the next prompt.

/dev/sda2 on / type btrfs (rw,relatime,space_cache,subvolid=258,subvol=/.snapshots/1/snapshot)
/dev/sda2 on /var/lib/named type btrfs (rw,relatime,space_cache,subvolid=270,subvol=/var/lib/named)
/dev/sda2 on /var/lib/libvirt/images type btrfs (rw,relatime,space_cache,subvolid=266,subvol=/var/lib/libvirt/images)
/dev/sda2 on /var/crash type btrfs (rw,relatime,space_cache,subvolid=265,subvol=/var/crash)
/dev/sda2 on /srv type btrfs (rw,relatime,space_cache,subvolid=262,subvol=/srv)
/dev/sda2 on /var/spool type btrfs (rw,relatime,space_cache,subvolid=274,subvol=/var/spool)
/dev/sda2 on /var/lib/mariadb type btrfs (rw,relatime,space_cache,subvolid=268,subvol=/var/lib/mariadb)
/dev/sda2 on /boot/grub2/i386-pc type btrfs (rw,relatime,space_cache,subvolid=259,subvol=/boot/grub2/i386-pc)
/dev/sda2 on /boot/grub2/x86_64-efi type btrfs (rw,relatime,space_cache,subvolid=260,subvol=/boot/grub2/x86_64-efi)
/dev/sda2 on /var/lib/mailman type btrfs (rw,relatime,space_cache,subvolid=267,subvol=/var/lib/mailman)
/dev/sda2 on /var/opt type btrfs (rw,relatime,space_cache,subvolid=273,subvol=/var/opt)
/dev/sda2 on /usr/local type btrfs (rw,relatime,space_cache,subvolid=264,subvol=/usr/local)
/dev/sda2 on /.snapshots type btrfs (rw,relatime,space_cache,subvolid=257,subvol=/.snapshots)
/dev/sda2 on /opt type btrfs (rw,relatime,space_cache,subvolid=261,subvol=/opt)
/dev/sda2 on /var/lib/pgsql type btrfs (rw,relatime,space_cache,subvolid=271,subvol=/var/lib/pgsql)
/dev/sda2 on /var/tmp type btrfs (rw,relatime,space_cache,subvolid=275,subvol=/var/tmp)
/dev/sda2 on /tmp type btrfs (rw,relatime,space_cache,subvolid=263,subvol=/tmp)
/dev/sda2 on /var/log type btrfs (rw,relatime,space_cache,subvolid=272,subvol=/var/log)
/dev/sda2 on /var/lib/mysql type btrfs (rw,relatime,space_cache,subvolid=269,subvol=/var/lib/mysql)
/dev/sda3 on /home type xfs (rw,relatime,attr2,inode64,noquota)
/dev/sr0 on /run/media/nathan/openSUSE-Tumbleweed-DVD-x86_6400 type iso9660 (ro,nosuid,nodev,relatime,uid=1000,gid=100,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks2)
/dev/sr0 on /var/run/media/nathan/openSUSE-Tumbleweed-DVD-x86_6400 type iso9660 (ro,nosuid,nodev,relatime,uid=1000,gid=100,iocharset=utf8,mode=0400,dmode=0500)

what i really want is more space because the system is reporting that this is less then a 1 GB of space left so i am guessing it’s /user that needs to be increased

I conclude that you have /dev/sda2 mounted on / and /dev/sda3 mounted on /home. Can not find any mentioning of /user. Are you sure you created that, It is not made by default during installation.

When you say “the system is reporting” you better be more specific. Which componend reports when you do what. When possible post of the message.

I see two most likely possibilities here

  1. there is a file system that is nearly full, to check that post
df -h
  1. you use snapper on your btrfs file system and it filled the space with snapshots, removee snapshots and maybe switch off snapper (when you do not know how to do it, wait for a snapper user, I do not use it).

PS. Please post complete, including prompts and command as asked above.

low disk space on root file system error


Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        363M     0  363M   0% /dev
tmpfs           371M  168K  371M   1% /dev/shm
tmpfs           371M   30M  341M   9% /run
tmpfs           371M     0  371M   0% /sys/fs/cgroup
/dev/sda2        11G  9.4G  148K 100% /
/dev/sda2        11G  9.4G  148K 100% /var/tmp
/dev/sda2        11G  9.4G  148K 100% /var/spool
/dev/sda2        11G  9.4G  148K 100% /var/lib/named
/dev/sda2        11G  9.4G  148K 100% /var/opt
/dev/sda2        11G  9.4G  148K 100% /var/lib/mailman
/dev/sda2        11G  9.4G  148K 100% /var/log
/dev/sda2        11G  9.4G  148K 100% /boot/grub2/x86_64-efi
/dev/sda2        11G  9.4G  148K 100% /var/lib/mysql
/dev/sda2        11G  9.4G  148K 100% /opt
/dev/sda2        11G  9.4G  148K 100% /var/lib/pgsql
/dev/sda2        11G  9.4G  148K 100% /boot/grub2/i386-pc
/dev/sda2        11G  9.4G  148K 100% /.snapshots
/dev/sda2        11G  9.4G  148K 100% /srv
/dev/sda2        11G  9.4G  148K 100% /var/lib/mariadb
/dev/sda2        11G  9.4G  148K 100% /tmp
/dev/sda2        11G  9.4G  148K 100% /var/crash
/dev/sda2        11G  9.4G  148K 100% /var/lib/libvirt/images
/dev/sda2        11G  9.4G  148K 100% /usr/local
/dev/sda3       8.9G  1.4G  7.6G  16% /home
tmpfs            75M   16K   75M   1% /run/user/1000
/dev/sr0        4.3G  4.3G     0 100% /run/media/nathan/openSUSE-Tumbleweed-DVD-x86_6400


Note all those except home are on root partition. BTRFS sets up mount points for common directories but they are all o a single BTRFS partition.

Probable reason for out of space is snapper. But it looks like you only allocated 11 gigs for root. That is far too small. Recommended for BTRFS is 40 gig and for ext4 is 20-30 gig.

Show us fdisk -l

You would have to increase the root partition (/) But you have to have space to expand into since partitions must be continues sections of the drive.

I completely agree with gogalthorpe.

Disk /dev/sda: 100 GiB, 107374182400 bytes, 209715200 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: dos
Disk identifier: 0x6e69e6a3

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sda1           2048  2281471  2279424  1.1G 82 Linux swap / Solaris
/dev/sda2  *     2281472 23261183 20979712   10G 83 Linux
/dev/sda3       23261184 41943039 18681856  8.9G 83 Linux

kinda funny as i have it running under vmware fusion so i had it set the drive size and then had suse c.d. set the defaults for it’s install and expected it to jest work.

Well you should always double check the partition scheme… Installing in a VM may be different then installing to hardware. But when installing any OS never just breeze past all the screens read and understand them before proceeding