Red Hat / Fedora :: Check The Free Available Size On The "/root" Before Creating A File
May 4, 2011
I need to check the free available size on the "/root" before creating a file .
Can i do it by using df?if not , can you specify me which one to use?
View 1 Replies
ADVERTISEMENT
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
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
Sep 7, 2010
I am using FTP to read a file. Before the transfer I need to check the size of file.
I found the keyword to check the size of file in C. But I want to know how to use it.
ftp command to check the size is --> SIZE
ftpXfer(IPaddr, FtpUser, FtpPass,
"", "SIZE %??", RootDir, FileName,
&ctrlSock, &dataSock);
fileSize read
read(dataSock, ??, ??);
View 2 Replies
View Related
Mar 25, 2010
script that will check if my log file is a certain size? EX: I want to limit the size of my rsync log to say 5MB, if that's true I would move it and create a new one.
View 4 Replies
View Related
Jan 21, 2011
i want to Restrict a particular user from creating a file beyond a prticular size.ie he should not be able to create a prticular size [say 10mb] but he can use upto 10 gb.[ not the quota space i mean]
View 6 Replies
View Related
Jan 21, 2009
I have a file that's supposed to be growing in size 24/7. I want to check every 10 minutes via cron that it's actually growing. If not, send an email. Does anyone know how to write a script to do that?
View 3 Replies
View Related
May 8, 2010
I have a two hours long home video with I edited in a video editor program. I'd like to burn it to DVD, but first I need to export it to an mpeg file. Cinelerra doesn't allow me to render to mpeg, instead it offers .avi or .dv - problem is that the resulting file size is enormous. (i.e. 1 minute of .avi = 1.2GB! or around 500MB when I output to .dv) What file format would be best to render to and at the same time not to get an insanely big file? I'd like to keep it under 1GB if possible.
View 2 Replies
View Related
Aug 21, 2010
My laptop has 2Gb of ram, 4Gb of swap, 40Gb hdd and an intel pentium 1.40GHz cpu, even when compiling stuff or maxing out everything the 4Gb of swap is never touched, with such a small hdd I'd like to reduce the swap to about 2Gb (just in case) to free up some space, does anyone know what commands/tools are available to accomplish this?
View 3 Replies
View Related
Jul 11, 2011
I'm very new to Linux, i'm running Ubuntu and i'm trying to install a program. In the instructions it says "Check that you ARE NOT root, never run similar tools as root! just change file permissions". How do i check if i'm root or what am I supposed to do here?
View 7 Replies
View Related
Nov 22, 2010
Im trying to shrink a 80 Gb ntfs partition. but when i clicked the shrink option the partition is like this:
"sda1(ntfs,0 mb)".
how to free up space in creating custom layout.
View 1 Replies
View Related
Jan 19, 2011
is lvresize with --resizefs options re-size the Logical Volume and then re-size the file system? i mean we don't need to use resize2fs?I looked at man pages but it doesn't explain this option.
View 3 Replies
View Related
Dec 14, 2010
How can we find the maximum size of the inode table and what decides it, and how the maximum size of volume of file system is decided ?
View 4 Replies
View Related
Feb 21, 2010
After creating a new JFS root file system, boot (actually /etc/rc.d/rc.S ?) fails when checking it with:
Code:
fsck 1.41.8
/sbin/e2fsck: Bad magic number in super-block while trying to open /dev/sda7:
[code]....
View 2 Replies
View Related
Mar 3, 2010
Started slackpkg upgrade-up and went to bed. Woke up to find the power had gone out during the night. The computer booted up, but displayed a message that said something to the effect of, "Error occurred during root file system check. You will be given the option of doing maintenance......"I can get to a command prompt, but regardless of what I do a message pops saying it can't find libblkid.so.1
View 14 Replies
View Related
Aug 27, 2010
I want to change gedit font size and color scheme as root but the font is locked out and when selecting a color scheme I get the following error: ** (gedit:2562): CRITICAL **: gedit_prefs_manager_set_string: assertion `gconf_client_key_is_writable ( gedit_prefs_manager->gconf_client, key, NULL)' failed How can I get around this?
View 2 Replies
View Related
Dec 28, 2010
fedora 12.i have one partition which is mounted on a rootfiles folder having space of 700gb which is located on a /directory.but when im adding data on rootfiles my /root directory space is also getting increased.so could any one telme how to increase the size of root partition.i want to resize my rootfiles folder to 600db and want to add 100gb to my / directory.how can i do this plz helpme this is important 4 me.first i will free 100gb then i will add 100gb to root directory.but i dont want to loose any data on rootfiles folder.
View 3 Replies
View Related
Mar 20, 2010
I use Redhat EL 3 server , I found that the / directory is nearly full , then I remove the file in it .Now ,the files are removed , but I found that the / directory size is not changed , I sure the files are under / directory , it is strange that sometimes this problem do not happen , I usually reboot the server then the size will be reduced .
View 1 Replies
View Related
Mar 16, 2010
I can't seem to find anywhere to find how much free space i have on my "my book world edition II", Unlike normal HDD's when you just right click and it shows the Yellow and blue circle.
View 6 Replies
View Related
Apr 23, 2010
[root@linux root]# fdisk -l
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 1276 4864 28828642+ f Win95 Ext'd (LBA)
/dev/hda3 14 395 3068415 83 Linux
/dev/hda4 396 526 1052257+ 82 Linux swap
/dev/hda5 1276 3187 15358108+ 7 HPFS/NTFS
/dev/hda6 3188 3249 497983+ 8e Linux LVM
/dev/hda7 3250 3311 497983+ 8e Linux LVM
Here /dev/hda5 taken of How much capacity for NTFS (need space in MB).
View 8 Replies
View Related
Dec 16, 2009
my partitioning layout was as follows
Vista Recovery
Windows 7
GRUB
Extended
-->Fedora 12 (ext4)
so, I shrunk my recovery in Windows 7 successfully, and booted into my Fedora 12 live cd to run Gparted, and move the partitions so that the free space could go towards fedora, I did such, and then I couldn't expand the partition to my dismay. Next, I woke up this morning, tried to boot to fedora to run SSH, grub loaded, but when I tried to boot fedora, I got the "File system check failed" error, and when I tried 7, it just went to a blank screen with a single "_" in the top left-hand corner.
View 7 Replies
View Related
Jun 10, 2010
Are there software that can split big file size into small file size in Linux?
View 1 Replies
View Related
Jan 26, 2010
I edited the passwd file to modify the default shell for root from bash to tcshnow when I try to login to root it gives me the following error:"su: /bin/tcsh : No such file or directory"
View 3 Replies
View Related
Mar 24, 2010
the terminal and logged in as root i was changing file permissions and happened to change the root folder to 700. Now my icons have gone and i can't even access the terminal.
I was just wondering if it is possible to go to rescue mode using the cd and restore all the appropriate file permissions to root/ users if possible
View 4 Replies
View Related
Mar 17, 2011
i have successfully set up squid3 with squeeze using guide on this forum viewtopic.php?f=16&t=59301 . The only problem that i have is the size of /var/log/access.log is too big and keep increasing so i run out of free space. The size of it always the same size as my free space hard disk (so it make me run out of free space in just one day, it can have size to 30 Gb ) right now , the only workaround i make is using crontab to rm access.log every hour . I'm sure this is not the right solution . Does anybody know the correct workaround about this ? I have searching in google but seems havent yet have luck with this .
View 5 Replies
View Related
Jul 17, 2011
I bought a brand new pc (dell XPS 8300).I' installed suse (64 bit), on it.Graphic card is Radeon HD 6770 My screen, a Samsung BX2231 have a 1920x1080 resolution. Despite that being the set resolution, the image don't take all the screen, leaving a black border around the screen. The same happens on windows, but there is an option to set that that.
So I installed the proprietary drivers. I have indeed the option to set the image full screen. But, i get some display weirdness. The status bar on the top is all messed, so are the icons on it. With some things the text don't show right. If anyone have a clue on how to set the right size with the free drivers,or fix the wackiness with the proprietary ones.
View 9 Replies
View Related
Feb 24, 2011
I'm creating a bash script to check how much free space is left in /var directory then, if it hits a certain threshold, delete certain files with numbers for extensions (e.g. fileA.1, fileA.2 fileA.3, and fileA.4, fileB.1, fileB.2 fileB.3, and fileB.4 ). Here's a snippet from my script:
[Code]...
If I use a * as a wildcard for the number extension, the script fails. Maybe regex would work here, but I'm not particularly accomplished at it. Or some other construct.
View 18 Replies
View Related
Oct 14, 2010
In a shell script, I am creating a .tar using this command
Code:
tar -zcvf dst/lib/library.tar.gz dst/lib
There are two problems:
[code]...
View 1 Replies
View Related
Feb 25, 2010
I would like to add some restrictions to my postfix configuration such as this:
"smtpd_sender_restriction = check_sender_access maptype:mapname"
give me detailed instruction on how to create this maptype:mapname file...
make it a detailed one since I am still a novice with linux.
View 1 Replies
View Related
Mar 30, 2011
I've got a small problem with dwhelper. Now when I'm trying to download anything from ..... DH doesn't download and creates only empty files.
View 1 Replies
View Related