I am using Lubuntu 12.04 with default ext4 file system, and PCManFM file manager.
I understand that a file's size on disk is usually larger than the file's actual size, because of disk sectors.
But I am consistantly finding that the size on disk is 10X as large as the actual file size. That seems a little excessive.
I am facing typical "size on disk" issue on windows 2008 OS.
I am using NTFS partition with cluster size of 4k and in that Size of disk is almost triple the real size. This is becaus I have large number of small files in the system.
I tries to reduce the cluster size to 2kb but in that also but that also didnt help me to reduce the "size on disk" very much.
I have been tasked with determining if we should consider migrating from a Windows Server 2008 R2 server using windows shares to a Linux based file server using samba. We would still authenticate with AD running on Server 2008 R2 and most of our computers run Windows 7. The file servers vary in storage capacity and configuration, but the primary one runs three local 4 disk raid 5 shares.
Hi Experts,
I have a problem wih /var. Disk /var is full. After i investigate, i found file /var/log/syslog.0 is growing rapidly. The size is 4.3G. I tried to move syslog.0 to another disk and file was moved successfully.
My question is why size /var can't increase? used space still 100%.
When i check the size of syslog.0 in place that i moved, the size is 4.3G.
I ran a process that was writing stderr log messages to a file and didn't realize how fast the log file would grow. The result is that the log file filled up the entire rest of my hard drive and now when I try to remove the file using rm, the computer freezes. I'm running Mountain Lion and my primary hard drive is 2TB.
I have a file 100gb in size and a server with two 72gb disk's.
The server runs Ubuntu Linux, with ext4 on the disks, and without LVM.
How I can put the 100gb file on the server with 72+72gb disk's?
I can't change the filesystem and I can't split the file; the file must be readable.
I have converted my DB file to byte array and want to pass it my web service in order to save on server.
I have few basic doubts about files
1) Windows recognizes file by its extension like (.txt , .csv). How does unix/linux do it ?
2) How does file editor capable of editing various file formats ? Whats the logic behind it ?
3) Does all files have metadata ?
i create a file using dd command like this:
dd if=/dev/zero of=1g.dd bs=1M count=512 seek=512
when i run command ls 1g.dd, its size is 1G, run du 1g.dd, it's 512M.
there is a struct stat in c library to read file size, but it can only read out that 1G size, now how can i get that 512M size which is the real size of that file?
now the only way i know is to parse shell command du's output.