Results 1 to 3 of 3

Thread: Change /tmp path on KDE as it is too small for KDE

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default Change /tmp path on KDE as it is too small for KDE

    Hi --

    Recently I've started working with fairly large image files using Krita (it's the only app I've found that will do 16-bit grayscale images). The problem with Krita is that you cannot tell it where to store temp files while you're working, and these files get quite large.

    I have two HDDs in this box; the boot disk is 80 mb and the slave is 160. Here's what df -h looks like:

    marc@machupo:~$ df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 259M 172M 73M 71% /
    tmpfs 1007M 0 1007M 0% /lib/init/rw
    udev 10M 112K 9.9M 2% /dev
    tmpfs 1007M 0 1007M 0% /dev/shm
    /dev/sda11 9.2G 596M 8.1G 7% /home
    /dev/sda9 33G 177M 31G 1% /opt
    /dev/sda8 373M 11M 343M 3% /tmp
    /dev/sda5 4.6G 2.8G 1.6G 65% /usr
    /dev/sda10 19G 186M 18G 2% /usr/local
    /dev/sda6 2.8G 315M 2.4G 12% /var
    /dev/hdb9 117G 12G 105G 10% /odisk/opt
    /dev/hdb7 953M 202M 752M 22% /odisk/home


    The slave disk currently is only mounted for the old /home (for stuff that hasn't yet been migrated) and for the /opt partition, which has a lot of stuff I want to keep.

    What I would like to do is take part of that old disk (from the /opt partition) and somehow convince this machine that it should use that as /tmp, at least for KDE sessions that I'm running.

    I've been poking around all over the place looking for an elegant and permanent way to do this, and haven't come across anything. I'm wondering whether any of you have any ideas.

    Thanks for any ideas!

    m

  2. #2
    Is that all you got? rockdalinux's Avatar
    Join Date
    May 2005
    Location
    Planet Vegeta
    Posts
    987
    Thanks
    27
    Thanked 71 Times in 62 Posts
    Rep Power
    19

    Default

    You can modify /etc/fstab file to point /tmp on /dev/sda9 and just create /opt on /. Make sure you comment out /tmp entry in a file and type the command mount -a

    Another option is set following variables
    Code:
    mkdir /opt/tmp
    export TMPDIR=/opt/tmp
    TMP is special values to indicate the users KDE temporary directory of the user, so enter:
    Code:
    mkdir /opt/tmp
    export TMP=/opt/tmp
    URL Restrictions
    Last edited by rockdalinux; 26th May 2008 at 03:24 AM.
    Rocky Jr.
    What's wrong? I hope I am not making you uncomfortable...

    Never send a boy to do a mans job.

  3. #3
    Junior Member
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default Thanks.

    What I did was brutally simple; I just wasn't thinking.

    I just changed fstab to point sda9 to /tmp and sda8 to /opt. I didn't have anything in the /opt partition on this box anyway (it's all in the /odisk/opt directory). That partition has 33gb on it, and that ought to be plenty...

    Thanks again.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How can I set Path in bash shell
    By chanderbio in forum Shell scripting
    Replies: 10
    Last Post: 29th March 2012, 10:37 PM
  2. how to change root password
    By sandromax in forum Solaris/OpenSolaris
    Replies: 4
    Last Post: 11th October 2007, 02:43 AM
  3. Small handy one liners
    By digen in forum Getting started tutorials
    Replies: 0
    Last Post: 7th February 2007, 03:40 PM
  4. How to Change Password
    By puppen in forum Linux software
    Replies: 6
    Last Post: 6th June 2006, 01:56 PM
  5. linux setting system-wide path
    By in forum Linux software
    Replies: 1
    Last Post: 28th January 2006, 11:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •