Mailinglist Archive: opensuse (2831 mails)

< Previous Next >
Re: [SLE] Moving /tmp
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Mon, 03 Jul 2006 12:56:39 +0200
  • Message-id: <e8at57$392$1@xxxxxxxxxxxxxxxx>
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@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx


< Previous Next >
Follow Ups
References