LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 12-07-2009, 11:36 AM   #1
driftboy
Member
 
Registered: Dec 2006
Location: USA
Distribution: Debian etch 4.0 net installed
Posts: 79

Rep: Reputation: 16
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
 
Old 12-07-2009, 11:53 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,570

Rep: Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510
No, because you haven't given us any useful information. Not even the messages you get when you run "startx"!
 
Old 12-07-2009, 12:12 PM   #3
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
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?

Last edited by Disillusionist; 12-07-2009 at 12:13 PM.
 
Old 12-07-2009, 12:15 PM   #4
driftboy
Member
 
Registered: Dec 2006
Location: USA
Distribution: Debian etch 4.0 net installed
Posts: 79

Original Poster
Rep: Reputation: 16
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.
 
Old 12-07-2009, 12:24 PM   #5
driftboy
Member
 
Registered: Dec 2006
Location: USA
Distribution: Debian etch 4.0 net installed
Posts: 79

Original Poster
Rep: Reputation: 16
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.

Last edited by driftboy; 12-07-2009 at 12:30 PM.
 
Old 12-07-2009, 12:27 PM   #6
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Try running the following as root.

Code:
chown root:root /tmp
chmod 1777 /tmp
HTH

Forrest
 
Old 12-07-2009, 12:41 PM   #7
driftboy
Member
 
Registered: Dec 2006
Location: USA
Distribution: Debian etch 4.0 net installed
Posts: 79

Original Poster
Rep: Reputation: 16
Thanks guys that worked you're awesome
 
Old 12-07-2009, 12:56 PM   #8
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Can you change the thread to solved then?

Thanks,

Forrest
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/tmp directory... Alexvader Slackware 13 12-03-2009 07:04 AM
Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? bethanlowder Fedora 7 09-25-2009 07:17 AM
Concerned about my /tmp directory? jim.thornton Linux - Security 12 01-28-2008 06:00 AM
/TMP Directory carlosinfl Linux - General 4 01-23-2007 01:02 PM
/tmp directory Bobmeister Linux - General 3 06-01-2003 04:32 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration