OpenSUSE :: Empty The /tmp File Or Other File To Free Up Space?

Mar 23, 2010

I've noticed that when I run:

davek@linux-kw2x:~> df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 20641788 8427780 11165368 44% /
udev 961204 192 961012 1% /dev
/dev/sda3 217642344 4037944 202548468 2% /home
davek@linux-kw2x:~>

I have 44% used. It should be much smaller, under 10%. How do I empty the /tmp file or other file to free up space?

View 9 Replies


ADVERTISEMENT

Ubuntu :: No Free Space , File Size Doesn't Match / Fix It?

Feb 17, 2011

In trying to solve a friend's lack of foresight, i have currently disabled my system.
I was using dd_rescue to make a copy of a drive with a corrupt and unfixable Partition Table. I was a fool, and had a drive mounted to /media/Storage, but ran the backup to /media/storage.
Thus, dd_rescue completely filled my primary drive before informing me that there was a problem.
I don't really trust myself with command line work, so I foolishly sudo'ed nautilus and deleted the folder /media/storage.
Unfortunately, I didn't realize it, but the available space on the drive still read 0bytes.
I tried Terminal work to do a sudo apt-get clean command, but for some inane reason, the laptop screen won't support the display setting for the Terminal login, so I just had to hope that I was doing it right.
I wasn't, and decided to try working from a Live CD so I could see what I was doing.
the folder /root/.Trash/ doesn't exist on Ubuntu's install drive, and I can't figure out why the properties of the drive say "contents: 241310 files, 3.7 GB" but also "Total capacity: 52.8 GB. Free space: 0 bytes"

Any suggestions on how I can get this to shake out?

View 3 Replies View Related

General :: Shell Scripting \ (test If A File Is Empty, If It Is Then Display "file Is Empty" Otherwise Display "file Is Not Empty")?

Oct 5, 2010

I am a final year student doign Computer systems engineering and just been introduced to linux. While still strugling to catch up with the commands, I am now given an assignment under shell scripting.I seriously am strugling to understand this question, can you please assist me.Here follows the assignment:

