disk-usage

Problem changing owner and permissions on new external drive

Problem changing owner and permissions on new external drive I just installed a new 2TB external drive (Ubuntu 20.04), created one partition, and formatted it to ext4. I mounted it to /mnt/ssk2TB. Now the drive shows in my Nautilus file explorer, but when I use copy-paste to copy a file to the new drive, I …

Total answers: 1

How to anticipate the time before disk space would be close to exhaustion?

How to anticipate the time before disk space would be close to exhaustion? I have a task to make alerts if there’s free disk space for only 2 hours for dinamycally growing directory. Honestly I don’t know what’s the best way to it. I’m not sure if the space will grow linearly and there would …

Total answers: 1

Is there some universally recommended Reserved block count (for root) for large Ext4 drives?

Is there some universally recommended Reserved block count (for root) for large Ext4 drives? By the following question: Is there some universally recommended Reserved block count (for root) for large Ext4 drives? I specifically mean the following: Let us consider (almost) everyone has a rather large root drive (partition) nowadays. Let us consider for example …

Total answers: 1

System drive (1TB) 82% full? All "my" files are on separate HDD

System drive (1TB) 82% full? All "my" files are on separate HDD This is a desktop system, with a 1TB SSD for the OS Xubuntu 20.04.6, and several HDDs for all my files. So the OS shouldn’t be taking up that much space. But there’s the output of df: Filesystem 1K-blocks Used Available Use% Mounted …

Total answers: 3

How to get the size of a large directory?

How to get the size of a large directory? How can I get the size of a large directory with lot of small sub-directories on Linux? I just want the total size the parent directory. I tried du -s mydirectory/ but it is taking a long time to execute and I cannot keep the terminal …

Total answers: 4

Disk storage full

Disk storage full First of all, I am a complete beginner to Ubuntu. I was trying to follow along the Ubuntu dual boot installation section from Odin project. According to the guide, I allocated two partitions, the root partition to mount the systems files, and /Home partition to house apps & personal files. After installing …

Total answers: 1

How to move .julia folder to another partition in Ubuntu?

How to move .julia folder to another partition in Ubuntu? I use the Julia programming language on a Chromebook with only 32 GB internal storage. The .julia directory in the home folder consumes several gigabytes of space. This directory contains all the julia packages (similar to python libraries), and it is essential for Julia to …

Total answers: 1

Can't write to Live CD system

Can't write to Live CD system I am not new to Linux, but am new to creating my own virtual machine environment. I am using Linux to learn how to do penetration testing, and have been required to download lots of different software to do so. I added a virtual hard drive to my machine, …

Total answers: 1

df and where a folder is mounted

df and where a folder is mounted I have linux system. When I do df I get something like Filesystem 1k-blocks Used Available Use% Mounted on …. some data here /dev/mmcblk0pyy yyy yyy 0 100% / /dev/mmcblk0pxx xxxx xxx xxxx 98% /thefolder Now, when I do ls / I got a list of some folders …

Total answers: 1

22.04.2 server image is *three* times the size of 22.04.1: why?

22.04.2 server image is *three* times the size of 22.04.1: why? I’m sorry to have to say it, but the 22.04.2 server install has exploded. Unreasonably. What’s going on? I’ve been packaging Ubuntu-based VMs for several years, first on 20.04.x, then 22.04, 22.04.1, and now 22.04.2. These are based on the server downloads. The last …

Total answers: 1

How to find the disk usage ONLY of 2nd level dirs?

How to find the disk usage ONLY of 2nd level dirs? I have the following dir structure: relative_path/ app1/ data config trash other_app/ inputs outputs garbage anything_else/ v1/ v1.5 v2/ I need to figure out the disk usage of each dir only on the second level (e.g. relative_path/anything_else/v1, but not relative_path/anything_else nor relative_path/anything_else/v1/v1.5) If I …

Total answers: 1

Does a user need executable permissions to be able to run du (disk usage)?

Does a user need executable permissions to be able to run du (disk usage)? I am observing the following behaviour, and want to know if it is expected. I am trying to run disk usage ( du ) as user2 on a directory test_directory which is owned by user1. If I change the permissions to …

Total answers: 1

What's the POSIX-compliant way to get the size of a file or folder in bytes?

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? Asked By: finefoot || …

Total answers: 2

How do you utilize expansion as space on Ubuntu?

How do you utilize expansion as space on Ubuntu? I’m using Ubuntu 22.04. It was installed with an ISO image from a USB stick of 6TB. It however produces "Low disk space" error. df -h returns: Filesystem Size Used Avail Use% Mounted on tmpfs 3,2G 2,5M 3,2G 1% /run /dev/nvme0n1p5 39G 30G 7,6G 80% / …

Total answers: 1

parted + is it correct to create disk partitions in Linux only by percentage

parted + is it correct to create disk partitions in Linux only by percentage we want to create 2 partitions from each new disk by parted command as the following example: sdg 8:96 0 50G 0 disk ├─sdg1 8:97 0 25G 0 part └─sdg2 8:98 0 25G 0 part as example above disk size is …

Total answers: 1

revert logical partitions to original disk

revert logical partitions to original disk I have a disk that somehow split into what appear to be logical partitions, but I am unsure. How to revert to the original disk? Here is the list of drives shown by fdisk -l: /dev/mmcblk0 /dev/mmcblk0boot0 /dev/mmcblk0boot1 lsblk identifies each of these as disks, but according to blkid, …

Total answers: 1