LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 08: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, 08:10 PM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 96
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, 08:13 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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, 08:27 PM   #4
arvinarvin
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
thanks much
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:12 PM
No space left on device zmsc1 Linux From Scratch 7 03-28-2009 11: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 04:42 PM
Problem copying files to FAT32 usb disk (Cannot open: No space left on device) Arodef Linux - General 1 08-07-2008 06:02 PM
No space left on device even though it has free space? enine Linux - General 8 05-30-2007 05:22 PM


All times are GMT -5. The time now is 04:16 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration