"Out of disk space" warning

I am getting the ‘out of disk space’ warning for my ‘/’ partition.
I’m hoping there is a way I can either delete files that are not needed, or reallocate space that is not needed on other partitions.
I’m running opensuse 11.2 (using the LXDE desktop) on an old notebook with a P3 processor and 512 of ram, with a 25GB hard drive.
Can anyone help?
Here are the results of “df -h”

linux-64wt:/home/david # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 5.0G 4.5G 208M 96% /
udev 250M 164K 250M 1% /dev
/dev/sda7 6.6G 1.8G 4.5G 29% /home
/dev/sda1 3.0G 2.6M 3.0G 1% /windows/C

I don’t need the windows partition at all so I could delete it and use it, if I knew how.
Also, I’ve got a 25GB hard drive here, so I’m not sure why its full capacity is not shown above.
In advance, thanks for the help.
Dave

What would be helpful is to see all the partitions, we can see that if you open a terminal and become su and do:

fdisk -l

Become su in Terminal - HowTo - openSUSE Forums

Sure…
Here are the results:

linux-64wt:/home/david # fdisk -l

Disk /dev/sda: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0007b3f1

Device Boot Start End Blocks Id System
/dev/sda1 1 393 3148740 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 812 2432 13020651+ f W95 Ext’d (LBA)
/dev/sda5 812 907 771088+ 82 Linux swap / Solaris
/dev/sda6 908 1560 5245191 83 Linux
/dev/sda7 1561 2432 7004308+ 83 Linux
linux-64wt:/home/david #

Oops! I see that the HD is actually only 20GB…

It’s messy.
You see the 393 on sda1 thats the end point you have on that partition

sda2 though does not start at 393 it has 812 as start so you have load of missing space.

You can either try and manage this in a utility disk like Parted Magic or you rip it up and start again.

Here is a nice example of a layout for you to see. Not to copy but just so you get the idea

/dev/sda1 * 1 9017 68163763+ 7 HPFS/NTFS
/dev/sda2 9017 11235 16771829 83 Linux
/dev/sda3 11235 20674 71352666+ f W95 Ext’d (LBA)
/dev/sda5 11235 11651 3140676 82 Linux swap / Solaris
/dev/sda6 11651 20674 68211958+ 83 Linux

It looks like you only have 5 gig for your root. That is just about room for the basic system. You can delete things from the tmp directory but that will just delay the problem. You could uninstall packages you don’t need also.

Resizing and moving partitions is tricky. IMO you should simply start over and set the partitions to reasonable sizes. This can be done at the install partition scheme. Backup anything you may have of importance before reinstalling,

ddmccarthy062577 wrote:

>
> Sure…
> Here are the results:
>
> linux-64wt:/home/david # fdisk -l
>
> Disk /dev/sda: 20.0 GB, 20003880960 bytes
> 255 heads, 63 sectors/track, 2432 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk identifier: 0x0007b3f1
>
> Device Boot Start End Blocks Id System
> /dev/sda1 1 393 3148740 7 HPFS/NTFS
> Partition 1 does not end on cylinder boundary.
> /dev/sda2 * 812 2432 13020651+ f W95 Ext’d
> (LBA)
> /dev/sda5 812 907 771088+ 82 Linux swap /
> Solaris
> /dev/sda6 908 1560 5245191 83 Linux
> /dev/sda7 1561 2432 7004308+ 83 Linux
> linux-64wt:/home/david #
>
> Oops! I see that the HD is actually only 20GB…

When you say you don’t need the Windows partitions, do you mean to say that
you could discard everything on them? You have two primaries for Win (sda1
and sda2) but we have no idea of how full that fat32 partition at sda2 is
since it isn’t mounted but it is occupying a (relatively) large of your
drive. If you remove BOTH of the Win partitions and combine them into a
single partition as sda1 that will give you roughly 10GB for sda1 - that
should be enough for a comfortable / partition. If you reinstall to sda1
and KEEP YOUR CURRENT /home, you will retain all your Linux user data and
settings.

Something isn’t adding up here. Based on the reported sizes of the mounted
partitions from df and the reported block counts from fdisk, you do have in
excess of 20GB on the drive. df reports sda1 as 3GB in what fdisk shows to
be 3,148,740 blocks. Using that as an approximation, the sda2 with
13,020,651 blocks should yield 12.4GB which, if mounted, would show a total
of 25GB ±. That would mean you have give or take 15GB available if you
wipe sda1 and sda2. Like I say, something isn’t adding up but I doubt that
is fatal ;-). Wipe sda1 and sda2, create a new sda1 with all the space
shown. You can do the creation and formatting of the new sda1 during
installation. Just be sure that you use the existing /home (sda7) when you
install and you should be off and running.


Will Honea

