Questions tagged [size]
The size tag has no usage guidance.
248
questions
4
votes
1
answer
90
views
Why does "cat | wc -c" shows different size than "ls -l" for a specific file?
The distro is Ubuntu 22.04 and I'm running a newly-created ext4 filesystem that I have copied my setup to (using rsync on a different machine). I was running a manually written (python) filesystem ...
0
votes
3
answers
50
views
What minimum linux's root partition size for virtual machine
I wanna install multiple linux distro (Ubuntu, Fedora, Manjaro, Opensusue, etc) via virtual machine (qemu) with shared /home partition for testing purposes, which i'm not gonna install anything big or ...
0
votes
1
answer
107
views
Extend partition on RedHat VM without losing data
I have a VM with RHEL which serves as backup repo for Veeam. And now I need to extend partition for backups.
Original size was 17TB
I extended HDD in VMware to 19TB (it's a second HDD in VMware), and ...
0
votes
0
answers
45
views
Block size output from lsblk and blockdev don't match
Why the output of LOG-SEC column and --getbsz in the following don't match? Are these values of different quantities? How to find actual values? And is the output of following stat command always ...
3
votes
0
answers
135
views
How can I get the height of my Title bar in bash
I am working on a pet project which involves knowing the height of the title bar on different Linux Mint PC's, I realise the size depends on the Window Title Font and probably some CSS, so it will ...
0
votes
1
answer
280
views
Why is the the apparent size of a file much larger than the actual disk usage in this case? (4.4GiB vs. 512B)
While browsing folders via ncdu, I noticed that the apparent size of a file was sometimes much larger than the actual disk usage. Example via ncdu, then a to toggle between showing disk usage and ...
0
votes
1
answer
69
views
How to verify size of pigz (parallel gzip) archive contents? [duplicate]
I created some pigz (parallel gzip) - home page - compressed archives of my SSD disk drives. (compiled version 2.8)
I called one of them 4TB-SATA-disk--Windows10--2024-Jan-21.img.gz which says the ...
2
votes
0
answers
77
views
500gb external hard drive listed with 512b only
Has anyone experienced this problem?
I have a 500GB Seagate external hard drive that recently had some problems. Due to these problems I tried to format but unfortunately the formatting shows an error
...
0
votes
1
answer
130
views
lsblk: Why FSSIZE is not equal to FSAVAIL + FSUSED
sudo lsblk --fs -o NAME,FSTYPE,SIZE,FSSIZE,FSUSED,FSAVAIL,FSUSE%,MOUNTPOINTS,LABEL,PATH | grep -v '^loop'
NAME FSTYPE SIZE FSSIZE FSUSED FSAVAIL FSUSE% MOUNTPOINTS LABEL ...
0
votes
2
answers
263
views
The filesystem is already 65010688 (4k) blocks long
Please help me , when I try to increase the partition size in LVM, but when I try it doesn’t work,
I do the following:
df -h
Filesystem Size Used Avail Use% Mounted on
udev ...
0
votes
0
answers
58
views
How do I increase the font size of the email in Geary?
It doesn't seem possible to change the font size of the email automatically (Ctrl+Scroll seems to be the only solution and it is manual) and the text on my laptop screen is too small.
Is there a way ...
2
votes
1
answer
736
views
Get total Git LFS size
How can I get total size of Git LFS files?
I can get a listing of LFS files with git lfs ls-files --size:
b1d5dd29dd - file1.zip (1.42 GB)
27d3073f43 - file2.zip (120 MB)
cacd6dbfe3 - folder/file3.zip ...
0
votes
0
answers
97
views
USB Gadget Size Limitation - Mass Storage Emulation
I'm facing a challenge with my Raspberry Pi 4 and software setup. The Pi connects to my server to download a weekly-updated database. The problem arises from the Mass Storage Gadget's CD emulator, ...
0
votes
1
answer
155
views
dd not enough space
I have a drive that is about 1TB big. It is mostly free space. When you add up the size of all the partitions, it is less than 256GB.
I have another drive that is 256GB.
I would like to clone the data ...
0
votes
4
answers
210
views
How to view a log file that's worth 10GB+?
The ways that I've thought of:
If you get to reproduce the scenario in real time. Use
tail -f application.log | tee /tmp/tailed_log
But it's not sure that we'll get to reproduce the scenario in real ...
-1
votes
1
answer
207
views
Linux Bash Shell Script - To Find Files with Zero Size and Delete
List of files are stored in a variable REMOVEFILES. Script need to verify the list of files one by one and if the file is ZERO in size, it should be deleted. Please help me fixing it.
#!/bin/bash
...
1
vote
0
answers
32
views
find can not find size between A and B [duplicate]
problem description
I was using find(GNU version) to find files with size between 4G - 5G with below command
# find . -size +4G -size -5G -exec ls -1hSs {} +
But below can work
# find . -size +4G -...
0
votes
1
answer
202
views
Make the smallest image of system [duplicate]
I would like the make an image of Linux system. I have a SD card 64GB, but the system takes only 11 GB. dd command, Win32DiskManager, ... all create a raw image of 64 GB, way bigger than the 11 GB.
...
1
vote
2
answers
793
views
What's the POSIX-compliant way to get the size of a file or folder in bytes?
According to the Open Group specs, POSIX du doesn't have the -b option to display the size in bytes. So what is the POSIX-compliant way to get the size of a file or folder in bytes?
0
votes
0
answers
102
views
ls -alh and du -sh shows difference in size.. why is that?
Why is this size difference ? Can someone explain ?
[root@~] ls -alh /vmfs/volumes/50a4a9e6-13184850/SYD0TXT01/vmware.log
-rw-r--r-- 1 root root 2.1G Nov 25 00:48 /vmfs/volumes/50a4a9e6-...
0
votes
0
answers
427
views
grep: What is the limit for a pattern file size
I am using grep with the -f option and I run into an issue when the pattern file given with -f is very long. The one that is failing for me has almost 300 thousand lines and 40 MBytes. grep does not ...
2
votes
1
answer
499
views
How to "listen to" directory size changes?
I need to do some actions when a directory grows above a certain size limit.
Obviously, obtaining the size can be done with du, but a single run of du takes a long time in my case, loads the disk ...
0
votes
1
answer
2k
views
Debian - Create new partition with fdisk and set size ( Last sector )
please could someone help me with my problem of create new disk partition in Debian ?
I'am using Proxmox where I have created a few virtual machines.
On one of virtual machines where have installed ...
1
vote
1
answer
221
views
Is it possible to increase the size of OpenBSD's bsd.rd without building it from source?
Having a bsd.rd extracted from an installation image and mounted as a vnode I can see there is 0.2MB free space available for additional files such as used during unattended installation.
I want to ...
1
vote
2
answers
165
views
What's the upper-bound for an array index/subscript in GNU bc?
I've found that there is an upper-bound on your subscripts/indices in an array in GNU bc. Running interactively and asking to let arr[100000000]=42 returns an error:
Runtime error (func=(main), adr=...
0
votes
2
answers
1k
views
How to list files with only name and size
I would like to list the content of a directory, 1 line per entry, with only the files names and the files sizes.
ls -l shows too much information.
ls -1 -s doesn't show a file's size but its ...
0
votes
1
answer
153
views
How to display the paths to all files that have a size greater than the specified limit
I need to output the paths to all files that have a size greater than the specified limit (declared as a variable).
I've done it using find script:
FILESIZE = "+10M";
find "$1" -...
0
votes
1
answer
249
views
Change default browser screen font size
Running Fedora 34, Xfce desktop.
When I run Firefox, the screen is always too small and I find that I'm constantly hitting the Ctrl+ combination to set the screen size to 133% of the default so that I ...
0
votes
2
answers
4k
views
How can i make sure my volume is btrfs (or get it's type) and how can I know it's real size in my partition?
I have a volume which I believe to be btrfs, but the partition bearing it has an odd number of blocks and there is a little space left before the next partition.
I'd like to check it's type (btrfs ...
1
vote
1
answer
972
views
Why /usr and /home size is very small even tough I gave /home and / (root) enaugh size?
My concern is about /usr and home size as you see.
Home:
Root:
My concern is about /usr and home size as you see.
It seems that they have really small space, but when I was installing ubuntu I gave ...
9
votes
2
answers
2k
views
Why am I getting HDD total space less than 931 GiB?
I've been trying for a few days already, but still cannot figure it out how to get the proper size of my HDD drive with a python script.
My HDD is 1Tb. As I know in Gb it is 1000Gb, and in GiB it is ...
1
vote
0
answers
2k
views
inode based file system, What is the maximum size of a file in the file system
could someone explain how to tackle this questions?
1. **What is the maximum size of a file that could be handled by single indirect and double indirect?**
Block size is 2K
Address size is 4 Bytes
12 ...
0
votes
2
answers
970
views
Count bytes of filename
How can I know how many bytes does it weight the name of a filename? Just the file, not the full path.
I've tried this:
echo 'filename.extension' | wc -c
is this right?
1
vote
2
answers
762
views
How to calculate the size of data transferred between two machines in Ubuntu?
I have two computers.
The first one is as a workstation. It runs the deep learning code and connects an AP by a wired connection.
The second one is as a robot's computer. It sends the video and other ...
0
votes
1
answer
455
views
OpenBSD core dump and /var size
I'm trying to figure out my partitioning
which leads to https://man.openbsd.org/disklabel#AUTOMATIC_DISK_ALLOCATION which says:
/var 13% of disk. 80M – 2x size of crash dump
But how do I ...
0
votes
1
answer
4k
views
How to list all files and get the total size of all files in an sftp server?
I am connected to an sftp server using
sftp -i key.pem user@server
The server contains logs and I can list logs up to 4 days old using ls. The problem is that ls does not seem to be able to fetch ...
3
votes
2
answers
1k
views
Does Linux update the size of a block device?
In the light of emmc wearout monitoring I'm wondering about the size as displayed inside a running Linux OS. An emmc chip has an internal manager which keeps track of the usage intensity of all the ...
0
votes
1
answer
213
views
I don't understand how "ls" command works [duplicate]
I wanted to check what is the size of pg_backup folder, so I used this command:
[postgres@server02 ~]$ pwd
/var/lib/pgsql
[postgres@server02 ~]$ ls -lh
total 4.0K
drwxr-x---. 7 postgres postgres 86 ...
0
votes
1
answer
472
views
Samba share on rpi/Linux is reporting SD card space rather than HDD space in Windows
The samba config should be pointing directly to the mount point I have created for the two external HDDs, yet it still reports in Windows as 116GB (my OS SD card size on the Pi).
/etc/fstab (...
1
vote
1
answer
659
views
1TB drive compressed shows only 3.8GB, what did I do wrong?
On Linux Mint 20.2 Cinnamon I would like to create a disk image of my secondary disk drive (SATA) containing Windows 10, not that it matters now, directly gzip'ed using the Parallel gzip = pigz onto ...
0
votes
1
answer
217
views
Delete files in a directory only when cumulative sum of files size exceeds xGB
I have a directory, with thousands of files.
I need to sort the files in descending order of creation date (to make sure that the newest files wont be deleted), and start summing the size of these ...
1
vote
0
answers
164
views
Graphical disk space manager for linux terminal
I want to export the results of a recursive ls command.
Then open it in a disk space manager software like Treesize.
Do you know of a program that is able to to that?
1
vote
1
answer
1k
views
How to open and read a character device as binary file?
I'm working with USB and I want to read the content of usb device descriptor in /dev/bus/usb/00x/00y - it is a character device.
I used fopen to open it as a binary file with "rb" parameter. ...
1
vote
2
answers
2k
views
How is the theoretical maximum file size on filesystems like XFS calculcated?
Documentation for XFS claims its current theoretical maximum file size is 8 exbibytes - 1 byte. However, I am wondering how this calculation was computed? I cannot seem to find discussion of this ...
2
votes
1
answer
1k
views
Why do snapshots consume much less space than the data which is changed after they have been taken?
Although I am using ZFS since quite a while, I am still failing to understand some aspects of it from time to time. Currently I am trying to understand how ZFS snapshots take up space on the disk and ...
0
votes
0
answers
24
views
ls -s vs -l file size difference and significance [duplicate]
As a very basic linux user, I've always considered the file size as shown in ls -lh to be the one and only file size on disk.
For example here, file.xlsx is 11kb
-rw-r--r--@ 1 michael staff 11K ...
2
votes
0
answers
203
views
Why is the EXT3 FS size much smaller vs. partition size?
We have a partition, which is exactly 50 GByte sized:
# fdisk -l /dev/sdb
Disk /dev/sdb: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/...
2
votes
1
answer
752
views
Where is the KEYDEF in sort command?
I need to sort the results of 'du' command by file or folder name, file size, or last modified time in various situations, and appending ' | sort -k 2' command after 'du' command sorts the results by ...
16
votes
2
answers
27k
views
find command: -size behavior
I have a question concerning the find command in Linux.
In all the articles I've found online it says that attribute -size -10M, for example, returns files that are less than 10 MB in size. But when I ...
0
votes
0
answers
387
views
Size of directory with millions of sub directories without `du'
I have a folder with millions of sub directories and in each sub directory a file.
I need to get the size of the complete directory size. I've used du but it took 17 hours (on a M.2 SSD) to complete ...