filesystem

Delete vs move to trash

Delete vs. move to trash If I select a dozen or so files and choose Move to Trash it takes nearly a minute for the process to complete. If I choose Delete, they’re gone instantly. Since under the hood, they’re more or less the same process of changing or removing a pointer, why the time …

Total answers: 1

Confused about command line options for Linux mkfs

Confused about command line options for Linux mkfs I am formatting a new drive on Ubuntu 20.04, and I am at the step where I format the drive to ext4. One article (https://linuxize.com/post/fdisk-command-in-linux/) says to do this: sudo mkfs.ext4 -F /dev/sdb1 The article doesn’t say what the -F option is, and there is no -F …

Total answers: 1

How to create alias for a sub-folder to point to the parent folder?

How to create alias for a sub-folder to point to the parent folder? I need to make a folder with name ./public/sop behave like it is ./public. I tried ln -s ./public/ ./public/sop and there were no errors. But it doesn’t work. ls ./public/sop does not show the other files/folders in the ./public folder. It …

Total answers: 1

Root folder is running out of space

Root folder is running out of space I am getting an error: / is running out of space when I work with the creation of docker images. Then I tried to list the top 10 large files on my computer’s filestystem. It listed out 10 files/folders that are in big size, some of them are …

Total answers: 1

Bulk rename symlinks in home folder?

Bulk rename symlinks in home folder? When installing Linux on a new SSD, I created a user newuser with a different name than on the old system olduser. I successfully rsynced all the files from the old to the new SSD’s home partition. But especially in the .steam folder, there are tons of symlinks (softlinks) …

Total answers: 1

How to expand root filesystem with a new unmounted disk

How to expand root filesystem with a new unmounted disk for context I’m using ubuntu 22.04 VM over ESXI. Currently I have my root almost completely full administrator@alfalab:/$ df -h Filesystem Size Used Avail Use% Mounted on tmpfs 790M 2,0M 788M 1% /run /dev/sda3 39G 35G 1,8G 96% / tmpfs 3,9G 1,1M 3,9G 1% /dev/shm …

Total answers: 1

boot ubuntu server from live media to repair previous install

boot ubuntu server from live media to repair previous install I’m trying to boot ubuntu server from live media. I’m trying to repair my current ubuntu server I’m using my original install thumb drive. I’m working on asus hardware. When I try to launch from the thumb drive on uefi partition I only get choices …

Total answers: 1

Why are new writes to files not surviving a power loss

Why are new writes to files not surviving a power loss I have a similar type of issue to: Raspberry Pi: Filesystem writes files, but after reboot the old data is back but not quite the same. I am using Armbian_23.02.2_Orangepizero_jammy_current_5.15.93 running on an OrangePi with an SD card for storage. I built a race …

Total answers: 3

I want /ts to reference ~/.local/ts without root/admin privileges?

I want /ts to reference ~/.local/ts without root/admin privileges? Assumptions: I am on linux machine ubuntu distro. I don’t have root/admin privileges-just a standard user. I mostly use bash shell. The directory /ts already exists. I only have read only access to this directory. When I ssh into this linux machine, I want /ts to …

Total answers: 1

See actual raw binary content of the full disk block in which a file is written

See actual raw binary content of the full disk block in which a file is written If I have a file on disk (creating a healthy one for the sake of the discussion, but I may have one from before, possibly damaged, in some debugging activities): /tmp/tmp.gEJmJSc2zQ> echo "hello" > hello.txt I can see that …

Total answers: 1

Default position of Documents, Music and Pictures under Firefox in Ubuntu WSL

Default position of Documents, Music and Pictures under Firefox in Ubuntu WSL I installed Windows Subsystem for Linux (WSL) and through it, Ubuntu: wsl –install Ubuntu sudo apt-get update && sudo apt-get upgrade -y There is one automatic configurations of the files for documents and images that strikes me as odd, and different from what …

Total answers: 1

Remove contents of directories without deleting contents

Remove contents of directories without deleting contents What I am trying to do is remove only the folders that the files are contained within. For example: Download -Folder1 –File1 -Folder2 –File2 My goal is to remove Folder 1 and 2 and be left with the following: Download -File1 -File2 Asked By: HelloMrMeseeks || Source You …

Total answers: 1

What is the difference between the root folder "/" and "/media/username/ubuntu-root"?

What is the difference between the root folder "/" and "/media/username/ubuntu-root"? I recently did some housekeeping on the file system of my workstation (Ubuntu 22.04). I used NCurses Disk Usage in the terminal to get an overview of the largest folders and files. Amongst others, I found /media/username/ubuntu-root/var/lib/yacy/INDEX wasting 14 Gigabyte of my storage space. …

Total answers: 2

label exfat filesystem

label exfat filesystem I’m running Lubuntu 22.04. For PS4 I created on an usb-drive with an exfat filesystem; I so not remember if it was with newer exfatprogs or with the older exfat-utils. Question: sudo dump.exfat /dev/sdc1 exfatprogs version : 1.1.3 ————– Dump Boot sector region ————– Volume Length(sectors): 625139712 FAT Offset(sector offset): 128 FAT …

Total answers: 1

Showing different file size when using ls and du command?

Why do `ls` and `du` commands show a different size for the same file? I am currently using Ubuntu 20.04. When I check a file’s size using the du command, I get the following output: ubuntu@ip-172-31-49-39:/myxfs$ du -h newquota 4.0K newquota With the ls -la command, I get the following: ubuntu@ip-172-31-49-39:/myxfs$ ls -la total 8 …

Total answers: 1

Can we create two different filesystems on a single partition?

Can we create two different filesystems on a single partition? I’m currently using Ubuntu 20.04 on my machine. Can we create two different filesystems on a single partition? Why? Also if the size of the filesystem created in a partition is less than the partition size, can we extend the filesystem size in the future? …

Total answers: 6

Problems with re-sizing a partition in 20.04

Problems with re-sizing a partition in 20.04 I’m running an Ubuntu 20.04 LTS VM in Hyper-V. I recently resized a VHDX disk from 15GB to 100GB. Then I tried to use parted and resizepart 1 100%. After that nothing had really change. df -h: Filesystem Size Used Avail Use% Mounted on udev 3,9G 0 3,9G …

Total answers: 1

ZSTD-compressed data is corrupt, root filesystem requires a manual fsck

ZSTD-compressed data is corrupt, root filesystem requires a manual fsck I’m getting an error that’s similar to many I’ve seen before, but I somehow can’t seem to fix. I am on Ubuntu 22.04. [ 0.260527] ×86/cpu: SGX disabled by BIOS. [ 0.786997] Initramfs unpacking failed: ZSTD-compressed data is corrupt /init: line 73: wait-for-root: not found …

Total answers: 1

How to copy from full path to full path under new name with overwrite?

How to copy from full path to full path under new name with overwrite? I want to copy a file from one directory to another under a different name, using the full path of both directories. The different name already exists in the destination directory so I want to overwrite at the same time. For …

Total answers: 1

How to keep writing in a FIFO even if there's no readers

How to keep writing in a FIFO even if there's no readers There’s a service that pipes it’s output to a named pipe, which I create with mkfifo name. The service pauses if there’s no reader in pipe. How to make it to keep piping the data even if there’s no reader? The reader(s) may …

Total answers: 2