On 12/13/2009 01:21 PM, Will Honea wrote:
> ddmccarthy062577 wrote:
>
>>
>> Sure…
>> Here are the results:
>>
>> linux-64wt:/home/david # fdisk -l
>>
>> Disk /dev/sda: 20.0 GB, 20003880960 bytes
>> 255 heads, 63 sectors/track, 2432 cylinders
>> Units = cylinders of 16065 * 512 = 8225280 bytes
>> Disk identifier: 0x0007b3f1
>>
>> Device Boot Start End Blocks Id System
>> /dev/sda1 1 393 3148740 7 HPFS/NTFS
>> Partition 1 does not end on cylinder boundary.
>> /dev/sda2 * 812 2432 13020651+ f W95 Ext’d
>> (LBA)
>> /dev/sda5 812 907 771088+ 82 Linux swap /
>> Solaris
>> /dev/sda6 908 1560 5245191 83 Linux
>> /dev/sda7 1561 2432 7004308+ 83 Linux
>> linux-64wt:/home/david #
>>
>> Oops! I see that the HD is actually only 20GB…
>
> When you say you don’t need the Windows partitions, do you mean to say that
> you could discard everything on them? You have two primaries for Win (sda1
> and sda2) but we have no idea of how full that fat32 partition at sda2 is
> since it isn’t mounted but it is occupying a (relatively) large of your
> drive. If you remove BOTH of the Win partitions and combine them into a
> single partition as sda1 that will give you roughly 10GB for sda1 - that
> should be enough for a comfortable / partition. If you reinstall to sda1
> and KEEP YOUR CURRENT /home, you will retain all your Linux user data and
> settings.
>
> Something isn’t adding up here. Based on the reported sizes of the mounted
> partitions from df and the reported block counts from fdisk, you do have in
> excess of 20GB on the drive. df reports sda1 as 3GB in what fdisk shows to
> be 3,148,740 blocks. Using that as an approximation, the sda2 with
> 13,020,651 blocks should yield 12.4GB which, if mounted, would show a total
> of 25GB ±. That would mean you have give or take 15GB available if you
> wipe sda1 and sda2. Like I say, something isn’t adding up but I doubt that
> is fatal ;-). Wipe sda1 and sda2, create a new sda1 with all the space
> shown. You can do the creation and formatting of the new sda1 during
> installation. Just be sure that you use the existing /home (sda7) when you
> install and you should be off and running.

Please note that sda2 is an extended partition, which is a container
that holds sda5, 6, and 7. It does not count when you add up the
space. Ignore most of the advice given by Will Honea. He missed that
point.

Larry Finger wrote:

> On 12/13/2009 01:21 PM, Will Honea wrote:
>> ddmccarthy062577 wrote:
>>
>>>
>>> Sure…
>>> Here are the results:
>>>
>>> linux-64wt:/home/david # fdisk -l
>>>
>>> Disk /dev/sda: 20.0 GB, 20003880960 bytes
>>> 255 heads, 63 sectors/track, 2432 cylinders
>>> Units = cylinders of 16065 * 512 = 8225280 bytes
>>> Disk identifier: 0x0007b3f1
>>>
>>> Device Boot Start End Blocks Id System
>>> /dev/sda1 1 393 3148740 7 HPFS/NTFS
>>> Partition 1 does not end on cylinder boundary.
>>> /dev/sda2 * 812 2432 13020651+ f W95 Ext’d
>>> (LBA)
>>> /dev/sda5 812 907 771088+ 82 Linux swap /
>>> Solaris
>>> /dev/sda6 908 1560 5245191 83 Linux
>>> /dev/sda7 1561 2432 7004308+ 83 Linux
>>> linux-64wt:/home/david #
>>>
>>> Oops! I see that the HD is actually only 20GB…
>>
>> When you say you don’t need the Windows partitions, do you mean to say
>> that you could discard everything on them? You have two primaries for Win
>> (sda1 and sda2) but we have no idea of how full that fat32 partition at
>> sda2 is since it isn’t mounted but it is occupying a (relatively) large
>> of your
>> drive. If you remove BOTH of the Win partitions and combine them into a
>> single partition as sda1 that will give you roughly 10GB for sda1 - that
>> should be enough for a comfortable / partition. If you reinstall to sda1
>> and KEEP YOUR CURRENT /home, you will retain all your Linux user data and
>> settings.
>>
>> Something isn’t adding up here. Based on the reported sizes of the
>> mounted partitions from df and the reported block counts from fdisk, you
>> do have in
>> excess of 20GB on the drive. df reports sda1 as 3GB in what fdisk shows
>> to
>> be 3,148,740 blocks. Using that as an approximation, the sda2 with
>> 13,020,651 blocks should yield 12.4GB which, if mounted, would show a
>> total of 25GB ±. That would mean you have give or take 15GB available if
>> you
>> wipe sda1 and sda2. Like I say, something isn’t adding up but I doubt
>> that
>> is fatal ;-). Wipe sda1 and sda2, create a new sda1 with all the space
>> shown. You can do the creation and formatting of the new sda1 during
>> installation. Just be sure that you use the existing /home (sda7) when
>> you install and you should be off and running.
>
> Please note that sda2 is an extended partition, which is a container
> that holds sda5, 6, and 7. It does not count when you add up the
> space. Ignore most of the advice given by Will Honea. He missed that
> point.

Right you - I’m so used to 3 or 4 primaries (my habits) that I forgot that
the extended partition uses a slot in the Master Partition Table and it’s
number can actually be anything in the range 1-4. Apologies for any
confusion.


Will Honea