LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-25-2009, 02:55 AM   #1
markw10
Member
 
Registered: Oct 2006
Posts: 112

Rep: Reputation: 15
Mandriva saying temp directory is out of space


I have Mandriva Linux 2009 PowerPack on a ASUS eeePC 1000HE which i installed about 2 weeks ago. I am using the KDE 3.5 desktop and the system has 2GB Memory, 160GB Hard Drive space. As far as I remember I used all default install options when I installed.

Tonight i tried to install some system updated but shortly after it started it gave errors that there was not enough space. I then tried to reboot and it said "Temp directory /tmp) is out of disk space. KDE is unable to start.

I know with linux there are 3 partitions, swap, and something like a partition for programs and data. Would this have to do anything with it? Or is there a temp directory somewhere that ran out of space. How do i fix this issue? I am new to Linux so don't know a lot and can't even boot into this system now. How would I fix a problem like this?
 
Old 04-25-2009, 02:59 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
what is the output from
Code:
df -h
 
Old 04-25-2009, 03:02 AM   #3
markw10
Member
 
Registered: Oct 2006
Posts: 112

Original Poster
Rep: Reputation: 15
How do I enter that command? I can't log into KDE.
 
Old 04-25-2009, 03:04 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
press CTRL_ALT_F1 to go to the terminal
login and type the command
 
Old 04-25-2009, 03:14 AM   #5
markw10
Member
 
Registered: Oct 2006
Posts: 112

Original Poster
Rep: Reputation: 15
Thanks. I just did that and got the following:

Size Used Avail Use Mounted On
dev/sda1 7.7G 7.4G 0 100% /
dev/sda6 136G 345M 135G 1% /home


First, I know there should be 3 partitions, one swap, root, and then home if I'm correct. Would the swap simply not be shown here?
Also, seems the problem is sda1 is out of space. Would this be normal? This is a basic Mandriva PowerPack install with no extra programs installed.
Is there something that could be taking all the extra space or do I even need to change the size of the sda1 partition. If so, is there a way to change the partition sizes? I don't want to have to do a complete reinstall.
 
Old 04-25-2009, 03:41 AM   #6
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
The first solution that comes to mind (if you have access to another computer that is running OK) is to download the System Rescue CD, burn it to a disk, then boot your troubled computer using the System Rescue CD. Run Gparted to re-size your partitions.

System Rescue CD is a Live CD which includes several essential System Recovery (Disaster Recovery) utilities, one of which is Gparted.

Gparted is an Open Source Graphical Partition Manager, similar in use to Partition Magic. It can non-destructively enlarge, shrink, relocate (move), or copy partitions.

System Rescue CD has saved my bacon more than once, and I think it is a must have tool for any one who maintains one or more computer(s).

HTH,
 
Old 04-25-2009, 03:45 AM   #7
markw10
Member
 
Registered: Oct 2006
Posts: 112

Original Poster
Rep: Reputation: 15
I'm downloading the System Rescue CD now. What is a good size to make the root partition? Is it normal for it to fill up that fast at 7.7GB with just a basic Mandriva PowerPack Install?
 
Old 04-25-2009, 04:17 AM   #8
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
I have never had this trouble here (the "/" partition running out of space). If the system is reporting that the /temp directory is out of space, then something more than a too small root partition is happening.

As a first step, re-size your root partition (/dev/sda1) to about 10G.

Then, when you are able to boot the system, check that the logrotate package is installed. It should have been installed by default because it is a required base system package. If it is not installed, install it using the package manager. If it is installed, in a terminal wondow (as root) you can run the following command to insure it is correctly installed (force re-installation):
Code:
urpmi --replacepkgs logrotate
Finally, I would check the system log files to see what is causing them to grow so large so fast that logrotate has not kept up.

You can view your system logs in MCC > System > View and search system logs (MCC is the Mandriva Control Center which can be found in the menu system at Tools > System Tools > Configure your computer)

HTH,
 
Old 04-25-2009, 04:22 AM   #9
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 267

