ellanios82 said the following on 04/26/2013 09:32 AM:
On 04/26/2013 03:45 PM, Anton Aylward wrote:
and think more about what you are asking and trying to do.
- thank you anton : . . . not trying to do anything . . . just wondering what means ??: _____________
On 04/26/2013 12:21 PM, Hans Witvliet wrote:
If you think it takes too long, you might try the SUNos way: they just do a reformat..
Thus : If one wants to Clean tmp directories, IS the "SUNos way" to reformat ones entire Hard Disk, OR, to reformat only the tmp directories ??
Thus : what means the SUNos way ??
I don't know if you're being difficult or if you can't se the difference between a directory and a file system. I mkfs a file system on a disk partition and then I mount that file system at a mount point. Just like the man page says. Look at what's in /etc/fstab for example: # Entry for /dev/sda5 : UUID=053bfbd4-648d-460a-afa7-c72a41e18c5a / ext2 acl,relatime 1 1 # Entry for /dev/sda1 : UUID=9a16fc63-8f6c-43c1-83ac-466e0af3dd2f /boot ext3 acl,relatime 1 2 # Entry for /dev/sda6 : UUID=99b779e3-cfbb-4cab-9671-38e61efc605f swap swap defaults 0 0 [snip] /dev/vgmain/home /home reiserfs default 1 2 /dev/vgmain/vgTMP /tmp reiserfs default 1 2 There you are, I have /tmp as a separate file system that is mounted on /tmp I could do what SUNOS does and reformat that PARTITION before mounting it at boot time. As it happens I don't. YMMV. You don't format a directory, you format a partition. That the partition is the whole drive (disk, usb, ssd) or loopback device - however that is implemented - is beside the point. If the device you are using as the tmpFS is a whole disk then yes you format the whole disk. If you have lots of memory you might use a tmpFS as the tmp file system. That would make some operations such as compiling quite fast, MAYBE. It depends on how much memory you have and whether the OS decides to flush buffers or not. Sometimes Linux can run completely in memory. I keep saying "Context is Everything" but people often ask questions and make assertions without giving context. On one of my machines I'm running BtrFS and have no other partitions, so there is no /tmp to mount. BtrFS makes very efficient use of space so I never have to worry about such things as running out of inodes when I still have data space as I would with ext{234}. Devoting the whole of the system to BtrFS allows it to make optimizations that partition into separate FS would not allow. Go google on that. -- They say that if you play a Win cd backward you hear satanic messages. That's nothing! 'cause if you play it forwards, it installs windows. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org