[SOLVED] Xsession: warning: unable to write to /tmp
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When browsing in firefox I noticed that although the applications I had open windows for were responding, when I swicthed away from the browser window there was just a plain grey background and the other application window. I exited out of the apps I had open, found that ctrl+esc, ctrl+shift+f1, ctrl+back space and ctrl+alt+del all did nothing. Pressing the power button didn't do anything, so I eventually had to hold it in until it powered off. Unfortunately when I've tried to login since I just get
Quote:
Xsession: warning: unable to write to /tmp: Xsession may exit with an error
after clicking OK I get thrown back to the login screen. Logging in through the console and trying 'startx' gives the same thing, only I don't get a cursor to click the okay button and have to press the power button to reboot.
I've just tried running fsck from a Ubuntu 9.10 live CD:
Quote:
ubuntu@ubuntu:~$ sudo fsck /media/fa09fe96-0e5f-4430-b305-d4c31a7ba107
fsck from util-linux-ng 2.16
e2fsck 1.41.9 (22-Aug-2009)
fsck.ext2: No such file or directory while trying to open /media/fa09fe96-0e5f-4430-b305-d4c31a7ba107
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
ubuntu@ubuntu:~$
The partition is valid and EXT3 formatted and can be browsed in nautilus.
I logged in via the console and got the following from 'sudo mount'
Quote:
/dev/sda1 on / type ext4 (rw, errors=romount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (re,noexec,nosed,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugs (rw)
udev on /dev/ type tempfs (rw,mode=0765)
none on /dev/pts type dev/pts (rw,noexec,nosed,gid=5, mode=0620)
none on /dev/shm type tempfs (rw,nosed,nodev)
none on /var/run type tempfs (rw,nosuid,mode=0755)
none on /var/lock type tempfs (rw,noexec,nosed,nodev)
none on /var/lib/init/rw type tempfs (rw,nosed,mode=0755)
/dev/sda6 on /home type ext3(rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosed,nodev)
Also, I tried running a fsck from the live cd replacing /media/ with /dev/disk/by-uuid and got
I really wish Linux was more resilient against this sort of thing. I've had Linux installs completely die on me after being powered off without being shutdown.
/dev/sda1 on / type ext4 (rw, errors=romount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (re,noexec,nosed,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugs (rw)
udev on /dev/ type tempfs (rw,mode=0765)
none on /dev/pts type dev/pts (rw,noexec,nosed,gid=5, mode=0620)
none on /dev/shm type tempfs (rw,nosed,nodev)
none on /var/run type tempfs (rw,nosuid,mode=0755)
none on /var/lock type tempfs (rw,noexec,nosed,nodev)
none on /var/lib/init/rw type tempfs (rw,nosed,mode=0755)
/dev/sda6 on /home type ext3(rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosed,nodev)
In the above I don't see /tmp which is why I assumed it was on the / partition.
What is in your /etc/fstab about /tmp? That will tell you what kind (if it is) of partition it is.
The grep query returned nothing, here's the contents of my /etc/fstab
Quote:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=f0f75564-da38-4efb-95ac-0fc97e3970ee / ext4 errors=remount-ro 0 1
# /home was on /dev/sda6 during installation
UUID=fa09fe96-0e5f-4430-b305-d4c31a7ba107 /home ext3 defaults 0 2
# swap was on /dev/sda5 during installation
UUID=e637a199-8934-4537-aabc-74b72f25716a none swap sw 0 0
In that case your /tmp is part of your / partition and should be wiped at startup or managed via tmpwatch depending on how often you reboot. How big is your / partition anyway?
I created the / partition as 6GB in size on install, GParted reports the size as 5.72 GiB with 5.44 GiB used. Will clearing the contents of /tmp allow me to complete the login?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.