Rep: Reputation: 69
Quote:
Originally Posted by markw10 View Post
I'm downloading the System Rescue CD now. What is a good size to make the root partition? Is it normal for it to fill up that fast at 7.7GB with just a basic Mandriva PowerPack Install?
The most common reason for / being full is that you selected the option to copy the DVD to the hard drive during installation. You could log in to a console as root and move the contents of /var/ftp/pub to a directory in your /home partition. Then edit your media sources to point to the new location.

Jim
 
Old 04-25-2009, 04:26 AM   #10
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 267

Rep: Reputation: 69
Quote:
Originally Posted by ernie View Post
If the system is reporting that the /temp directory is out of space, then something more than a too small root partition is happening.
That is the error message that many people see when / is full. It is a common problem, due to automatic partitioning creating a / partition that is too small.

Jim
 
Old 04-25-2009, 07:46 AM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
I'm downloading the System Rescue CD now. What is a good size to make the root partition? Is it normal for it to fill up that fast at 7.7GB with just a basic Mandriva PowerPack Install?
Please make sure to have a backup of your important files.
Take a look in your /var directory, and delete all rotated logs.
 
Old 04-26-2009, 03:32 AM   #12
markw10
Member
 
Registered: Oct 2006
Posts: 112

Original Poster
Rep: Reputation: 15
I think that's the problem. When I did an install I remember copying the DVD to my hard drive.
I downloaded the System Rescue CD and ran GParted. I removed from space from /dev/sda6 ext3 so that I have some free space. I probably removed more than I needed to but here is what GParted is currently showing:

/dev/sda1 ext3 7.81GB
/dev/sda2 ext 141.24
/dev/sda5 linux-swap 3.90
/dev/sda6 ext3 98.28
unallocated 39.06

Once I had the unallocated space I figured it would let me move that space onto /dev/sda1. Unfortunately it won't let me add there but only in /dev/sda5 or /dev/sda6. Is there a way I can move that space to /dev/sda1?
 
Old 04-26-2009, 12:31 PM   #13
markw10
Member
 
Registered: Oct 2006
Posts: 112

Original Poster
Rep: Reputation: 15
I didn't make this clear in my last post but it seems part of the problem is other than the root the other partitions are all on an extended partition and that it's now allowing me to move hard drive space between the extended partition and root. Is this possible?
I don't want to have to reinstall Mandriva again. If necessary are there other tools I can use to even do a backup of my hard drive and then repartition and then restore from my backup?
 
Old 04-26-2009, 03:26 PM   #14
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 267

Rep: Reputation: 69
In order to assign free space to an existing partition, the free space would have to be contiguous with that partition. (Unless you use LVM, which is not used by default in Mandriva.) It doesn't matter that the free space was previously assigned to an extended partition. Free space is not associated with any partition.

Jim
 
Old 04-26-2009, 05:37 PM   #15
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: pclinuxos
Posts: 3,404
Blog Entries: 33

Rep: Reputation: 222Reputation: 222Reputation: 222
Hi Markw10, it seems you have been mislead by the system,

Of course you know that a dvd(when full) has about 4.4 gig of data,

During the install it was copied to /var/ftp/pub/(mand...)

Now your root partition only has 3 gig left for all of you system files.

The easiest way to get around this, imo, is to login as root to a shell (no gui)

then move the dvd copy to /home/user/ or just delete it for now, you can fix (relocate or copy) that later.

To delete it type at a prompt...careful with this command!.... ;-)

rm -rf /var/ftp/pub/

That will give you some space for the "dynamic" /tmp dir. (which contains the rubbish-bin too)

Personally, I set the /tmp dir as a partition of it's own, and large enough to deal with the largest file I might delete

like a dvd iso, for instance.

But if you go and adjust your partitions there is a good chance your system won't boot,

because the partition numbers may be different.

So it may be better for you to plan before you install next time. You still want 7 to 8 gig for /

but add the dvd space for /var/ftp/pub. (or make a partition for that too,) Should be sweet.

Any time you reinstall for some reason, the system will require that you format / and /usr

you can avoid loss of data by having separate partitions for some of the other directories.

Regards Glenn


