Hi, Very much a new Linux user, but some user experience with Unix 20-odd years ago. I'm finding I'm running out of space in / because /tmp is filling up doing some backups and zipping. I have more room on a different partition so I'd like to move /tmp there. Of course /tmp isn't "mounted" at the moment. I'm just confused. How do I mount /tmp onto /dev/hda6 (where /local is mounted already) and have the system see it as the right tmp directory for zipping and such things. I'm using Suse 10.1 free on a i386 machine if that's important. -- -- With best regards, Derek Carr, Birmingham, UK http://alldruid.co.uk/ -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Derek J. Carr wrote:
Hi,
Very much a new Linux user, but some user experience with Unix 20-odd years ago. I'm finding I'm running out of space in / because /tmp is filling up doing some backups and zipping. I have more room on a different partition so I'd like to move /tmp there. Of course /tmp isn't "mounted" at the moment. I'm just confused. How do I mount /tmp onto /dev/hda6 (where /local is mounted already) and have the system see it as the right tmp directory for zipping and such things. I'm using Suse 10.1 free on a i386 machine if that's important.
Assuming you've got a separate partition for it, just add it to fstab. If you've only got a directory on the /local partition, create a symbolic link from /tmp to that directory. Incidentally, you can configure the system so that old stuff is automagically deleted from /tmp. Have you done that? You can configure this in the /etc/sysconfig editor. Look under System > Cron for MAX_DAYS_IN_TMP and CLEAR_TMP_DIRS_AT_BOOTUP. -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Derek J. Carr wrote:
Very much a new Linux user, but some user experience with Unix 20-odd years ago. I'm finding I'm running out of space in / because /tmp is filling up doing some backups and zipping. I have more room on a different partition so I'd like to move /tmp there. Of course /tmp isn't "mounted" at the moment. I'm just confused. How do I mount /tmp onto /dev/hda6 (where /local is mounted already) and have the system see it as the right tmp directory for zipping and such things.
1. go into single user mode - "init S" 2. mv /tmp /oldtmp 3. mkdir /tmp 4. umount /dev/hda6 5. mount /dev/hda6 /tmp 6. rsync -av /new/oldtmp/* /tmp 6. return to normal runlevel - "init 5". 7. optionally get rid /oldtmp 8. update fstab to have /tmp mounted at startup. /Per Jessen, Zürich -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Per Jessen <per@computer.org> wrote:
1. go into single user mode - "init S" 2. mv /tmp /oldtmp 3. mkdir /tmp
Don't forget**: 3.a. chmod 1777 /tmp
4. umount /dev/hda6 5. mount /dev/hda6 /tmp
Don't forget**: 5.a. chmod 1777 /tmp
6. rsync -av /new/oldtmp/* /tmp 6. return to normal runlevel - "init 5". 7. optionally get rid /oldtmp 8. update fstab to have /tmp mounted at startup.
**NOTE: It's best to set the sticky bit on both the /tmp directory of the root (/) filesystem (before mount, just in case /tmp doesn't mount) as well as on the /tmp filesystem after mount. If you don't set the sticky bit and full read/write/execute permissions on /tmp, you'll get all sorts of wacky behavior. And it won't be readily apparent the cause is permissions either. -- Bryan J. Smith Professional, Technical Annoyance b.j.smith@ieee.org http://thebs413.blogspot.com ----------------------------------------------------------- Americans don't get upset because citizens in some foreign nations can burn the American flag -- Americans get upset because citizens in those same nations can't burn their own -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (4)
-
Bryan J. Smith
-
Derek J. Carr
-
James Knott
-
Per Jessen