On Sunday 14 October 2012 08:56 PM, Roger Leigh wrote: >> rrs@champaran:~$ ls -ld /tmp/ >> drwxrwxrwt 1 root root 498 Oct 14 20:37 /tmp// > > Could you try this again, but without the trailing slash? > The goal is to check if /tmp is itself a symlink; with the > trailing slash, this looks at the pointed-to directory, > which is not what we want. i.e. "ls -ld /tmp". >
rrs@champaran:~$ ls -ld /tmp drwxrwxrwt 1 root root 556 Oct 14 21:00 /tmp/ rrs@champaran:~$ file /tmp /tmp: sticky directory rrs@champaran:~$ readlink /tmp I am on btrfs. So I am giving your this list... rrs@champaran:~$ sudo btrfs subvolume list / ID 256 top level 5 path var ID 259 top level 5 path usr ID 260 top level 5 path home ID 261 top level 5 path var/log ID 262 top level 5 path etc >> So I am all confused. But to prove that /tmp _is_ on tmpfs, here it is: >> >> rrs@champaran:~$ ln x.sh /tmp/ >> ln: failed to create hard link `/tmp/x.sh' => `x.sh': Invalid >> cross-device link > > This is just showing that ~ and /tmp are on separate filesystems-- > it's not saying anything about tmpfs directly; it could just be > that /home is a separate mount from /. > Yes. And my root vol is btrfs. But /tmp is not a subvol. > Run "stat" on / and /tmp and this will tell you if they are> > Regards, > Roger > > different (look at the Device numbers). > rrs@champaran:~$ stat / File: `/' Size: 194 Blocks: 8 IO Block: 4096 directory Device: 10h/16d Inode: 256 Links: 1 Access: (0555/dr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2012-10-10 17:22:27.949340594 +0530 Modify: 2012-10-10 22:19:31.458631459 +0530 Change: 2012-10-10 22:19:31.458631459 +0530 Birth: - rrs@champaran:~$ stat /tmp File: `/tmp' Size: 556 Blocks: 0 IO Block: 4096 directory Device: 10h/16d Inode: 10797 Links: 1 Access: (1777/drwxrwxrwt) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2012-10-10 17:22:08.317347537 +0530 Modify: 2012-10-14 21:05:01.716336750 +0530 Change: 2012-10-14 21:05:01.716336750 +0530 Birth: - >> Would systemd have anything to do with this? I am running systemd. > > Possibly. systemd does not use any of the initscripts logic to > mount filesystems; I'm not even sure it respects RAMTMP--it > might not even look at it. > Let me check it out. -- Ritesh Raj Sarraf | http://people.debian.org/~rrs Debian - The Universal Operating System
signature.asc
Description: OpenPGP digital signature