Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [size]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
3 answers
37 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 ...
Noober's user avatar
  • 1
0 votes
1 answer
50 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 ...
Rasputin's user avatar
0 votes
0 answers
30 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 ...
Porcupine's user avatar
  • 2,056
3 votes
0 answers
84 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 ...
Chris Fox's user avatar
0 votes
1 answer
118 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 ...
Franck Dernoncourt's user avatar
0 votes
1 answer
42 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 ...
Vlastimil Burián's user avatar
2 votes
0 answers
46 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 ...
Hudson Martins's user avatar
0 votes
1 answer
64 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 ...
Porcupine's user avatar
  • 2,056
0 votes
2 answers
151 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 ...
Глеб Щеголев's user avatar
0 votes
0 answers
39 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 ...
Bushido's user avatar
2 votes
1 answer
416 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 ...
wjwrpoyob's user avatar
  • 440
0 votes
0 answers
72 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, ...
Christos Galanopoulos's user avatar
0 votes
1 answer
148 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 ...
user168226's user avatar
0 votes
4 answers
179 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 ...
achhainsan's user avatar
0 votes
0 answers
23 views

Sum of all file sizes in a folder down not adds up to what what ls or du show [duplicate]

I have downloaded couple of thousands file form a cloud. the download is done without any error. When I check the files occupied space in my hard drive is showing size, then what is shown on the cloud ...
Ahmad.S's user avatar
  • 101
-1 votes
1 answer
188 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 ...
dbadmin's user avatar
  • 23
1 vote
0 answers
30 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 -...
xiaojueguan's user avatar
0 votes
1 answer
144 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. ...
Yaegaki2's user avatar
1 vote
2 answers
680 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?
finefoot's user avatar
  • 3,090
0 votes
0 answers
95 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-...
Iamtheroot's user avatar
0 votes
0 answers
372 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 ...
Frigo's user avatar
  • 232
2 votes
1 answer
432 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 ...
user10732's user avatar
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 ...
Filip Skřivánek's user avatar
1 vote
1 answer
208 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 ...
zajer's user avatar
  • 213
1 vote
2 answers
145 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=...
Mike Pierce's user avatar
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 ...
Nawak's user avatar
  • 1
0 votes
1 answer
134 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" -...
Oleg's user avatar
  • 39
0 votes
1 answer
227 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 ...
Vérace's user avatar
  • 581
0 votes
2 answers
3k 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 ...
Camion's user avatar
  • 284
1 vote
1 answer
897 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 ...
El Mehdi's user avatar
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 ...
Roy O'Bannon's user avatar
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 ...
portahelle's user avatar
0 votes
2 answers
878 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?
Smeterlink's user avatar
1 vote
2 answers
709 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 ...
Redhwan's user avatar
  • 111
0 votes
1 answer
422 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 ...
Veraellyunjie's user avatar
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 ...
HelloWorld's user avatar
  • 1,605
3 votes
2 answers
940 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 ...
Whois_me's user avatar
0 votes
1 answer
208 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 ...
kamokoba's user avatar
  • 163
0 votes
1 answer
449 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 (...
MrFuzzihead's user avatar
0 votes
1 answer
574 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 ...
Vlastimil Burián's user avatar
0 votes
1 answer
192 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 ...
Charbel's user avatar
  • 11
1 vote
0 answers
156 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?
Ido Rozin's user avatar
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. ...
Manh Huynh's user avatar
1 vote
2 answers
1k 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 ...
curious's user avatar
  • 21
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 ...
Binarus's user avatar
  • 3,390
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 ...
Michael Du's user avatar
2 votes
0 answers
185 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/...
SutoTi's user avatar
  • 31
2 votes
1 answer
652 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 ...
user67275's user avatar
  • 243
15 votes
2 answers
21k 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 ...
golder3's user avatar
  • 1,074
0 votes
0 answers
380 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 ...
Fuld_Ulv's user avatar

1
2 3 4 5