LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-03-2010, 07:02 PM   #1
arvinarvin
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Rep: Reputation: 0
Sort Big files, /tmp/sortA3aLjF: No space left on device


Hi i'm sorting 8GB text file but came up with this error for an investigation

/tmp/sortA3aLjF: No space left on device

is there anyway that sort won't use /tmp?
 
Old 08-03-2010, 07:10 PM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 97
you can use -T to specify a location other than /tmp in which to place temp files.
Or you can split the file (with split), sort each part and then merge them with sort -m.
(c) http://programming.itags.org/unix-li...ramming/97384/
 
Old 08-03-2010, 07:13 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
There are several options, but no matter which one(s) you choose, `sort` needs some space to work.

The -T option allows you to specify somewhere else besides /tmp for `sort` to put its stuff.

The -S option may allow you to tell `sort` to use more memory instead of disk space, though it may already use as much as it can finagle.

The --compress-program option, tells `sort` to compress its temp files using whatever compressor you tell it to use.


Sounds like you want the -T option most of all. Check the man page for more info on these.
 
Old 08-03-2010, 07:27 PM   #4
arvinarvin
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
thanks much
 
  


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
Having problem with /tmp "No space left on device" Error jim.thornton Linux - Newbie 13 05-26-2009 07:12 PM
No space left on device zmsc1 Linux From Scratch 7 03-28-2009 10:57 PM
can longer copy files to my empty USB pen drive on DSL - "no space left on device" misterfever Linux - Newbie 11 03-18-2009 03:42 PM
Problem copying files to FAT32 usb disk (Cannot open: No space left on device) Arodef Linux - General 1 08-07-2008 05:02 PM
No space left on device even though it has free space? enine Linux - General 8 05-30-2007 04:22 PM

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

All times are GMT -5. The time now is 06:45 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