LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Change tmp directory (https://www.linuxquestions.org/questions/linux-newbie-8/change-tmp-directory-774010/)

driftboy 12-07-2009 11:36 AM

Change tmp directory
 
On Debian Standard System I would like to is change /tmp directory from it's original /dev/hda8 to destination /dev/hdd5

----

Code:

Disk /dev/hda: 6448 MB, 6448619520 bytes
255 heads, 63 sectors/track, 784 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0008e174

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1  *          1          43      345366  83  Linux
/dev/hda2              44        784    5952082+  5  Extended
/dev/hda5              44        456    3317391  83  Linux
/dev/hda6            457        711    2048256  83  Linux
/dev/hda7            712        760      393561  82  Linux swap / Solaris
/dev/hda8            761        784      192748+  83  Linux

Disk /dev/hdb: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2e2e2e2e

  Device Boot      Start        End      Blocks  Id  System
/dev/hdb1              1      14946  120053713+  83  Linux

Disk /dev/hdd: 60.0 GB, 60060155904 bytes
255 heads, 63 sectors/track, 7301 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x28d0e6e1

  Device Boot      Start        End      Blocks  Id  System
/dev/hdd1              1        3659    29390886  83  Linux
/dev/hdd2            3660        4267    4883760    5  Extended
/dev/hdd5            3660        4267    4883728+  83  Linux

----

Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
/dev/hda1      /              ext3    errors=remount-ro 0      1
/dev/hdb1      /backup        ext3    defaults        0      2
/dev/hdd1      /home          ext3    defaults        0      2
/dev/hda8      /tmp            ext3    defaults        0      2
/dev/hda5      /usr            ext3    defaults        0      2
/dev/hda6      /var            ext3    defaults        0      2
/dev/hda7      none            swap    sw              0      0
/dev/hdc        /media/cdrom0  udf,iso9660 user,noauto    0      0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0      0

----

If I change /dev/hda8 to /dev/hdd5 and reboot the startx command fails to run anyone know why

AlucardZero 12-07-2009 11:53 AM

No, because you haven't given us any useful information. Not even the messages you get when you run "startx"!

Disillusionist 12-07-2009 12:12 PM

As AlucardZero stated, all we can do is guess without any further information.

My guess is that there is a permissions related issue with the new filesystem.

Was this partition being used for anything else previously?

Have you mounted the new /tmp filesystem and checked the permissions against the old filesystem?

What error messages are you getting?

driftboy 12-07-2009 12:15 PM

Ok let me try again,
The /tmp directory on /dev/hda8 is to small and I need more storage. I want to make a /tmp directory on /dev/hdd5 because it has more storage but, If I edit my /etc/fstab so that my /tmp directory points to /dev/hdd5 instead of /dev/hda8 my xserver fails to start. Maybe it's a permission problem but I don't know how to fix it.

driftboy 12-07-2009 12:24 PM

Disillusionist - I want to burn a audio cd with the software GnomeBaker. GnomeBaker uses the /tmp directory for temporary holding the music data. Currently my /tmp directory isn't big enough.

forrestt 12-07-2009 12:27 PM

Try running the following as root.

Code:

chown root:root /tmp
chmod 1777 /tmp

HTH

Forrest

driftboy 12-07-2009 12:41 PM

Thanks guys that worked you're awesome :)

forrestt 12-07-2009 12:56 PM

Can you change the thread to solved then?

Thanks,

Forrest


All times are GMT -5. The time now is 09:34 AM.