Operating Systems III
Some tips
e.g. (test if a file is empty, if it is then display "file is empty" otherwise display

[code]....

View 10 Replies View Related

Fedora :: Resizing Partition To Create Another File System On Free Space?

Dec 7, 2009

I have decided that my partition table does not meet my needs Barrymore, and I want to shrink the "/" partition by 80GB, and then create another file system on that space. I did some research on-line, and I'm not sure which way is the easiest and more secure way to perform the change with out putting the "/" file system on risk.

View 1 Replies View Related

General :: Creating A 1GB File Doesn't Change Free Space On Hard Drive?

Feb 2, 2011

I am trying to create an empty file based on the remaining hard disk space. The problem is that when I create a file that is 1 GB large, the df command shows the remaining space to be only 12 kb smaller than it was before the file was created.

someone@here:/tmp/delete# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 36827144 5031592 29924788 15% /

[code]....

View 2 Replies View Related

General :: Add / Of 3000mb In The Remaining 20380mb Free Space It Showing An Error Message That No Free Space Is Available

Jul 25, 2010

I have 160gb laptop. i installed vista in c primary partition which is 25gb and installed ubuntu in d primary partition which is 20gb. A remainig for my data. Now i tried to install CENT OS by formatting ubuntu. I inserted CENT OS DVD and restarted and i selected to delete my /dev/sda2 which is showing 20480mb and it shown me free space. but i tried to add partion /boot of 100mb it got added. but, when i am trying to add / of 3000mb in the remaining 20380mb free space it showing an error message that no free space is available.

View 4 Replies View Related

OpenSUSE :: Cannot Remove Empty File?

Mar 2, 2011

I was copying an .avi file to an external hard drive and half way through the copy the drive reset and required remounting. Consequently I have an empty .avi file on the hard drive. I tried to recopy the file and overwrite, but I keep getting 'Could not write to media/harddrive/filename.avi'. I tried to rename to file to be copied but got the same response, I cannot delete the empty file either, as I get an error telling I cannot delete it. I have tried to do this as the user and root with the same result.Any other file I tried to copy onto the external hard drive is fine, just this one zero length file and the file I was trying to copy, the original of the file. I also tried to delete the file on another computer but couldn'tExternal hard drive is a WD elements ntfs, which works great except for this glitch.

View 3 Replies View Related

OpenSUSE :: Configuration File Proftpd.conf Is Empty?

Oct 1, 2010

I just installed proftpd using webpin but when i tried to gonfigure it ,i figured out that the configuration file proftpd.conf is empty, is it about permission ?i just dont get it!

View 1 Replies View Related

Server :: Use System Monitor Via A VNC Connection The Free Disk Space Value Is 20GB Free On The Same Volume

May 18, 2011

I've got a question on free disk space. I'm currently running CentOS 5.5 on in Xenserver virtual environment. We've had an issue with disk space. My question is as follows: - from a ssh connection i run df -h this gives the value of 90% used leaving me with 9GB. If I use system monitor via a VNC connection the free disk space value is 20GB free on the same volume. Which one is correct? I do use SNMP to monitor the same volume and should alert me when < 10% is free I know this works as I set the alert threshold to < 90% I get an alert.

View 2 Replies View Related

OpenSUSE :: Decompress The 75Gb File In Some /tmp Space In Hard Disk

Apr 8, 2011

I have tried to plan my backup plans. As I want it simple I am gonna use only tar.gz combination of some files that are important. My question then is the following:

-I have a 100GB hard disk with 20Gb free space only. I would like to backup the rest 80Gb to an external hard disk. I run my scripts which end up saving a 75Gb(due to compression) to my external hard disk.

-->Then comes the times to try to see the contents of my archive (just to make sure that I can recover what is inside the 75GB disk file). Do you know if tar.gz needs to decompress the 75Gb file in some /tmp space in my hard disk for showing me the contents inside it? In that case it will not be easy at all to ever look at what is inside it in my hard disk, as there is no 80Gb of free space in my hard disk (20gb only).

View 9 Replies View Related

OpenSUSE Install :: Free Space On Hard Disc?

Sep 13, 2010

I'm starting to push the limit of my /home directory. My machine is Linux/Windows dual-boot. I need to keep Windows as the machine is not "officially" mine, and so might need to go back at some point to a Windows user. All my normal Windows access is via VirtualBox. I have made my Windows partitions as small as possible, and now have an empty D partition as follows:

It's the D* partition that I would like to add to my home directory. Is there an easy way of doing this, or am I looking at a complete re-install of openSUSE?

View 9 Replies View Related

OpenSUSE Install :: Partition Resizing - Free Space Not Available

Dec 16, 2010

I have two 250 GB drives setup with hardware RAID 1. I had on sda and sdb: 20 GB swap, 20 GB /, 198 GB /srv all was good until I started to run out of space on 20 GB /. So I booted the server with Suse 11.3 live cd and reduced the size of 20 GB swap to 10 GB and 198 GB /srv to 150 GB on sda and sdb.

All good so far, then tried to increase 20 GB / to 60 GB, but the Partition setup says the Max Size can be 20 GB, I have checked and I have 42.88 GB of Unpartitioned space. I have rescanned, rebooted, Server is still running fine by the way, but the 42.88 GB of free space is not made available for the expansion of 20 GB /.

View 6 Replies View Related

Fedora Installation :: Convert Unallocated Space To Free Space?

Jun 7, 2010

I was trying to install Fedora 13, on to my laptop. I have 30 GB of unallocated space in extended partition. When trying to install Fedora 13, I got stuck, as the installer says that there is no free space for installation.can convert the unallocated space into free space.

View 1 Replies View Related

Ubuntu :: How To Turn Unallocated Space Into Usable 'free' Space?

May 25, 2010

i used gddrescure to clone an 80gb harddrive and this is the result ROFL.i guess you can only do this making sure the target drive is the same size, you see i didnt know lol so..i now have THIS problem.can anyone tell me how to turn my unallocated space into a usable 'free' space? i could play with gparted right now but i dont wanna do anything wrong, so if theres anyone who can tell me how to do this.

View 1 Replies View Related

Red Hat :: Showing 0 Byte Free Space Istaed Of Freeing The Space

Dec 30, 2010

I have red hat linux server and it has mysql installed whenever i write on terminal command mysql -u root it shows error "ERROR 2002 (HY000): can't connect to local MYSQL server through '/var/lib/mysql/mysql.sock (111) "

And another problem is that it is showing 0 byte free space istaed of freeing the space. it may seems that both problems are dependent on each other.

View 6 Replies View Related

General :: How To Empty A File

Jul 15, 2010

I have a large file that a process writes to. I would like to empty that file. If I delete it the process will stop writing to it. Just flush the content but keep the file.

View 9 Replies View Related

Ubuntu Installation :: Add More Space To Sda2 From Free Space?

Jul 22, 2010

i made space by shrinking my window partition and so i have unallocated and would like to add to sda2 to have more space. Check out this pic. How can i do this?

View 1 Replies View Related

General :: Use Free Space To Extend The Space Of A Drive?

Jul 5, 2011

My system is dual boot with win7 and ubuntu. I have free space of around 10 gb. I want to add this free space to my ubuntu drive. How can i do that?

View 4 Replies View Related

OpenSUSE Install :: Creating ISO-file From Burnt ISO-file On CD-R Gives Different File Length

Jul 25, 2010

I downloaded three iso-images, 1 dvd-image and 2 cd-images:

openSUSE-11.3-DVD-i586.iso
openSUSE-11.3-GNOME-LiveCD-i686.iso
openSUSE-11.3-KDE4-LiveCD-i686.iso

Being paranoid, I created iso-files from the burnt DVD-R and the two burnt CD-R to verify integrity.

The iso-file of the DVD-R was identical to the downloaded image. Both iso-files created from the CD-R were different in size.

The original size of openSUSE-11.3-KDE4-LiveCD-i686.iso is 719.323.136 Bytes.

I only got 718.938.112 Bytes when recreating an ISO-file from my CD-R.

The CD-R is from Sony. When the length of my ISO-file doesn't correspond to the downloaded one, the checksum file verification doesn't work.

View 3 Replies View Related

Ubuntu :: Sed Command Empty The File?

Mar 13, 2010

I have this file: 1.txt, with this contents:

Code:
test
mycomputer

I just try change the string "mycomp*" by "othercomputer":

Code:
sed 's/mycomp.*$/othercomputer/' 1.txt > 1.txt
but sed command empty the file.

[Code].....

View 2 Replies View Related

Programming :: In Correct File Is Empty?

Jun 17, 2010

I am using embedded Linux. File open is successful. The file has all the permissions. It is present in current directory too. The size is about 27KB. But s.st_size says it is zero.

inputFileName = "abc.mp3";
FILE* inFile = NULL;
inFile = fopen(inputFileName, "r+b");

[code]...

View 2 Replies View Related

Server :: The Boot.log File Is Empty?

Feb 28, 2010

Does anybody know why isn�t anything on the /var/log/boot.log file. After the boot I saw some services that fail to load and looking for more detail data on the boot.log file I couldn�t found anything this file is empty. This is My syslog.conf file:

Code:
kern.* /dev/console
*.info;mail.none;authpriv.none;cron.none /var/log/messages

[code]...

View 3 Replies View Related

Ubuntu :: Syslog.conf Empty File

Mar 15, 2010

I was checking my syslog.conf file recently and it seems that it is an empty file >_> it shouldn't be correct?

View 2 Replies View Related

Fedora :: Yum And Comps File Is Empty/damaged?

Dec 2, 2010

I have setup a local repository containing several .rpm files. I created a comps.xml file outlining the category and groups for the local repository. However, when I issue the yum grouplist command, I get the following error:

Failed to add groups file for repository: localRepo - comps file is empty/damaged

However, if I try to install one of the the packages in the repository, it works just fine.

Here are the steps I took to create the repodata:

The comps.xml and repository are stored in the directory:
/var/www/html/myrepo/x86_64
cd /var/www/html/myrepo/x86_64
createrepo -g comps.xml .

[Code]....

View 1 Replies View Related

General :: Create Empty Or Blank Iso File?

Nov 23, 2010

I having been searching for a way to create an empty or blank iso file, so that I can mount it, and have a backup application think it's a blank CD. I am tired of wasting CD's by having the application write a recovery CD, just for me to turn around and export it to an iso image to be stored in a online archive, and then throw away the physical CD.

View 5 Replies View Related

Server :: Empty PID File While Starting Script?

Aug 16, 2010

I'm trying to write shell script to use etc/init.d In fact, my application has written by java and I have made the fat.jar (etest.jar)file as executable one and after I wrote the small script to run it background (etestruner.sh) that is,

Code:

#!/bin/sh
java -jar /root/les/run/etest.jar >/opt/etstout.out 2>&1 &

And after I wrote the service script That is ,

Code:

#!/bin/sh
#
# Startup script for epict
#
# chkconfig: 2345 25 88

[code]....

I tried with google to solve this issue but did not get any result.

View 3 Replies View Related

Programming :: Bash There Will Be Empty Lines At The End Of The File?

Mar 26, 2011

Using awk I pull the first field of a random line from my datafile.myvar1=`awk -F" " 'NR=='$randline' {printf "%s", $1}' myfileThis works fine. The problem is there will be empty lines at the end of the file. Rather than using awkto filter out blank lines I would like to figure this out first.So I test $myvar1 for a blank string after setting $randline to one that I know is blank:test -z "$myvar1" && echo "true" || echo "false"But, this returns "false"? So the string is not zero length. Why? It's a tab-separated file. Is awk storing the tab with the $1 field or something.This is where I get headache. I try to echo my variable to see what it looks like.

echo "$myvar1"
outputs: nothing
echo "My variable is [$myvar1]"
outputs: [y variable is [

Why is the closing bracket at the beginning? What character could be stored in $myvar1 that would do such a thing and how did it get there?

View 7 Replies View Related

Ubuntu :: Difference Between Free Space And Available Space?

Oct 17, 2010

I have a big partition ext3 and System Monitor show me that there are 14Gb of Free space but only 4Gb of Available space.

View 4 Replies View Related

General :: Cron - Mysqldump Job Creates An Empty Sql File

Apr 14, 2010

My cron job is executing the below mysqldump command but it produces an empty sql file. However, when I run from the command line, it works as expected.

Code:
15 6 * * * root mysqldump -uroot -pXXXXXXX mydbname | gzip > /home/dbbackup/db_`/bin/date +\%Y\%m\%d\%H\%M`.sql.gz

I'm on CentOS 5.4 and use "env EDITOR=nano crontab -e" edit my cron (then paste the above command.

View 5 Replies View Related

Fedora Servers :: Can't Upload File To Empty Home Directory

Feb 1, 2009

I just installed FC10 and then used yumex to install the vsftpd FTP daemon package. I'm using the vsftpd.conf file that came with the distribution, and its almost identical to one I copied from my FC2 machine's working set-up. When I try to FTP in as a known system user I'm presented with my home directory /home/myusername/. The directory appears empty to the FTP program, but isn't in reality. I can't upload a file to the empty home directory. I can move up the directory hierarchy to /home/, but again that appears as an empty directory.

I don't think it's a vsftpd.conf file issue. I've tried everything I can there. Could it have something to do with permissions? I fiddled with those, but couldn't make an FTP directory listing work.

[code]....

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved