LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-18-2021, 06:35 AM   #1
root@kali:~#
LQ Newbie
 
Registered: Apr 2021
Location: unknown
Distribution: kali linux
Posts: 3

Rep: Reputation: Disabled
Question xsession: warning: unable to write to /tmp


hi fellas. technically im facing a little problem that maked me awake all night since yesterday tryna solve it. i really crawled the webs before posting this thread but all of them explains other cases not like mine.so when i boot my system (basic os) that message pop-up to me again. tbh it happened last month and i tab this commands into the root account to clean my cache files and the unused packages and it already works:
Code:
 apt-get autoclean ~ apt-get clean ~ apt-get autoremove
here's some info at my drive:
Code:
root@kali:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            975M     0  975M   0% /dev
tmpfs           201M  1.4M  200M   1% /run
/dev/sda1        11G   11G     0 100% /
tmpfs          1003M   12M  991M   2% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup
/dev/sda6        62G  8.5G   50G  15% /home
tmpfs           201M   60K  201M   1% /run/user/0
also this command shows that the /dev/sda1 is 100% which it means it can’t write to a full disk:
Code:
root@kali:~# df -h /tmp
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        11G   11G     0 100% /
any solution for this case? and thank you all
 
Old 04-18-2021, 06:52 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Well, #1 if you are going to use a system as a desktop do not partition the space to give less than 20G to root "/" partition unless you have a clear plan.

A clear plan might include separate partitions for /var and /tmp, something only normal for servers, or
A tmpfs memory mount for /tmp so that the space it needs is not taken up on root "/". or
Another such plan.

Before you install a distribution you want to read the minimum space requirements and make certain that you allocate space to exceed that standard. You do not mention what distribution, or version of that distribution, that you have installed.

To recover in-place you will need to find what is taking space, and address that issue. DO NOT just delete or remove files that might be open by another process, as that can result in allocated space that you cannot easily recover. One way is to shot it down and boot form a live image (on usb or cd) and search for and remove or reduce the large files during that session.
 
Old 04-18-2021, 06:55 AM   #3
sasongko
LQ Newbie
 
Registered: Feb 2017
Distribution: Slackware
Posts: 25

Rep: Reputation: 10
I think you need to remove unnecessary files manually. Maybe this command useful to figure it out
Code:
df -h | sort -h
Btw, have you read the docs before installing kali linux (i.e. https://www.kali.org/docs/installati...isk-install/)?

Last edited by sasongko; 04-18-2021 at 07:04 AM.
 
Old 04-18-2021, 08:00 AM   #4
root@kali:~#
LQ Newbie
 
Registered: Apr 2021
Location: unknown
Distribution: kali linux
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
Well, #1 if you are going to use a system as a desktop do not partition the space to give less than 20G to root "/" partition unless you have a clear plan.

A clear plan might include separate partitions for /var and /tmp, something only normal for servers, or
A tmpfs memory mount for /tmp so that the space it needs is not taken up on root "/". or
Another such plan.

Before you install a distribution you want to read the minimum space requirements and make certain that you allocate space to exceed that standard. You do not mention what distribution, or version of that distribution, that you have installed.

To recover in-place you will need to find what is taking space, and address that issue. DO NOT just delete or remove files that might be open by another process, as that can result in allocated space that you cannot easily recover. One way is to shot it down and boot form a live image (on usb or cd) and search for and remove or reduce the large files during that session.
oh i got you thanks, btw i am using kali linux 2020.4
i moved all my files to a 8G usb stick to make a free space and i cleared the tmp/ directory too by bleachbit still not worked. would you suggest me to shrink some gigabytes from /dev/sda6 to the root? i think this is the easiest way than live booting because it can be risk to corrupt any system-file check out here: https://pixeldrain.com/u/USad1aLK
 
Old 04-18-2021, 08:14 AM   #5
root@kali:~#
LQ Newbie
 
Registered: Apr 2021
Location: unknown
Distribution: kali linux
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sasongko View Post
I think you need to remove unnecessary files manually. Maybe this command useful to figure it out
Code:
df -h | sort -h
Btw, have you read the docs before installing kali linux (i.e. https://www.kali.org/docs/installati...isk-install/)?
i tried this command for finding the supernumeraries directories
Code:
 sudo du -x / | sort -n
but looks like the /dev/sda1 is full and needs to resize because the unsused space on it is 480mb!
 
Old 04-18-2021, 04:40 PM   #6
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
The about description of KALI from the web site: "Kali Linux is a Debian-derived Linux distribution designed for digital forensics and penetration testing."

Using KALI as a desktop is discouraged, as it is oout of parameter for the intended design usage. The best way to use forensic tools and distributions of from a live image. I recommend running it from a VENTOY USB device set up for persistence. Run this way you need not worry about installation errors or options. (or getting them wrong)

Unless your daily life and the use for your harware is forensics and ethical hacking ONLY, this is the better way.
 
Old 04-22-2021, 02:38 AM   #7
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I'd have a look to logs in /var/log as some might grow huge, especially with misconfigurations...

Anyway, as adviced previously, you have already backed up your data : just install a desktop oriented distro on wich you can install some pentest software.

I personnaly would choose slackware and slackware live to learn. But that's me
 
Old 04-22-2021, 06:47 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Wat? Kali can be used for pentesting? Kali related posts here in these forums are usually about Linux basics, I was under impression Kali is some n00b-oriented distro. But I see now, it may seem "cool" for immature people. Gee, maybe it is a business idea. Start selling modified Kali, easy-to-use-for-noobs. Comes with tutor videos and such. And has written "Kali" everywhere, to make sure friends can see it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xsession: warning: unable to write to /tmp AvalanchePlus53 Linux - Newbie 7 11-07-2017 03:14 PM
Xsession:warning:unable to write /tmp;X session may exit with an error harif.konndeth Linux - Newbie 2 09-15-2010 07:44 AM
[SOLVED] Xsession: warning: unable to write to /tmp Mark_667 Ubuntu 17 01-12-2010 03:03 PM
Xsession:warning:unable to write to /tmp;X session may exit with an error gabsik Linux - Desktop 9 05-31-2007 09:51 PM
Xsession: warning: unable to write to /tmp whatpot Linux - Newbie 2 11-04-2005 09:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration