root partition is to small

I have recently install OpenSuse 12.3 and with the flowing partitions : 1) /boot 250MB 2) / 10GB 3) swap 4GB 4) /home 90GB The problem is that now the / partion has only 1.7 GB free,and if i will install more software it will become full so I have download GParted live, created a bootable USB and tried to re-size /home partition to 60GB but then i can still not use the unallocated space for the / partition is telling me that 10 GB is maximum , what can I do ?

On 08/13/2013 06:36 PM, daniel 01 wrote:
> what can I do ?

-=WELCOME=- new poster, please tell us about your Linux experience
(because then we have a better idea at what level to provide
answers…i’m gonna assume you have LOTS of non-openSUSE Linux/*nix
like experience)

can i guess that you chose btrfs as the file system? and therefore
you have a huge group of file system ‘snapshots’ that you may or may
not need…

and, you might have a 10GB max due to where on the disk that
partition sits, and what is on each side of it…so, please show us
the terminal output and input, as well as the beginning prompt and
exit prompt, from


df -hlT
cat /etc/fstab
sudo /sbin/fdisk -l
/sbin/blkid

copy/paste the in/output back to this thread using the instructions
here: http://goo.gl/i3wnr


dd
http://tinyurl.com/DD-Caveat
http://tinyurl.com/DD-Complaints

I am not new to Linux, but I am not expert too, i know how to install remove software with zypper, navigate trough folders,use vim or nano…so i know just how to do basic stuff with terminal, yast.

Filesystem     Type      Size  Used Avail Use% Mounted on
devtmpfs       devtmpfs  1.9G  4.0K  1.9G   1% /dev
tmpfs          tmpfs     2.0G   84K  2.0G   1% /dev/shm
tmpfs          tmpfs     2.0G  3.4M  2.0G   1% /run
/dev/sda2      ext4      9.9G  8.5G  953M  91% /
tmpfs          tmpfs     2.0G     0  2.0G   0% /sys/fs/cgroup
tmpfs          tmpfs     2.0G  3.4M  2.0G   1% /var/lock
tmpfs          tmpfs     2.0G  3.4M  2.0G   1% /var/run
/dev/sda4      ext4       97G   28G   64G  30% /home
/dev/sda1      ext4      243M  106M  124M  47% /boot
dan@dan-pc:~> ^C
dan@dan-pc:~> cat /etc/fstab
/dev/disk/by-id/ata-Samsung_SSD_840_Series_S19HNEAD593636N-part3 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-Samsung_SSD_840_Series_S19HNEAD593636N-part2 /                    ext4       acl,user_xattr        1 1
/dev/disk/by-id/ata-Samsung_SSD_840_Series_S19HNEAD593636N-part1 /boot                ext4       acl,user_xattr        1 2
/dev/disk/by-id/ata-Samsung_SSD_840_Series_S19HNEAD593636N-part4 /home                ext4       acl,user_xattr        1 2
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
dan@dan-pc:~> sudo /sbin/fdisk -l
root's password:

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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: 0x000602b0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      514047      256000   83  Linux
/dev/sda2          514048    21479423    10482688   83  Linux
/dev/sda3        21479424    29863935     4192256   82  Linux swap / Solaris
/dev/sda4        29863936   234441647   102288856   83  Linux
dan@dan-pc:~>  /sbin/blkid                                                                                            
dan@dan-pc:~>  /sbin/blkid
dan@dan-pc:~> df -hlT
Filesystem     Type      Size  Used Avail Use% Mounted on
devtmpfs       devtmpfs  1.9G  4.0K  1.9G   1% /dev
tmpfs          tmpfs     2.0G   88K  2.0G   1% /dev/shm
tmpfs          tmpfs     2.0G  3.4M  2.0G   1% /run
/dev/sda2      ext4      9.9G  8.4G  968M  90% /
tmpfs          tmpfs     2.0G     0  2.0G   0% /sys/fs/cgroup
tmpfs          tmpfs     2.0G  3.4M  2.0G   1% /var/lock
tmpfs          tmpfs     2.0G  3.4M  2.0G   1% /var/run
/dev/sda4      ext4       97G   28G   64G  30% /home
/dev/sda1      ext4      243M  106M  124M  47% /boot
dan@dan-pc:~> cat /etc/fstab
/dev/disk/by-id/ata-Samsung_SSD_840_Series_S19HNEAD593636N-part3 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-Samsung_SSD_840_Series_S19HNEAD593636N-part2 /                    ext4       acl,user_xattr        1 1
/dev/disk/by-id/ata-Samsung_SSD_840_Series_S19HNEAD593636N-part1 /boot                ext4       acl,user_xattr        1 2
/dev/disk/by-id/ata-Samsung_SSD_840_Series_S19HNEAD593636N-part4 /home                ext4       acl,user_xattr        1 2
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
dan@dan-pc:~> sudo /sbin/fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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: 0x000602b0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      514047      256000   83  Linux
/dev/sda2          514048    21479423    10482688   83  Linux
/dev/sda3        21479424    29863935     4192256   82  Linux swap / Solaris
/dev/sda4        29863936   234441647   102288856   83  Linux


On 08/14/2013 09:16 AM, daniel 01 wrote:
> but I am not expert too

neither am i…read my sig ‘caveat’

my guess that you were using btrfs was wrong…instead you have
either installed a LOT of software or you have some stuff hanging
around just taking up space…

have you installed a lot of stuff?

here is what i would do:
-any big programs you never use? like if you never every use
LibreOffice, or GIMP or Firefox or maybe you have several multimedia
applications but always use VLC or games you are tired of and always
will be, or or or then just use YaST to uninstall them and see if
then you have enough room…

-suspect you have a log (or two) which is filling up due to some
problem: so, go to /var/log and look in /var/log/messages (and
others) for constantly repeating (hundreds or thousands) lines…that
would mean a problem you need to fix…if you don’t find problems
then is your logrotate set right…any HUGE files in there…

and, you can set your system to empty /tmp on every boot (it should
have stuff in it while the system is up, but (usually) it should be
emptied when the system is shutdown…have a look, any thing dated
before the last time you booted is probably something that should
have been deleted…
see
https://www.google.dk/search?q=site%3Aforums.opensuse.org+how-to+empty+OR+delete+"%2Ftmp"

-maybe you elected to save all rpms after YaST is finished with
installing them?

-maybe you aborted a install by ‘killing’ YaST or zypper? if so you
may have left a bunch of stuff hanging around in…hmmmm, i don’t
remember…hopefully others will give you better pointers…

plan ahead and do NOT just delete stuff without a “way back” if you
don’t have an off machine backup this is a GREAT time to burn a DVD
or data and stuff…


dd
http://tinyurl.com/DD-Caveat
http://tinyurl.com/DD-Complaints

On 2013-08-14 09:16, daniel 01 wrote:


>   Disk /dev/sda: 120.0 GB, 120034123776 bytes
>   255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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: 0x000602b0
>
>   Device Boot      Start         End      Blocks   Id  System
>   /dev/sda1   *        2048      514047      256000   83  Linux	===> /boot
>   /dev/sda2          514048    21479423    10482688   83  Linux	===> /
>   /dev/sda3        21479424    29863935     4192256   82  Linux swap / Solaris
>   /dev/sda4        29863936   234441647   102288856   83  Linux	===> /home

If you really want to expand root, one solution would be:

  • reduce size of /home from the end.
  • add a swap partition on that free space at the end
  • delete sda2
  • expand sda1 to take that space.

But that would be impossible - because you can only have 4 primary
partitions. Thus you would have to do instead:

  • delete sda2
  • expand sda1 to take that space.
  • reduce size of /home from the end.
  • add a swap partition on that free space at the end, which would take
    number ‘2’ - thus the table would be in a strange order, but no matter.

You need a specialized live CD to do all that. I think it is named
“parted live”.

I’m not familiar with them, but there may be tools able to shift
partitions around.


Cheers / Saludos,

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

I have an SSD, but anyway I wanted to give it my sister and I was left with 500 GB HDD so I downloaded clonzila live cloned SSD to HDD, I deleted the root partition from HDD and made a new part greater using Gparted Live then I cloned again only the root partition form the SSD to the new an bigger one on the HDD , all good :slight_smile: thank you for help, I use this distro as a desktop one so i have some programs instaled : PlayOnLinux, thunderbird, Diablo III … .so then 8 GB so take it as normal is it ?
Of course after cloning, there was a problem the fstab of the HDD was targeting to the SSD but i manualy modify it and all was ok again

On 2013-08-14 15:56, daniel 01 wrote:
>
> I have an SSD, but anyway I wanted to give it my sister and I was left
> with 500 GB HDD so I downloaded clonzila live cloned SSD to HDD, I
> deleted the root partition from HDD and made a new part greater using
> Gparted Live then I cloned again only the root partition form the SSD
> to the new an bigger one on the HDD , all good :slight_smile: thank you for help, I
> use this distro as a desktop one so i have some programs instaled :
> PlayOnLinux, thunderbird, Diablo III … .so then 8 GB so take it
> as normal is it ?

I have a lot more :slight_smile:

> Of course after cloning, there was a problem the fstab of the HDD was
> targeting to the SSD but i manualy modify it and all was ok again

Right!


Cheers / Saludos,

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

Good to hear you resolved your problem your way.

FYI
You can use gparted live to re-size <and> move (shift) partitions on a disk.
Sounds like you created space by shrinking your /home but because the /boot is between your / and new free space, / couldn’t expand and make use of the free space.

Typically(except special circumstances) you can only expand a partition to contiguous space, so the simple solution would have been to move the /boot partition to where it touches the /home partition, then the free space would be contiguous to /.

HTH
TSU