[SOLVED] Can't startx - no space left on device ( What/How to clean/remove stuff)
SlackwareThis Forum is for the discussion of Slackware 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.
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609
Rep:
Well first of all, manually clean your '/tmp'...
Then ponce gave your the right path, a more "assisted" path would be using ncdu instead (graphical browsing of your fs), it can be found on sbopkg and takes no time to install.
Cheers
Garry.
Code:
# ncdu -x /
The -x avoids ncdu (/du) to scan other physical device than the original one...
Last edited by NoStressHQ; 08-02-2012 at 03:14 AM.
You can safely delete everyting in a tmp directory (/tmp and /var/tmp). Then i suggest you to play a bit with du because a full slackware install uses around 8G
My church called me a few months back with the same problem on their Linux file server. Strangely, it was the /media directory which was causing / to overflow. The server was being backed up to an external USB drive daily and then the drive removed and stored in the safe until the next day. One day the drive wasn't attached when the backup script ran and the script not finding the /media/backup directory created the directory (on the internal drive, of course) and started the backup. Adding a line to the script to test for the presence of the correct directory before starting the backup fixed the problem.
DNA
AKA mrascii
Last edited by mrascii; 08-02-2012 at 09:07 AM.
Reason: Minor clarification
Just as an apropos to the last post - this is how all _my_ backup-scripts work:
Code:
myusb=".................." # insert appropriate blkid for usb-drive
usbdev=""
mountpoint=""
die() { echo "$*"; unset myusb usbdev mountpoint; exit 1; }
usbdev="`blkid -U $myusb`" || usbdev=""
test x$usbdev = x && die "-- usbdisk is NOT present"
# now check if it's allready mounted
mountpoint="`grep -w "^$usbdev" /etc/mtab | cut -d ' ' -f 2`"
test "x$mountpoint" = x && { # not mounted, so go do it
mountpoint=/tmp/dir.$$
test -d $mountpoint || mkdir -p -m 0777 $mountpoint || \
die "-- could not create $mountpoint"
mount $usbdev $mountpoint || \
die "-- error mounting $usbdev on $mountpoint"
echo ":: $usbdev is mounted on $mountpoint"
}
# do the neccessary backup ...
# unmount
umount $mountpoint
rmdir $mountpoint
unset myusb usbdev mountpoint
exit 0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.