ps, I have a 160Gb and a 250Gb harddrives

/etc/fstab
Code:
# Entry for /dev/sda6 :
UUID=3c8377b4-333d-4c63-a318-a19fdb271d95 / ext3 relatime 1 1
# Entry for /dev/sda5 :
UUID=37a77644-9a61-4124-8c94-ed4f0efdccc7 /boot ext3 relatime 1 2
# Entry for /dev/sdb10 :
UUID=2d7c228a-3eba-4b81-8f10-10dd9cfdea17 /home ext3 relatime 1 2
# Entry for /dev/sda13 :
UUID=13e6a9b5-a63a-459f-8132-19502ed2b9ef /home/glenn/local/Archive ext3 relatime 1 2
# Entry for /dev/sdb6 :
UUID=78461ae8-382a-478f-bd11-8ab1f7924997 /home/glenn/local/Music ext3 relatime 1 2
# Entry for /dev/sda14 :
UUID=9c4191d3-fb21-4a46-af4c-19644c987a0c /home/glenn/local/ardour ext3 relatime 1 2
# Entry for /dev/sda15 :
UUID=27ceb992-e240-437c-9ca2-d1733b72f6c1 /home/glenn/local/ardour/user ext3 relatime 1 2
# Entry for /dev/sda8 :
UUID=19ef9114-8159-47f4-ac58-c2d0a0870f21 /local/vm1 ext3 relatime 1 2
# Entry for /dev/sdb7 :
UUID=aa6e22ec-cb35-4a2a-8367-38c58c22b2a6 /local/vm2 ext3 relatime 1 2
/dev/cdrom /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
/dev/fd0 /media/floppy auto umask=0,users,iocharset=utf8,noauto,exec,flush 0 0
# Entry for /dev/sda1 :
UUID=B6A4B22FA4B1F1CB /mnt/win_c ntfs-3g defaults 0 0
# Entry for /dev/sdb8 :
UUID=4807-901A /mnt/win_c2 vfat umask=0,iocharset=utf8 0 0
# Entry for /dev/sda11 :
UUID=4807-8FD4 /mnt/win_d vfat umask=0,iocharset=utf8 0 0
# Entry for /dev/sdb9 :
UUID=49A7-8385 /mnt/win_d2 vfat umask=0,iocharset=utf8 0 0
# Entry for /dev/sdb12 :
UUID=dbe31708-7a7e-4b85-b731-3a57f45b79a1 /opt ext3 relatime 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda10 :
UUID=418719be-da65-47da-8c78-75fb30d97ac9 /tmp ext3 relatime 1 2
# Entry for /dev/sda9 :
UUID=7dd7d32a-24ea-412d-9ef7-4c21905f4dad /usr ext3 relatime 1 2
# Entry for /dev/sdb11 :
UUID=7d635ede-529f-44c1-8e73-861934a28b66 /usr/local ext3 relatime 1 2
# Entry for /dev/sda7 :
UUID=0f89775d-542a-4a7b-b0d9-f3296236d035 /var ext3 relatime 1 2
# Entry for /dev/sda12 :
UUID=eb745cd1-bc46-4d10-bbc9-75d35b7de22b /var/ftp ext3 relatime 1 2
# Entry for /dev/sdb5 :
UUID=ad0fb4b5-4361-401a-b035-2a37d9bdbe09 /var/www ext3 relatime 1 2
# Entry for /dev/sdb2 :
UUID=24eda376-9395-4881-a4f6-2e0c6e624b74 swap swap defaults 0 0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/temp directory gone in fedora 10? Nagglfar Linux - Newbie 2 03-10-2009 12:14 PM
How does MLDonkey's 'temp' directory work? Aeiri Linux - General 0 06-12-2004 12:53 AM
Bottom bar that give CPU temp, space, etc. oicdn Linux - Software 1 12-31-2003 10:32 PM
wine error 101 (temp. space) on redhat9 pensil2b Linux - Software 1 12-21-2003 05:24 PM
Deleting temp install directory? Ed-Slack Linux - General 1 01-05-2003 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration